]> git.0d.be Git - empathy.git/commitdiff
Contact Search Dialog: Search when enter is pressed
authorDanielle Madeley <danielle.madeley@collabora.co.uk>
Thu, 3 Mar 2011 13:07:38 +0000 (00:07 +1100)
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Thu, 3 Mar 2011 13:35:09 +0000 (13:35 +0000)
libempathy-gtk/empathy-contact-search-dialog.c

index c0143cd6ddef9d5ff04d284b63fbc3e4f9258a09..cd62a1940fc4fe9b57ccf75fd9bf6f8ef8cf0c15 100644 (file)
@@ -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",