summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gtk/src/ghb.ui19
-rw-r--r--gtk/src/main.c2
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