summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChandni Verma <chandniverma2112@gmail.com>2013-07-22 23:10:41 +0530
committerChandni Verma <chandniverma2112@gmail.com>2013-08-23 20:33:14 +0530
commita66eb2416fc90deef46ee1c94271d7be869bc383 (patch)
treea34ce9485638b297cc858a8744ead15dd2ed8efe /src
parentd841954eddd303fe94a73a6f75926a3ffbedf212 (diff)
RosterWindow: Connect to signal "menu-item-activated" from EmpathyIndividualMenu
https://bugzilla.gnome.org/show_bug.cgi?id=643183
Diffstat (limited to 'src')
-rw-r--r--src/empathy-roster-window.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/empathy-roster-window.c b/src/empathy-roster-window.c
index 74d9c42c..63c2c9cf 100644
--- a/src/empathy-roster-window.c
+++ b/src/empathy-roster-window.c
@@ -1963,6 +1963,15 @@ menu_deactivate_cb (GtkMenuShell *menushell,
}
static void
+menu_item_activated_cb (GtkMenuShell *menushell,
+ gpointer user_data)
+{
+ EmpathyRosterWindow *roster_window = EMPATHY_ROSTER_WINDOW (user_data);
+
+ hide_search_bar (roster_window);
+}
+
+static void
popup_individual_menu_cb (EmpathyRosterView *view,
const gchar *active_group,
FolksIndividual *individual,
@@ -1992,6 +2001,8 @@ popup_individual_menu_cb (EmpathyRosterView *view,
* during the whole lifetime of Empathy. */
g_signal_connect (menu, "deactivate", G_CALLBACK (menu_deactivate_cb),
NULL);
+ g_signal_connect (menu, "menu-item-activated",
+ G_CALLBACK (menu_item_activated_cb), user_data);
gtk_menu_attach_to_widget (GTK_MENU (menu), GTK_WIDGET (view), NULL);
gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, NULL, button, time);