[MPlayer-cvslog] r38271 - in trunk/gui/dialog: dialog.c skinbrowser.c
ib
subversion at mplayerhq.hu
Fri Feb 26 16:27:48 EET 2021
Author: ib
Date: Fri Feb 26 16:27:48 2021
New Revision: 38271
Log:
Remove obsolete CreateSkinBrowser().
Rename it ShowSkinBrowser() instead of calling it in ShowSkinBrowser().
Since it's the purpose of ShowSkinBrowser() to show the skin browser,
call gtk_widget_show() there.
Modified:
trunk/gui/dialog/dialog.c
trunk/gui/dialog/skinbrowser.c
Modified: trunk/gui/dialog/dialog.c
==============================================================================
--- trunk/gui/dialog/dialog.c Fri Feb 26 16:15:33 2021 (r38270)
+++ trunk/gui/dialog/dialog.c Fri Feb 26 16:27:48 2021 (r38271)
@@ -277,7 +277,6 @@ void gtkShow(int type, char *param)
FillSkinList(sbSkinDirInData)) {
gtkSelectInCList(SkinList, param);
gtk_clist_sort(GTK_CLIST(SkinList));
- gtk_widget_show(SkinBrowser);
gtkSetLayer(SkinBrowser);
} else {
gtk_widget_destroy(SkinBrowser);
Modified: trunk/gui/dialog/skinbrowser.c
==============================================================================
--- trunk/gui/dialog/skinbrowser.c Fri Feb 26 16:15:33 2021 (r38270)
+++ trunk/gui/dialog/skinbrowser.c Fri Feb 26 16:27:48 2021 (r38271)
@@ -87,7 +87,7 @@ static void on_SkinList_select_row( GtkC
}
}
-static GtkWidget * CreateSkinBrowser( void )
+void ShowSkinBrowser( void )
{
GtkWidget * vbox5;
GtkWidget * scrolledwindow1;
@@ -155,13 +155,7 @@ static GtkWidget * CreateSkinBrowser( vo
gtk_window_add_accel_group( GTK_WINDOW( SkinBrowser ),accel_group );
gtk_widget_grab_focus( scrolledwindow1 );
-
- return SkinBrowser;
-}
-
-void ShowSkinBrowser( void )
-{
- SkinBrowser = CreateSkinBrowser();
+ gtk_widget_show(SkinBrowser);
}
int FillSkinList( gchar * mdir )
More information about the MPlayer-cvslog
mailing list