comparison pidgin/gtkdebug.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 457443ca22e0
children
comparison
equal deleted inserted replaced
32685:457443ca22e0 32686:3538e783b98c
126 } 126 }
127 127
128 static gboolean 128 static gboolean
129 configure_cb(GtkWidget *w, GdkEventConfigure *event, DebugWindow *win) 129 configure_cb(GtkWidget *w, GdkEventConfigure *event, DebugWindow *win)
130 { 130 {
131 #if GTK_CHECK_VERSION(2,18,0)
132 if (gtk_widget_get_visible(w)) {
133 #else
131 if (GTK_WIDGET_VISIBLE(w)) { 134 if (GTK_WIDGET_VISIBLE(w)) {
135 #endif
132 purple_prefs_set_int(PIDGIN_PREFS_ROOT "/debug/width", event->width); 136 purple_prefs_set_int(PIDGIN_PREFS_ROOT "/debug/width", event->width);
133 purple_prefs_set_int(PIDGIN_PREFS_ROOT "/debug/height", event->height); 137 purple_prefs_set_int(PIDGIN_PREFS_ROOT "/debug/height", event->height);
134 } 138 }
135 139
136 return FALSE; 140 return FALSE;
623 } 627 }
624 628
625 static void 629 static void
626 regex_key_release_cb(GtkWidget *w, GdkEventKey *e, DebugWindow *win) { 630 regex_key_release_cb(GtkWidget *w, GdkEventKey *e, DebugWindow *win) {
627 if(e->keyval == GDK_Return && 631 if(e->keyval == GDK_Return &&
632 #if GTK_CHECK_VERSION(2,18,0)
633 gtk_widget_is_sensitive(win->filter) &&
634 #else
628 GTK_WIDGET_IS_SENSITIVE(win->filter) && 635 GTK_WIDGET_IS_SENSITIVE(win->filter) &&
636 #endif
629 !gtk_toggle_tool_button_get_active(GTK_TOGGLE_TOOL_BUTTON(win->filter))) 637 !gtk_toggle_tool_button_get_active(GTK_TOGGLE_TOOL_BUTTON(win->filter)))
630 { 638 {
631 gtk_toggle_tool_button_set_active(GTK_TOGGLE_TOOL_BUTTON(win->filter), TRUE); 639 gtk_toggle_tool_button_set_active(GTK_TOGGLE_TOOL_BUTTON(win->filter), TRUE);
632 } 640 }
633 } 641 }