summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'gtk')
-rw-r--r--gtk/src/main.c6
-rw-r--r--gtk/src/preview.c6
2 files changed, 8 insertions, 4 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 ();
diff --git a/gtk/src/preview.c b/gtk/src/preview.c
index d3bd475da..e188a0413 100644
--- a/gtk/src/preview.c
+++ b/gtk/src/preview.c
@@ -1011,9 +1011,11 @@ preview_motion_cb(
gint pw, ph, w, h, x, y;
widget = GHB_WIDGET(ud->builder, "preview_image");
- parent = gtk_widget_get_window(widget);
+ //parent = gtk_widget_get_window(widget);
+ parent = widget->window;
widget = GHB_WIDGET(ud->builder, "preview_hud");
- win = gtk_widget_get_window(widget);
+ //win = gtk_widget_get_window(widget);
+ win = widget->window;
gtk_widget_show(widget);
gdk_drawable_get_size(GDK_DRAWABLE(parent), &pw, &ph);
gdk_drawable_get_size(GDK_DRAWABLE(win), &w, &h);