From 3131afeeb93676cf30e7272c9202134147ba172e Mon Sep 17 00:00:00 2001 From: jstebbins Date: Fri, 5 Jun 2009 18:55:31 +0000 Subject: LinGui: when preview window is really small, the hud can be wider than the image. center the image when this is the case. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2490 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/ghb.ui | 19 ++++++++++++++----- gtk/src/main.c | 2 +- 2 files changed, 15 insertions(+), 6 deletions(-) (limited to 'gtk') diff --git a/gtk/src/ghb.ui b/gtk/src/ghb.ui index 473cac057..2c9662bf6 100644 --- a/gtk/src/ghb.ui +++ b/gtk/src/ghb.ui @@ -5289,12 +5289,21 @@ the required multiple. - + True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_LEAVE_NOTIFY_MASK - True - - + .5 + .5 + 0 + 0 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_LEAVE_NOTIFY_MASK + True + + + + diff --git a/gtk/src/main.c b/gtk/src/main.c index c6e335de3..e60ffbc39 100644 --- a/gtk/src/main.c +++ b/gtk/src/main.c @@ -691,7 +691,7 @@ main (int argc, char *argv[]) GtkWidget *draw, *hud, *blender, *align; align = GHB_WIDGET(ud->builder, "preview_window_alignment"); - draw = GHB_WIDGET(ud->builder, "preview_image"); + draw = GHB_WIDGET(ud->builder, "preview_image_align"); hud = GHB_WIDGET(ud->builder, "preview_hud"); // Set up compositing for hud -- cgit v1.2.3