aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
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')
-rw-r--r--src/empathy-main-window.c11
-rw-r--r--src/empathy-main-window.ui8
2 files changed, 19 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,
diff --git a/src/empathy-main-window.ui b/src/empathy-main-window.ui
index e684c6bdf..c4c1b79cb 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>
@@ -232,6 +239,7 @@
<menuitem action="chat_new_call"/>
<separator/>
<menuitem action="chat_add_contact"/>
+ <menuitem action="chat_search_contacts"/>
<separator/>
<menuitem action="chat_quit"/>
</menu>