aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-log-window.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-05-28 15:24:18 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-06-02 15:33:57 +0800
commitd754e98ad2c3a5deefc47e1b3eeedbd982360cf4 (patch)
tree6027986e7d613b55255348826192943f65b428ef /libempathy-gtk/empathy-log-window.c
parentb4db990e6e7273cef3be093304a1fea7b783bb21 (diff)
downloadgsoc2013-empathy-d754e98ad2c3a5deefc47e1b3eeedbd982360cf4.tar
gsoc2013-empathy-d754e98ad2c3a5deefc47e1b3eeedbd982360cf4.tar.gz
gsoc2013-empathy-d754e98ad2c3a5deefc47e1b3eeedbd982360cf4.tar.bz2
gsoc2013-empathy-d754e98ad2c3a5deefc47e1b3eeedbd982360cf4.tar.lz
gsoc2013-empathy-d754e98ad2c3a5deefc47e1b3eeedbd982360cf4.tar.xz
gsoc2013-empathy-d754e98ad2c3a5deefc47e1b3eeedbd982360cf4.tar.zst
gsoc2013-empathy-d754e98ad2c3a5deefc47e1b3eeedbd982360cf4.zip
log-window: start the search when the entry is activated (#619863)
Diffstat (limited to 'libempathy-gtk/empathy-log-window.c')
-rw-r--r--libempathy-gtk/empathy-log-window.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index 3345f5b15..ac889fc96 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)
{