aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-main-window.c
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-01-28 18:09:02 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-01-28 18:26:03 +0800
commit66c018746b98cd5f75a5a82e5c3caaa323197c70 (patch)
tree703904145980ea7a8b4ba8a49176aa32ddf7f24c /src/empathy-main-window.c
parent5be47bde51c996bbb0be0d90f87e86ae982286a4 (diff)
downloadgsoc2013-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/empathy-main-window.c')
-rw-r--r--src/empathy-main-window.c11
1 files changed, 11 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,