summaryrefslogtreecommitdiffstats
path: root/gtk/src/preview.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/preview.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/preview.c')
-rw-r--r--gtk/src/preview.c6
1 files changed, 4 insertions, 2 deletions
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);