--- a/pidgin/gtkmenutray.c Tue Feb 11 17:34:20 2014 +0100 +++ b/pidgin/gtkmenutray.c Tue Feb 11 20:08:33 2014 +0100 @@ -23,6 +23,7 @@ #include "gtkmenutray.h" +#include "glibcompat.h" #include "gtk3compat.h" /****************************************************************************** @@ -155,12 +156,11 @@ GtkSettings *settings; gint height = -1; -#if GTK_CHECK_VERSION(3,0,0) - gtk_widget_set_hexpand(widget, TRUE); - gtk_widget_set_halign(widget, GTK_ALIGN_END); -#else +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + /* Gtk3 docs says, it should be replaced with gtk_widget_set_hexpand and + * gtk_widget_set_halign. But it doesn't seems to work. */ gtk_menu_item_set_right_justified(GTK_MENU_ITEM(menu_tray), TRUE); -#endif +G_GNUC_END_IGNORE_DEPRECATIONS if(!GTK_IS_WIDGET(menu_tray->tray)) menu_tray->tray = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);