diff options
author | jstebbins <[email protected]> | 2009-04-04 21:21:28 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-04-04 21:21:28 +0000 |
commit | f8069bce73a349346eb5183449c723a426274e94 (patch) | |
tree | d385500f78272ca4de63e689a8006f2108ac36e1 /gtk | |
parent | 0e8146cb77a2891a228d61fc5cfbca9d715e69fb (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')
-rw-r--r-- | gtk/src/main.c | 6 | ||||
-rw-r--r-- | gtk/src/preview.c | 6 |
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); |