diff pidgin/gtkdialogs.c @ 32687:d6b0dc1fe13b

Fix calls to GTK_WIDGET_SET_FLAGS, which oddly enough does not seem to be deprecated even though the underlying GTK_OBJECT_FLAGS is.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sun, 09 Oct 2011 03:35:22 +0000
parents 457443ca22e0
children 763d65f3f758
line wrap: on
line diff
--- a/pidgin/gtkdialogs.c	Sun Oct 09 02:50:20 2011 +0000
+++ b/pidgin/gtkdialogs.c	Sun Oct 09 03:35:22 2011 +0000
@@ -462,7 +462,11 @@
 	button = pidgin_dialog_add_button(GTK_DIALOG(win), GTK_STOCK_CLOSE,
 	                G_CALLBACK(destroy_win), win);
 
+#if GTK_CHECK_VERSION(2,18,0)
+	gtk_widget_set_can_default(button, TRUE);
+#else
 	GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
+#endif
 	gtk_widget_grab_default(button);
 
 	gtk_widget_show_all(win);