summaryrefslogtreecommitdiffstats
path: root/gtk/src/main.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-04-04 21:21:28 +0000
committerjstebbins <[email protected]>2009-04-04 21:21:28 +0000
commitf8069bce73a349346eb5183449c723a426274e94 (patch)
treed385500f78272ca4de63e689a8006f2108ac36e1 /gtk/src/main.c
parent0e8146cb77a2891a228d61fc5cfbca9d715e69fb (diff)
LinGui:
older version of libgtk don't have gtk_widget_get_window(), so use widget->window instead. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2298 b64f7644-9d1e-0410-96f1-a4d463321fa5
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 ();