summaryrefslogtreecommitdiffstats
path: root/gtk/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/src/main.c')
-rw-r--r--gtk/src/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/src/main.c b/gtk/src/main.c
index 370086fdd..2822070ab 100644
--- a/gtk/src/main.c
+++ b/gtk/src/main.c
@@ -638,10 +638,12 @@ main (int argc, char *argv[])
widget = GHB_WIDGET(ud->builder, "preview_image");
gtk_widget_realize(widget);
- parent = gtk_widget_get_window(widget);
+ //parent = gtk_widget_get_window(widget);
+ parent = widget->window;
widget = GHB_WIDGET(ud->builder, "preview_hud");
gtk_widget_realize(widget);
- win = gtk_widget_get_window(widget);
+ //win = gtk_widget_get_window(widget);
+ win = widget->window;
gdk_window_reparent(win, parent, 0, 0);
gtk_main ();