[empathy/gnome-2-34] Contact Search Dialog: Search when enter is pressed
- From: Emilio Pozuelo Monfort <epm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy/gnome-2-34] Contact Search Dialog: Search when enter is pressed
- Date: Thu, 3 Mar 2011 13:33:26 +0000 (UTC)
commit 62aabd365e4cf4c3f91a02af884cce38f65be46b
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 f64137d..5bf94c0 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]