diff pidgin/plugins/notify.c @ 30137:4e7a9940627e

Prepare Pidgin plugins for GTK+3.0. They're almost GSeal-compliant, except for a few things that aren't in GTK+ releases yet.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Tue, 13 Apr 2010 23:22:31 +0000
parents 37b668b8d6c1
children 351d07aefb09
line wrap: on
line diff
--- a/pidgin/plugins/notify.c	Tue Apr 13 22:29:02 2010 +0000
+++ b/pidgin/plugins/notify.c	Tue Apr 13 23:22:31 2010 +0000
@@ -547,7 +547,11 @@
 	}
 
 	count = count_messages(purplewin);
+#if GTK_CHECK_VERSION(2,14,0)
+	gdkwin = gtk_widget_get_window(window);
+#else
 	gdkwin = window->window;
+#endif
 
 	gdk_property_change(gdkwin, _PurpleUnseenCount, _Cardinal, 32,
 	                    GDK_PROP_MODE_REPLACE, (guchar *) &count, 1);