aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-main-window.c
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-01-28 07:37:46 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-01-28 07:49:50 +0800
commit598dd64034b56c84463580f248f5b54dcda361f2 (patch)
tree31da3d9ea27d50b3a2dbde207a2594c27cca3972 /src/empathy-main-window.c
parente1f1a8556be4ec33ec496c58f9d466026641133f (diff)
downloadgsoc2013-empathy-598dd64034b56c84463580f248f5b54dcda361f2.tar
gsoc2013-empathy-598dd64034b56c84463580f248f5b54dcda361f2.tar.gz
gsoc2013-empathy-598dd64034b56c84463580f248f5b54dcda361f2.tar.bz2
gsoc2013-empathy-598dd64034b56c84463580f248f5b54dcda361f2.tar.lz
gsoc2013-empathy-598dd64034b56c84463580f248f5b54dcda361f2.tar.xz
gsoc2013-empathy-598dd64034b56c84463580f248f5b54dcda361f2.tar.zst
gsoc2013-empathy-598dd64034b56c84463580f248f5b54dcda361f2.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 97e03dc04..b53d1dbca 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -50,6 +50,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>
@@ -935,6 +936,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)
{
@@ -1778,6 +1788,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,