diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-main-window.c | 10 | ||||
-rw-r--r-- | src/empathy-main-window.ui | 7 |
2 files changed, 17 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, diff --git a/src/empathy-main-window.ui b/src/empathy-main-window.ui index 1d06b3edd..a328eacfe 100644 --- a/src/empathy-main-window.ui +++ b/src/empathy-main-window.ui @@ -166,6 +166,12 @@ <accelerator key="3" modifiers="GDK_CONTROL_MASK"/> </child> <child> + <object class="GtkAction" id="view_search_contacts"> + <property name="name">view_search_contacts</property> + <property name="label" translatable="yes">Find in Contact _List</property> + </object> + </child> + <child> <object class="GtkAction" id="room"> <property name="name">room</property> <property name="label" translatable="yes">_Room</property> @@ -248,6 +254,7 @@ <menuitem action="view_normal_size"/> <menuitem action="view_compact_size"/> <separator/> + <menuitem action="view_search_contacts"/> <menuitem action="view_history"/> <menuitem action="view_show_ft_manager"/> <menuitem action="view_show_map"/> |