Mercurial > mplayer.hg
changeset 34346:3d0c795524b0
Fix bug with wrong focus in file selector.
The focus can only be set to fsFNameList after it's realized and mapped.
This also removes the irritating selection of the fsPathCombo.
author | ib |
---|---|
date | Sun, 11 Dec 2011 16:02:02 +0000 |
parents | 1f6e77b8cb1d |
children | 8861ea3ec08c |
files | gui/ui/gtk/fileselect.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/ui/gtk/fileselect.c Sun Dec 11 15:53:37 2011 +0000 +++ b/gui/ui/gtk/fileselect.c Sun Dec 11 16:02:02 2011 +0000 @@ -358,6 +358,8 @@ fsTopList_items=g_list_append( fsTopList_items,"/" ); gtk_combo_set_popdown_strings( GTK_COMBO( fsCombo4 ),fsTopList_items ); + gtk_widget_grab_focus( fsFNameList ); + gtk_window_set_modal( GTK_WINDOW( fsFileSelect ),modal ); gtk_widget_show( fsFileSelect ); @@ -726,7 +728,5 @@ gtk_signal_connect( GTK_OBJECT( fsFNameList ),"select_row",(GtkSignalFunc)fs_fsFNameList_select_row,NULL ); gtk_signal_connect( GTK_OBJECT( fsFNameList ),"event", (GtkSignalFunc)fs_fsFNameList_event,NULL ); - gtk_widget_grab_focus( fsFNameList ); - return fsFileSelect; }