[MPlayer-cvslog] r34434 - trunk/gui/ui/gtk/fileselect.c

ib subversion at mplayerhq.hu
Sun Dec 11 17:02:02 CET 2011


Author: ib
Date: Sun Dec 11 17:02:02 2011
New Revision: 34434

Log:
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.

Modified:
   trunk/gui/ui/gtk/fileselect.c

Modified: trunk/gui/ui/gtk/fileselect.c
==============================================================================
--- trunk/gui/ui/gtk/fileselect.c	Sun Dec 11 16:53:37 2011	(r34433)
+++ trunk/gui/ui/gtk/fileselect.c	Sun Dec 11 17:02:02 2011	(r34434)
@@ -358,6 +358,8 @@ void ShowFileSelect( int type,int modal 
  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 @@ GtkWidget * create_FileSelect( void )
  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;
 }


More information about the MPlayer-cvslog mailing list