aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandni Verma <chandniverma2112@gmail.com>2013-07-23 01:40:41 +0800
committerChandni Verma <chandniverma2112@gmail.com>2013-08-23 23:03:14 +0800
commita66eb2416fc90deef46ee1c94271d7be869bc383 (patch)
treea34ce9485638b297cc858a8744ead15dd2ed8efe
parentd841954eddd303fe94a73a6f75926a3ffbedf212 (diff)
downloadgsoc2013-empathy-a66eb2416fc90deef46ee1c94271d7be869bc383.tar.gz
gsoc2013-empathy-a66eb2416fc90deef46ee1c94271d7be869bc383.tar.zst
gsoc2013-empathy-a66eb2416fc90deef46ee1c94271d7be869bc383.zip
RosterWindow: Connect to signal "menu-item-activated" from EmpathyIndividualMenu
https://bugzilla.gnome.org/show_bug.cgi?id=643183
-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 74d9c42c1..63c2c9cfa 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);