changeset 21277:cd494bf77723

Hitting enter on a file will trigger the 'select' button in the file selector dialog.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Tue, 30 Oct 2007 10:50:20 +0000
parents 5321f283365e
children ebb46dea479a
files finch/libgnt/gntfilesel.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/gntfilesel.c	Tue Oct 30 10:24:16 2007 +0000
+++ b/finch/libgnt/gntfilesel.c	Tue Oct 30 10:50:20 2007 +0000
@@ -634,6 +634,7 @@
 	sel->cancel = gnt_button_new("Cancel");
 	sel->select = gnt_button_new("Select");
 
+	g_signal_connect_swapped(G_OBJECT(sel->files), "activate", G_CALLBACK(gnt_widget_activate), sel->select);
 	g_signal_connect(G_OBJECT(sel->select), "activate", G_CALLBACK(select_activated_cb), sel);
 }