diff options
author | jstebbins <[email protected]> | 2009-06-05 18:55:31 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-06-05 18:55:31 +0000 |
commit | 3131afeeb93676cf30e7272c9202134147ba172e (patch) | |
tree | 89844303238a01f4796b2d26be59d4e23de6e9e6 /gtk/src | |
parent | 2bed26b1894b9a01c67c8ad0279bdd94d73b704b (diff) |
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
Diffstat (limited to 'gtk/src')
-rw-r--r-- | gtk/src/ghb.ui | 19 | ||||
-rw-r--r-- | gtk/src/main.c | 2 |
2 files changed, 15 insertions, 6 deletions
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.</property> </child> </object> - <object class="GtkDrawingArea" id="preview_image"> + <object class="GtkAlignment" id="preview_image_align"> <property name="visible">True</property> - <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_LEAVE_NOTIFY_MASK</property> - <property name="app_paintable">True</property> - <signal name="motion-notify-event" handler="preview_motion_cb"/> - <signal name="leave-notify-event" handler="preview_leave_cb"/> + <property name="xalign">.5</property> + <property name="yalign">.5</property> + <property name="xscale">0</property> + <property name="yscale">0</property> + <child> + <object class="GtkDrawingArea" id="preview_image"> + <property name="visible">True</property> + <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_LEAVE_NOTIFY_MASK</property> + <property name="app_paintable">True</property> + <signal name="motion-notify-event" handler="preview_motion_cb"/> + <signal name="leave-notify-event" handler="preview_leave_cb"/> + </object> + </child> </object> <object class="GtkAlignment" id="preview_hud"> 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 |