[empathy] RosterWindow: Connect to signal "menu-item-activated" from EmpathyIndividualMenu
- From: Chandni Verma <vchandni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] RosterWindow: Connect to signal "menu-item-activated" from EmpathyIndividualMenu
- Date: Fri, 23 Aug 2013 15:10:08 +0000 (UTC)
commit a66eb2416fc90deef46ee1c94271d7be869bc383
Author: Chandni Verma <chandniverma2112 gmail com>
Date: Mon Jul 22 23:10:41 2013 +0530
RosterWindow: Connect to signal "menu-item-activated" from EmpathyIndividualMenu
https://bugzilla.gnome.org/show_bug.cgi?id=643183
src/empathy-roster-window.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-roster-window.c b/src/empathy-roster-window.c
index 74d9c42..63c2c9c 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]