[empathy] log-window: start the search when the entry is activated (#619863)



commit d754e98ad2c3a5deefc47e1b3eeedbd982360cf4
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Fri May 28 09:24:18 2010 +0200

    log-window: start the search when the entry is activated (#619863)

 libempathy-gtk/empathy-log-window.c |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index 3345f5b..ac889fc 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -99,6 +99,8 @@ static void     log_window_find_populate                   (EmpathyLogWindow *wi
 static void     log_window_find_setup                      (EmpathyLogWindow *window);
 static void     log_window_button_find_clicked_cb          (GtkWidget        *widget,
 							    EmpathyLogWindow *window);
+static void     log_window_entry_find_activate_cb          (GtkWidget        *widget,
+							    EmpathyLogWindow *window);
 static void     log_window_button_next_clicked_cb          (GtkWidget        *widget,
 							    EmpathyLogWindow *window);
 static void     log_window_button_previous_clicked_cb      (GtkWidget        *widget,
@@ -241,6 +243,7 @@ empathy_log_window_show (TpAccount  *account,
 	empathy_builder_connect (gui, window,
 			      "log_window", "destroy", log_window_destroy_cb,
 			      "entry_find", "changed", log_window_entry_find_changed_cb,
+			      "entry_find", "activate", log_window_entry_find_activate_cb,
 			      "button_previous", "clicked", log_window_button_previous_clicked_cb,
 			      "button_next", "clicked", log_window_button_next_clicked_cb,
 			      "button_find", "clicked", log_window_button_find_clicked_cb,
@@ -738,8 +741,7 @@ log_window_find_setup (EmpathyLogWindow *window)
 }
 
 static void
-log_window_button_find_clicked_cb (GtkWidget       *widget,
-				   EmpathyLogWindow *window)
+start_find_search (EmpathyLogWindow *window)
 {
 	const gchar *str;
 
@@ -757,6 +759,20 @@ log_window_button_find_clicked_cb (GtkWidget       *widget,
 }
 
 static void
+log_window_button_find_clicked_cb (GtkWidget       *widget,
+				   EmpathyLogWindow *window)
+{
+	start_find_search (window);
+}
+
+static void
+log_window_entry_find_activate_cb (GtkWidget *entry,
+				   EmpathyLogWindow *self)
+{
+	start_find_search (self);
+}
+
+static void
 log_window_button_next_clicked_cb (GtkWidget       *widget,
 				   EmpathyLogWindow *window)
 {



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