Mercurial > pidgin
comparison pidgin/gtksavedstatuses.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 | 917c597beb97 |
children |
comparison
equal
deleted
inserted
replaced
32685:457443ca22e0 | 32686:3538e783b98c |
---|---|
522 } | 522 } |
523 | 523 |
524 static gboolean | 524 static gboolean |
525 configure_cb(GtkWidget *widget, GdkEventConfigure *event, StatusWindow *dialog) | 525 configure_cb(GtkWidget *widget, GdkEventConfigure *event, StatusWindow *dialog) |
526 { | 526 { |
527 #if GTK_CHECK_VERSION(2,18,0) | |
528 if (gtk_widget_get_visible(widget)) | |
529 #else | |
527 if (GTK_WIDGET_VISIBLE(widget)) | 530 if (GTK_WIDGET_VISIBLE(widget)) |
531 #endif | |
528 { | 532 { |
529 purple_prefs_set_int(PIDGIN_PREFS_ROOT "/status/dialog/width", event->width); | 533 purple_prefs_set_int(PIDGIN_PREFS_ROOT "/status/dialog/width", event->width); |
530 purple_prefs_set_int(PIDGIN_PREFS_ROOT "/status/dialog/height", event->height); | 534 purple_prefs_set_int(PIDGIN_PREFS_ROOT "/status/dialog/height", event->height); |
531 } | 535 } |
532 | 536 |