changeset 36099:47ce1c79f14c

Set focus to fsFNameList after a combo box selection. Do so by connecting a key_release_event signal to the combo boxes. This helps when operating the GUI with a remote control (and doesn't harm if not).
author ib
date Tue, 30 Apr 2013 12:03:33 +0000
parents b643292a330a
children 4a8ab984a69e
files gui/dialog/fileselect.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/fileselect.c	Tue Apr 30 11:57:18 2013 +0000
+++ b/gui/dialog/fileselect.c	Tue Apr 30 12:03:33 2013 +0000
@@ -546,6 +546,8 @@
             gtk_button_released(GTK_BUTTON(fsOk));
         else if (GTK_IS_BUTTON(widget))
             gtk_button_released(GTK_BUTTON(widget));
+        else if (GTK_IS_ENTRY(widget))
+            gtk_widget_grab_focus(fsFNameList);
 
         break;
 
@@ -675,7 +677,9 @@
     gtk_signal_connect(GTK_OBJECT(fsFNameListWindow), "key_release_event", GTK_SIGNAL_FUNC(on_FileSelect_key_release_event), NULL);
 
     gtk_signal_connect(GTK_OBJECT(fsFilterCombo), "changed", GTK_SIGNAL_FUNC(fs_fsFilterCombo_changed), fsFilterCombo);
+    gtk_signal_connect(GTK_OBJECT(fsFilterCombo), "key_release_event", GTK_SIGNAL_FUNC(on_FileSelect_key_release_event), NULL);
     gtk_signal_connect(GTK_OBJECT(fsPathCombo), "changed", GTK_SIGNAL_FUNC(fs_fsPathCombo_changed), fsPathCombo);
+    gtk_signal_connect(GTK_OBJECT(fsPathCombo), "key_release_event", GTK_SIGNAL_FUNC(on_FileSelect_key_release_event), NULL);
     gtk_signal_connect(GTK_OBJECT(fsUp), "released", GTK_SIGNAL_FUNC(fs_Up_released), fsFNameList);
     gtk_signal_connect(GTK_OBJECT(fsUp), "key_release_event", GTK_SIGNAL_FUNC(on_FileSelect_key_release_event), NULL);
     gtk_signal_connect(GTK_OBJECT(fsOk), "released", GTK_SIGNAL_FUNC(fs_Ok_released), fsCombo4);