Mercurial > pidgin
diff pidgin/gtkstatusbox.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 | 3538e783b98c |
children |
line wrap: on
line diff
--- a/pidgin/gtkstatusbox.c Sun Oct 09 02:50:20 2011 +0000 +++ b/pidgin/gtkstatusbox.c Sun Oct 09 03:35:22 2011 +0000 @@ -72,6 +72,12 @@ #if !GTK_CHECK_VERSION(2,18,0) #define gtk_widget_is_sensitive(x) GTK_WIDGET_IS_SENSITIVE(x) +#define gtk_widget_set_has_window(x, y) do { \ + if (y) \ + GTK_WIDGET_UNSET_FLAGS(x, GTK_WIDGET_NO_WINDOW); \ + else \ + GTK_WIDGET_SET_FLAGS(x, GTK_WIDGET_NO_WINDOW); \ +} while (0) #endif static void imhtml_changed_cb(GtkTextBuffer *buffer, void *data); @@ -1753,7 +1759,7 @@ GtkWidget *toplevel; GtkTreeSelection *sel; - GTK_WIDGET_SET_FLAGS (status_box, GTK_NO_WINDOW); + gtk_widget_set_has_window(GTK_WIDGET(status_box), FALSE); status_box->imhtml_visible = FALSE; status_box->network_available = purple_network_is_available(); status_box->connecting = FALSE;