cpw.qulogic.gtk3: 3a41298a: GDK_DISPLAY has been deprecated, and its...

qulogic at pidgin.im qulogic at pidgin.im
Sun Oct 9 04:32:08 EDT 2011


----------------------------------------------------------------------
Revision: 3a41298a3c63419a6c4262cfcc3a3ab6086da329
Parent:   3e71f18169c8434b365ef1432bb679ba0f009e86
Author:   qulogic at pidgin.im
Date:     10/09/11 00:55:33
Branch:   im.pidgin.cpw.qulogic.gtk3
URL: http://d.pidgin.im/viewmtn/revision/info/3a41298a3c63419a6c4262cfcc3a3ab6086da329

Changelog: 

GDK_DISPLAY has been deprecated, and its replacement has been around
for a long time.

Changes against parent 3e71f18169c8434b365ef1432bb679ba0f009e86

  patched  pidgin/gtkidle.c

-------------- next part --------------
============================================================
--- pidgin/gtkidle.c	8f436aa490c8df706803e22c1febea860c42b314
+++ pidgin/gtkidle.c	685a6d339e4695a7b31b1a58fde43f15584594e4
@@ -107,14 +107,16 @@ pidgin_get_time_idle(void)
 	int event_base, error_base;
 
 	if (has_extension == -1)
-		has_extension = XScreenSaverQueryExtension(GDK_DISPLAY(), &event_base, &error_base);
+		has_extension = XScreenSaverQueryExtension(GDK_DISPLAY_XDISPLAY(gdk_display_get_default()),
+		                                           &event_base, &error_base);
 
 	if (has_extension)
 	{
 		if (mit_info == NULL)
 			mit_info = XScreenSaverAllocInfo();
 
-		XScreenSaverQueryInfo(GDK_DISPLAY(), GDK_ROOT_WINDOW(), mit_info);
+		XScreenSaverQueryInfo(GDK_DISPLAY_XDISPLAY(gdk_display_get_default()),
+		                      GDK_ROOT_WINDOW(), mit_info);
 		return (mit_info->idle) / 1000;
 	}
 	else


More information about the Commits mailing list