aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-main-window.c
diff options
context:
space:
mode:
authorVitaly Minko <vitaly.minko@gmail.com>2010-10-18 19:32:37 +0800
committerVitaly Minko <vitaly.minko@gmail.com>2010-10-18 19:32:37 +0800
commit2d25c8605b4e6a2cb832955de7f6e12080a658e0 (patch)
treea25f1563499bb17649800818e52d9a0725eedb0d /src/empathy-main-window.c
parentcddc09f1ca10d13de7d71fa199b1ae4d5a7c8784 (diff)
downloadgsoc2013-empathy-2d25c8605b4e6a2cb832955de7f6e12080a658e0.tar
gsoc2013-empathy-2d25c8605b4e6a2cb832955de7f6e12080a658e0.tar.gz
gsoc2013-empathy-2d25c8605b4e6a2cb832955de7f6e12080a658e0.tar.bz2
gsoc2013-empathy-2d25c8605b4e6a2cb832955de7f6e12080a658e0.tar.lz
gsoc2013-empathy-2d25c8605b4e6a2cb832955de7f6e12080a658e0.tar.xz
gsoc2013-empathy-2d25c8605b4e6a2cb832955de7f6e12080a658e0.tar.zst
gsoc2013-empathy-2d25c8605b4e6a2cb832955de7f6e12080a658e0.zip
Add an entry in the View menu to search for contacts (#632024).
Diffstat (limited to 'src/empathy-main-window.c')
-rw-r--r--src/empathy-main-window.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index 85a64a365..a62c9cd41 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -954,6 +954,15 @@ main_window_notify_contact_list_size_cb (GSettings *gsettings,
}
static void
+main_window_view_search_contacts_cb (GtkCheckMenuItem *item,
+ EmpathyMainWindow *window)
+{
+ EmpathyMainWindowPriv *priv = GET_PRIV (window);
+
+ empathy_individual_view_start_search (priv->individual_view);
+}
+
+static void
main_window_view_show_map_cb (GtkCheckMenuItem *item,
EmpathyMainWindow *window)
{
@@ -1601,6 +1610,7 @@ empathy_main_window_init (EmpathyMainWindow *window)
"view_show_protocols", "toggled", main_window_view_show_protocols_cb,
"view_sort_by_name", "changed", main_window_view_sort_contacts_cb,
"view_normal_size_with_avatars", "changed", main_window_view_contacts_list_size_cb,
+ "view_search_contacts", "activate", main_window_view_search_contacts_cb,
"view_show_map", "activate", main_window_view_show_map_cb,
"edit", "activate", main_window_edit_cb,
"edit_accounts", "activate", main_window_edit_accounts_cb,