diff options
author | TingPing <tngpng@gmail.com> | 2013-05-16 09:07:38 -0700 |
---|---|---|
committer | TingPing <tngpng@gmail.com> | 2013-05-16 09:07:38 -0700 |
commit | 69c2893234452107b2db67e431868d7400ea25aa (patch) | |
tree | 904233560d5029a472ec6416b4874f55c9b17011 /src/fe-gtk/menu.c | |
parent | 26cefd0587a5ca092a7b4ee442c144eee9e19dc5 (diff) | |
parent | 8ccd11ee4bbf3d4a7a7fc06a872eca6d20544cba (diff) |
Merge pull request #586 from bviktor/authcleanup
Login and network list cleanup
Diffstat (limited to 'src/fe-gtk/menu.c')
-rw-r--r-- | src/fe-gtk/menu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fe-gtk/menu.c b/src/fe-gtk/menu.c index f0f49730..014ef3e7 100644 --- a/src/fe-gtk/menu.c +++ b/src/fe-gtk/menu.c @@ -1048,9 +1048,13 @@ menu_addfavoritemenu (server *serv, GtkWidget *menu, char *channel) } if (joinlist_is_in_list (serv, channel)) + { mg_create_icon_item (_("_Remove from Favorites"), GTK_STOCK_REMOVE, menu, menu_delfav_cb, serv); + } else + { mg_create_icon_item (_("_Add to Favorites"), GTK_STOCK_ADD, menu, menu_addfav_cb, serv); + } } static void @@ -1729,11 +1733,7 @@ static gboolean menu_canacaccel (GtkWidget *widget, guint signal_id, gpointer user_data) { /* GTK2.2 behaviour */ -#if GTK_CHECK_VERSION(2,20,0) return gtk_widget_is_sensitive (widget); -#else - return GTK_WIDGET_IS_SENSITIVE (widget); -#endif } /* === STUFF FOR /MENU === */ |