changeset 9010:54a0f8069f76

[gaim-migrate @ 9786] " This patch makes pressing enter in the entry box, or pressing Alt-F, actually do what you'd expect - perform the search - in the log and system log viewer." --Stu Tomlinson committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sat, 22 May 2004 16:38:54 +0000
parents fe5d083f0172
children 67fa13b080bf
files src/gtklog.c
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtklog.c	Sat May 22 15:54:58 2004 +0000
+++ b/src/gtklog.c	Sat May 22 16:38:54 2004 +0000
@@ -326,10 +326,11 @@
 	gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
 	lv->entry = gtk_entry_new();
 	gtk_box_pack_start(GTK_BOX(hbox), lv->entry, TRUE, TRUE, 0);
+	g_signal_connect(GTK_ENTRY(lv->entry), "activate",
+			  G_CALLBACK (search_cb), lv);
 	button = gtk_button_new_from_stock(GTK_STOCK_FIND);
-	g_signal_connect (G_OBJECT (button), "pressed",
-			  G_CALLBACK (search_cb),
-			  lv);
+	g_signal_connect (GTK_BUTTON (button), "activate",
+			  G_CALLBACK (search_cb), lv);
 	gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);
 	gaim_set_accessible_label (lv->treeview, label);
 
@@ -432,8 +433,11 @@
 	gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
 	syslog_viewer->entry = gtk_entry_new();
 	gtk_box_pack_start(GTK_BOX(hbox), syslog_viewer->entry, TRUE, TRUE, 0);
+	g_signal_connect (GTK_ENTRY (syslog_viewer->entry), "activate",
+			  G_CALLBACK (search_cb),
+			  syslog_viewer);
 	button = gtk_button_new_from_stock(GTK_STOCK_FIND);
-	g_signal_connect (G_OBJECT (button), "pressed",
+	g_signal_connect (GTK_BUTTON (button), "activate",
 			  G_CALLBACK (search_cb),
 			  syslog_viewer);
 	gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);