From 8a9644c257d821341ca6ebe94b31be553971a07d Mon Sep 17 00:00:00 2001 From: jstebbins Date: Thu, 16 Jul 2009 00:29:34 +0000 Subject: LinGui: shuffle things around on the picture tab a bit git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2696 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/ghb.ui | 55 +++++++++++++++++++++---------------------------------- gtk/src/preview.c | 7 ++++++- 2 files changed, 27 insertions(+), 35 deletions(-) (limited to 'gtk') diff --git a/gtk/src/ghb.ui b/gtk/src/ghb.ui index f5015376b..2c5779000 100644 --- a/gtk/src/ghb.ui +++ b/gtk/src/ghb.ui @@ -1514,26 +1514,19 @@ True - 10 + 12 + 12 True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - - - True - - - 0 - - True 0 - etched-in + none True @@ -1542,8 +1535,8 @@ 4 - 240 - 120 + 400 + 200 True hb-icon 6 @@ -1552,13 +1545,6 @@ - - - True - True - - - False @@ -1567,6 +1553,11 @@ + + + True + 0 + 0 True @@ -1578,7 +1569,7 @@ right - True + False 0 @@ -1591,26 +1582,22 @@ -- - True + False 1 - - False - False - 2 - - - - - True - - - 3 - + + + + False + False + 2 + + + diff --git a/gtk/src/preview.c b/gtk/src/preview.c index 7b975e8ce..8748fae38 100644 --- a/gtk/src/preview.c +++ b/gtk/src/preview.c @@ -714,9 +714,14 @@ ghb_set_preview_image(signal_user_data_t *ud) g_free(text); g_debug("preview %d x %d", preview_width, preview_height); - target_height = MIN(ud->preview->button_height, 128); + target_height = MIN(ud->preview->button_height, 200); height = target_height; width = preview_width * height / preview_height; + if (width > 400) + { + width = 400; + height = preview_height * width / preview_width; + } if ((height >= 16) && (width >= 16)) { -- cgit v1.2.3