[empathy] Contact Search Dialog: Search when enter is pressed



commit a5667a859d34c1d79c966f625e6c7f8997f4af36
Author: Danielle Madeley <danielle madeley collabora co uk>
Date:   Fri Mar 4 00:07:38 2011 +1100

    Contact Search Dialog: Search when enter is pressed

 libempathy-gtk/empathy-contact-search-dialog.c |    4 +++-
 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 c0143cd..cd62a19 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",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]