[MPlayer-cvslog] r36070 - in trunk/gui/dialog: dialog.c fileselect.c fileselect.h preferences.c

ib subversion at mplayerhq.hu
Thu Mar 28 17:52:56 CET 2013


Author: ib
Date: Thu Mar 28 17:52:56 2013
New Revision: 36070

Log:
Rename ShowFileSelect() ShowFileSelector().

Additionally, remove a parameter. It's always
the same, default value anyway.

Modified:
   trunk/gui/dialog/dialog.c
   trunk/gui/dialog/fileselect.c
   trunk/gui/dialog/fileselect.h
   trunk/gui/dialog/preferences.c

Modified: trunk/gui/dialog/dialog.c
==============================================================================
--- trunk/gui/dialog/dialog.c	Thu Mar 28 17:35:59 2013	(r36069)
+++ trunk/gui/dialog/dialog.c	Thu Mar 28 17:52:56 2013	(r36070)
@@ -325,17 +325,17 @@ void gtkShow(int type, char *param)
         break;
 
     case evLoad:
-        ShowFileSelect(FILESELECT_VIDEO_AUDIO, 0);
+        ShowFileSelector(FILESELECT_VIDEO_AUDIO);
         gtkSetLayer(FileSelector);
         break;
 
     case evLoadSubtitle:
-        ShowFileSelect(FILESELECT_SUBTITLE, 0);
+        ShowFileSelector(FILESELECT_SUBTITLE);
         gtkSetLayer(FileSelector);
         break;
 
     case evLoadAudioFile:
-        ShowFileSelect(FILESELECT_AUDIO, 0);
+        ShowFileSelector(FILESELECT_AUDIO);
         gtkSetLayer(FileSelector);
         break;
 

Modified: trunk/gui/dialog/fileselect.c
==============================================================================
--- trunk/gui/dialog/fileselect.c	Thu Mar 28 17:35:59 2013	(r36069)
+++ trunk/gui/dialog/fileselect.c	Thu Mar 28 17:52:56 2013	(r36070)
@@ -652,7 +652,7 @@ static GtkWidget * create_FileSelect( vo
  return FileSelector;
 }
 
-void ShowFileSelect( int type,int modal )
+void ShowFileSelector( int type )
 {
  int i, k, fsMedium;
  char * tmp = NULL, * dir = NULL;
@@ -769,7 +769,5 @@ void ShowFileSelect( int type,int modal 
  gtk_clist_select_row( GTK_CLIST( fsFNameList ),fsLastFNameListSelected,1 );
  fsLastFNameListSelected = 0;
 
- gtk_window_set_modal( GTK_WINDOW( FileSelector ),modal );
-
  gtk_widget_show( FileSelector );
 }

Modified: trunk/gui/dialog/fileselect.h
==============================================================================
--- trunk/gui/dialog/fileselect.h	Thu Mar 28 17:35:59 2013	(r36069)
+++ trunk/gui/dialog/fileselect.h	Thu Mar 28 17:52:56 2013	(r36070)
@@ -31,6 +31,6 @@ enum {
 
 extern GtkWidget *FileSelector;
 
-void ShowFileSelect(int type, int modal);
+void ShowFileSelector(int type);
 
 #endif /* MPLAYER_GUI_FILESELECT_H */

Modified: trunk/gui/dialog/preferences.c
==============================================================================
--- trunk/gui/dialog/preferences.c	Thu Mar 28 17:35:59 2013	(r36069)
+++ trunk/gui/dialog/preferences.c	Thu Mar 28 17:52:56 2013	(r36070)
@@ -657,7 +657,7 @@ static void prButton( GtkButton * button
 	break;
 #endif
    case bLFont:
-        ShowFileSelect( FILESELECT_FONT,FALSE );
+        ShowFileSelector( FILESELECT_FONT );
 	gtkSetLayer( FileSelector );
 	break;
   }


More information about the MPlayer-cvslog mailing list