changeset 32717:194f66d5089a

Use the GtkWidget for a menu instead of its GtkAction.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Thu, 23 Feb 2012 09:00:17 +0000
parents 4f8626d4ef63
children 3c420b12a034
files pidgin/gtkconv.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkconv.c	Thu Feb 23 08:13:23 2012 +0000
+++ b/pidgin/gtkconv.c	Thu Feb 23 09:00:17 2012 +0000
@@ -3392,6 +3392,7 @@
 static void
 regenerate_attention_items(PidginWindow *win)
 {
+	GtkWidget *attention;
 	GtkWidget *menu;
 	PurpleConversation *conv;
 	PurpleConnection *pc;
@@ -3403,8 +3404,11 @@
 	if (!conv)
 		return;
 
+	attention = gtk_ui_manager_get_widget(win->menu.ui,
+	                                      "/Conversation/ConversationMenu/GetAttention");
+
 	/* Remove the previous entries */
-	gtk_menu_item_set_submenu(GTK_MENU_ITEM(win->menu.get_attention), NULL);
+	gtk_menu_item_set_submenu(GTK_MENU_ITEM(attention), NULL);
 
 	pc = purple_conversation_get_connection(conv);
 	if (pc != NULL)
@@ -3437,7 +3441,7 @@
 				list = g_list_delete_link(list, list);
 			}
 
-			gtk_menu_item_set_submenu(GTK_MENU_ITEM(win->menu.get_attention), menu);
+			gtk_menu_item_set_submenu(GTK_MENU_ITEM(attention), menu);
 			gtk_widget_show_all(menu);
 		}
 	}