[network-manager-applet/NMA_0_8] trivial: another fix for deprecations in recent GTK



commit 9329e44caa1464fd043d59762e36cc3de4cc5ec5
Author: Dan Williams <dcbw redhat com>
Date:   Fri Nov 5 14:58:51 2010 -0500

    trivial: another fix for deprecations in recent GTK

 src/applet.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/applet.c b/src/applet.c
index 428520e..0fe35ac 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -2939,7 +2939,11 @@ applet_pre_keyring_callback (gpointer user_data)
 	if (applet->menu)
 		window = gtk_widget_get_window (applet->menu);
 	if (window) {
+#if GTK_CHECK_VERSION(2,23,0)
+		screen = gdk_window_get_screen (window);
+#else
 		screen = gdk_drawable_get_screen (window);
+#endif
 		display = gdk_screen_get_display (screen);
 		g_object_ref (display);
 
@@ -2960,7 +2964,11 @@ applet_pre_keyring_callback (gpointer user_data)
 	if (applet->context_menu)
 		window = gtk_widget_get_window (applet->context_menu);
 	if (window) {
+#if GTK_CHECK_VERSION(2,23,0)
+		screen = gdk_window_get_screen (window);
+#else
 		screen = gdk_drawable_get_screen (window);
+#endif
 		display = gdk_screen_get_display (screen);
 		g_object_ref (display);
 



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