diff Gui/mplayer/gtk/fs.c @ 6622:da08877b9512

fix window hiding bug with some wms (kde, gnome, icewm, mwm, wmaker)
author pontscho
date Tue, 02 Jul 2002 21:10:42 +0000
parents b9651eb9749e
children 7bc4c6ba9485
line wrap: on
line diff
--- a/Gui/mplayer/gtk/fs.c	Tue Jul 02 20:29:27 2002 +0000
+++ b/Gui/mplayer/gtk/fs.c	Tue Jul 02 21:10:42 2002 +0000
@@ -185,7 +185,7 @@
 
 static int FirstInit = 1;
 
-void ShowFileSelect( int type )
+void ShowFileSelect( int type,int modal )
 {
  int i;
 
@@ -235,6 +235,9 @@
         gtk_entry_set_text( GTK_ENTRY( fsFilterCombo ),fsOtherFilterNames[fsNumberOfOtherFilterNames][0] );
         break;
   }
+ 
+ gtk_window_set_modal( GTK_WINDOW( fsFileSelect ),modal );
+
  gtk_widget_show( fsFileSelect );
 }