Mercurial > mplayer.hg
comparison gui/dialog/fileselect.c @ 35976:6eaf7941b762
Rename ShowFileSelect() ShowFileSelector().
Additionally, remove a parameter. It's always
the same, default value anyway.
author | ib |
---|---|
date | Thu, 28 Mar 2013 16:52:56 +0000 |
parents | 16f60d1a3b7f |
children | a5ddb88de149 |
comparison
equal
deleted
inserted
replaced
35975:16f60d1a3b7f | 35976:6eaf7941b762 |
---|---|
650 gtk_signal_connect( GTK_OBJECT( fsFNameList ),"event", (GtkSignalFunc)fs_fsFNameList_event,NULL ); | 650 gtk_signal_connect( GTK_OBJECT( fsFNameList ),"event", (GtkSignalFunc)fs_fsFNameList_event,NULL ); |
651 | 651 |
652 return FileSelector; | 652 return FileSelector; |
653 } | 653 } |
654 | 654 |
655 void ShowFileSelect( int type,int modal ) | 655 void ShowFileSelector( int type ) |
656 { | 656 { |
657 int i, k, fsMedium; | 657 int i, k, fsMedium; |
658 char * tmp = NULL, * dir = NULL; | 658 char * tmp = NULL, * dir = NULL; |
659 const gchar *fname; | 659 const gchar *fname; |
660 struct stat f; | 660 struct stat f; |
767 if (fsLastFNameListSelected + 1 > ((GtkCList *)fsFNameList)->rows) fsLastFNameListSelected = 0; | 767 if (fsLastFNameListSelected + 1 > ((GtkCList *)fsFNameList)->rows) fsLastFNameListSelected = 0; |
768 ((GtkCList *)fsFNameList)->focus_row = fsLastFNameListSelected; | 768 ((GtkCList *)fsFNameList)->focus_row = fsLastFNameListSelected; |
769 gtk_clist_select_row( GTK_CLIST( fsFNameList ),fsLastFNameListSelected,1 ); | 769 gtk_clist_select_row( GTK_CLIST( fsFNameList ),fsLastFNameListSelected,1 ); |
770 fsLastFNameListSelected = 0; | 770 fsLastFNameListSelected = 0; |
771 | 771 |
772 gtk_window_set_modal( GTK_WINDOW( FileSelector ),modal ); | |
773 | |
774 gtk_widget_show( FileSelector ); | 772 gtk_widget_show( FileSelector ); |
775 } | 773 } |