Mercurial > pidgin
comparison pidgin/gtkpounce.c @ 32686:3538e783b98c
Fix all deprecated GTK_WIDGET_* macros.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 09 Oct 2011 02:50:20 +0000 |
parents | 10e5000326a5 |
children | 763d65f3f758 |
comparison
equal
deleted
inserted
replaced
32685:457443ca22e0 | 32686:3538e783b98c |
---|---|
1016 } | 1016 } |
1017 | 1017 |
1018 static gboolean | 1018 static gboolean |
1019 pounces_manager_configure_cb(GtkWidget *widget, GdkEventConfigure *event, PouncesManager *dialog) | 1019 pounces_manager_configure_cb(GtkWidget *widget, GdkEventConfigure *event, PouncesManager *dialog) |
1020 { | 1020 { |
1021 #if GTK_CHECK_VERSION(2,18,0) | |
1022 if (gtk_widget_get_visible(widget)) { | |
1023 #else | |
1021 if (GTK_WIDGET_VISIBLE(widget)) { | 1024 if (GTK_WIDGET_VISIBLE(widget)) { |
1025 #endif | |
1022 purple_prefs_set_int(PIDGIN_PREFS_ROOT "/pounces/dialog/width", event->width); | 1026 purple_prefs_set_int(PIDGIN_PREFS_ROOT "/pounces/dialog/width", event->width); |
1023 purple_prefs_set_int(PIDGIN_PREFS_ROOT "/pounces/dialog/height", event->height); | 1027 purple_prefs_set_int(PIDGIN_PREFS_ROOT "/pounces/dialog/height", event->height); |
1024 } | 1028 } |
1025 | 1029 |
1026 return FALSE; | 1030 return FALSE; |