[Mplayer-cvslog] CVS: main/Gui/mplayer/gtk fs.c,1.13,1.14 fs.h,1.12,1.13

Zoltan Ponekker pontscho at mplayerhq.hu
Tue Jul 2 23:10:44 CEST 2002


Update of /cvsroot/mplayer/main/Gui/mplayer/gtk
In directory mail:/var/tmp.root/cvs-serv15911/Gui/mplayer/gtk

Modified Files:
	fs.c fs.h 
Log Message:
fix window hiding bug with some wms (kde, gnome, icewm, mwm, wmaker)

Index: fs.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/gtk/fs.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- fs.c	20 May 2002 13:56:16 -0000	1.13
+++ fs.c	2 Jul 2002 21:10:41 -0000	1.14
@@ -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 );
 }
 

Index: fs.h
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/gtk/fs.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- fs.h	20 May 2002 13:56:16 -0000	1.12
+++ fs.h	2 Jul 2002 21:10:41 -0000	1.13
@@ -10,7 +10,7 @@
 extern GtkWidget   * fsFileSelect;
 
 extern void HideFileSelect( void );
-extern void ShowFileSelect( int type );
+extern void ShowFileSelect( int type, int modal );
 
 extern GtkWidget * create_FileSelect( void );
 




More information about the MPlayer-cvslog mailing list