summary refs log tree commit diff stats
path: root/src/fe-gtk/maingui.c
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-10-08 20:00:07 -0400
committerTingPing <tingping@tingping.se>2013-10-08 20:00:07 -0400
commit44ad5703ea2964e63730a6b50e741ff5e762d5f9 (patch)
tree1438d44b751a57914ea8c3b6da7e5b30c862c91b /src/fe-gtk/maingui.c
parentb393d2f62f84782c32a4fdddd7e0310efc10a189 (diff)
Work around for /away being called multiple times
This will have to be solved eventually in menu.c so you can change their
status without emitting the signals.
Diffstat (limited to 'src/fe-gtk/maingui.c')
-rw-r--r--src/fe-gtk/maingui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c
index 4d4707ea..60060431 100644
--- a/src/fe-gtk/maingui.c
+++ b/src/fe-gtk/maingui.c
@@ -3482,7 +3482,7 @@ fe_set_away (server *serv)
 		{
 			if (!sess->gui->is_tab || sess == current_tab)
 			{
-				gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (sess->gui->menu_item[MENU_ID_AWAY]), serv->is_away);
+				GTK_CHECK_MENU_ITEM (sess->gui->menu_item[MENU_ID_AWAY])->active = serv->is_away;
 				/* gray out my nickname */
 				mg_set_myself_away (sess->gui, serv->is_away);
 			}