diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-01-28 18:09:02 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-01-28 18:26:03 +0800 |
commit | 66c018746b98cd5f75a5a82e5c3caaa323197c70 (patch) | |
tree | 703904145980ea7a8b4ba8a49176aa32ddf7f24c /src | |
parent | 5be47bde51c996bbb0be0d90f87e86ae982286a4 (diff) | |
download | gsoc2013-empathy-66c018746b98cd5f75a5a82e5c3caaa323197c70.tar gsoc2013-empathy-66c018746b98cd5f75a5a82e5c3caaa323197c70.tar.gz gsoc2013-empathy-66c018746b98cd5f75a5a82e5c3caaa323197c70.tar.bz2 gsoc2013-empathy-66c018746b98cd5f75a5a82e5c3caaa323197c70.tar.lz gsoc2013-empathy-66c018746b98cd5f75a5a82e5c3caaa323197c70.tar.xz gsoc2013-empathy-66c018746b98cd5f75a5a82e5c3caaa323197c70.tar.zst gsoc2013-empathy-66c018746b98cd5f75a5a82e5c3caaa323197c70.zip |
Add Contact Search support
https://bugzilla.gnome.org/show_bug.cgi?id=606947
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-main-window.c | 11 | ||||
-rw-r--r-- | src/empathy-main-window.ui | 8 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c index da49aece2..672aa9b4d 100644 --- a/src/empathy-main-window.c +++ b/src/empathy-main-window.c @@ -51,6 +51,7 @@ #include <libempathy-gtk/empathy-contact-list-store.h> #include <libempathy-gtk/empathy-contact-list-view.h> #include <libempathy-gtk/empathy-live-search.h> +#include <libempathy-gtk/empathy-contact-search-dialog.h> #include <libempathy-gtk/empathy-geometry.h> #include <libempathy-gtk/empathy-gtk-enum-types.h> #include <libempathy-gtk/empathy-individual-dialogs.h> @@ -920,6 +921,15 @@ main_window_chat_add_contact_cb (GtkAction *action, } static void +main_window_chat_search_contacts_cb (GtkAction *action, + EmpathyMainWindow *window) +{ + GtkWidget *dialog = empathy_contact_search_dialog_new ( + GTK_WINDOW (window)); + gtk_widget_show (dialog); +} + +static void main_window_view_show_ft_manager (GtkAction *action, EmpathyMainWindow *window) { @@ -1743,6 +1753,7 @@ empathy_main_window_init (EmpathyMainWindow *window) "room_join_favorites", "activate", main_window_room_join_favorites_cb, "room_manage_favorites", "activate", main_window_room_manage_favorites_cb, "chat_add_contact", "activate", main_window_chat_add_contact_cb, + "chat_search_contacts", "activate", main_window_chat_search_contacts_cb, "view_show_ft_manager", "activate", main_window_view_show_ft_manager, "view_show_offline", "toggled", main_window_view_show_offline_cb, "view_show_protocols", "toggled", main_window_view_show_protocols_cb, diff --git a/src/empathy-main-window.ui b/src/empathy-main-window.ui index 07903e5a3..c57a9df64 100644 --- a/src/empathy-main-window.ui +++ b/src/empathy-main-window.ui @@ -42,6 +42,13 @@ </object> </child> <child> + <object class="GtkAction" id="chat_search_contacts"> + <property name="stock_id">gtk-find</property> + <property name="name">chat_search_contacts</property> + <property name="label" translatable="yes">_Search for Contacts…</property> + </object> + </child> + <child> <object class="GtkAction" id="view_show_ft_manager"> <property name="icon-name">document-send</property> <property name="name">view_show_ft_manager</property> @@ -226,6 +233,7 @@ <menuitem action="chat_new_call"/> <separator/> <menuitem action="chat_add_contact"/> + <menuitem action="chat_search_contacts"/> <separator/> <menuitem action="chat_quit"/> </menu> |