[gnome-settings-daemon] Fix build with recent GTK+



commit bb4e486f1d0ff36c63d3b82c5f4fbd65839fe288
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Feb 1 16:44:29 2011 -0500

    Fix build with recent GTK+
    
    GdkNativeWindow is gone, the apis take an X11 Window now.

 configure.ac                        |    2 +-
 plugins/xrandr/gsd-xrandr-manager.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index df91f4e..fc384dd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,7 +51,7 @@ dnl ---------------------------------------------------------------------------
 
 DBUS_GLIB_REQUIRED_VERSION=0.74
 GLIB_REQUIRED_VERSION=2.26.0
-GTK_REQUIRED_VERSION=2.91.6
+GTK_REQUIRED_VERSION=2.99.3
 GCONF_REQUIRED_VERSION=2.6.1
 GIO_REQUIRED_VERSION=2.26.0
 GNOME_DESKTOP_REQUIRED_VERSION=2.91.5
diff --git a/plugins/xrandr/gsd-xrandr-manager.c b/plugins/xrandr/gsd-xrandr-manager.c
index 9d7b9ca..efc61f8 100644
--- a/plugins/xrandr/gsd-xrandr-manager.c
+++ b/plugins/xrandr/gsd-xrandr-manager.c
@@ -649,7 +649,7 @@ gsd_xrandr_manager_2_apply_configuration (GsdXrandrManager *manager,
         gboolean result;
 
         if (parent_window_id != 0)
-                parent_window = gdk_x11_window_foreign_new_for_display (gdk_display_get_default (), (GdkNativeWindow) parent_window_id);
+                parent_window = gdk_x11_window_foreign_new_for_display (gdk_display_get_default (), (Window) parent_window_id);
         else
                 parent_window = NULL;
 



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