[vte] Fix build with gtk3 master



commit f9fcec517d4125eabe93dcdc5002b615e275ff42
Author: Christian Persch <chpe gnome org>
Date:   Thu Dec 2 21:06:48 2010 +0100

    Fix build with gtk3 master

 configure.in |    2 +-
 src/vtebg.c  |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/configure.in b/configure.in
index 3ac2121..6f444ef 100644
--- a/configure.in
+++ b/configure.in
@@ -61,7 +61,7 @@ case "$with_gtk" in
        VTE_LIBRARY_SUFFIX=$VTE_API_VERSION
        VTE_SEAL_CFLAGS="-DVTE_SEAL_ENABLE"
        GTK_API_VERSION=3.0
-       GTK_REQUIRED=2.91.0
+       GTK_REQUIRED=2.91.6
        ;;
 esac
 
diff --git a/src/vtebg.c b/src/vtebg.c
index d3dcd0f..5eeb778 100644
--- a/src/vtebg.c
+++ b/src/vtebg.c
@@ -240,10 +240,11 @@ vte_bg_get_for_screen(GdkScreen *screen)
 
 		window = gdk_screen_get_root_window(screen);
                 pvt->native.window = window;
-                pvt->native.native_window = gdk_x11_drawable_get_xid(window);
-#if GTK_CHECK_VERSION (2, 90, 8)
+#if GTK_CHECK_VERSION (2, 91, 6)
+                pvt->native.native_window = GDK_WINDOW_XID (window);
                 pvt->native.display = gdk_window_get_display(window);
 #else
+                pvt->native.native_window = gdk_x11_drawable_get_xid(window);
                 pvt->native.display = gdk_drawable_get_display(GDK_DRAWABLE(window));
 #endif
                 pvt->native.native_atom = gdk_x11_get_xatom_by_name_for_display(pvt->native.display, "_XROOTPMAP_ID");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]