aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2011-03-03 21:07:38 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-03-03 21:35:09 +0800
commita5667a859d34c1d79c966f625e6c7f8997f4af36 (patch)
treebbcda84a8dc213a39da788abc3442a36e4d0a418
parent3c8f0ee47ad969dcc56880dad67652263e7b813a (diff)
downloadgsoc2013-empathy-a5667a859d34c1d79c966f625e6c7f8997f4af36.tar
gsoc2013-empathy-a5667a859d34c1d79c966f625e6c7f8997f4af36.tar.gz
gsoc2013-empathy-a5667a859d34c1d79c966f625e6c7f8997f4af36.tar.bz2
gsoc2013-empathy-a5667a859d34c1d79c966f625e6c7f8997f4af36.tar.lz
gsoc2013-empathy-a5667a859d34c1d79c966f625e6c7f8997f4af36.tar.xz
gsoc2013-empathy-a5667a859d34c1d79c966f625e6c7f8997f4af36.tar.zst
gsoc2013-empathy-a5667a859d34c1d79c966f625e6c7f8997f4af36.zip
Contact Search Dialog: Search when enter is pressed
-rw-r--r--libempathy-gtk/empathy-contact-search-dialog.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-contact-search-dialog.c b/libempathy-gtk/empathy-contact-search-dialog.c
index c0143cd6d..cd62a1940 100644
--- a/libempathy-gtk/empathy-contact-search-dialog.c
+++ b/libempathy-gtk/empathy-contact-search-dialog.c
@@ -344,7 +344,7 @@ _account_chooser_changed (EmpathyAccountChooser *chooser,
}
static void
-_on_button_search_clicked (GtkButton *button,
+_on_button_search_clicked (GtkWidget *widget,
EmpathyContactSearchDialog *self)
{
empathy_contact_search_dialog_do_search (self);
@@ -479,6 +479,8 @@ empathy_contact_search_dialog_init (EmpathyContactSearchDialog *self)
priv->search_entry = gtk_entry_new ();
gtk_box_pack_start (GTK_BOX (hbox), priv->search_entry, TRUE, TRUE, 0);
+ g_signal_connect (priv->search_entry, "activate",
+ G_CALLBACK (_on_button_search_clicked), self);
priv->find_button = gtk_button_new_from_stock (GTK_STOCK_FIND);
g_signal_connect (priv->find_button, "clicked",