Mercurial > mplayer.hg
changeset 6222:1a83bd7ff76e
small changes in skin selection
author | pontscho |
---|---|
date | Tue, 28 May 2002 21:52:37 +0000 |
parents | 4b2459557340 |
children | 7833c711d62b |
files | Gui/mplayer/gtk/sb.c Gui/mplayer/widgets.c |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Gui/mplayer/gtk/sb.c Tue May 28 14:12:33 2002 +0000 +++ b/Gui/mplayer/gtk/sb.c Tue May 28 21:52:37 2002 +0000 @@ -103,6 +103,7 @@ { prev=sbSelectedSkin; ChangeSkin( sbSelectedSkin ); + gtkActive( SkinBrowser ); } if( !bevent ) return; if( bevent->type == GDK_2BUTTON_PRESS )
--- a/Gui/mplayer/widgets.c Tue May 28 14:12:33 2002 +0000 +++ b/Gui/mplayer/widgets.c Tue May 28 21:52:37 2002 +0000 @@ -134,15 +134,20 @@ switch( type ) { case evSkinBrowser: -// SkinBrowser=create_SkinBrowser(); ShowSkinBrowser(); // gtkClearList( SkinList ); if ( gtkFillSkinList( sbMPlayerPrefixDir ) && gtkFillSkinList( sbMPlayerDirInHome ) ) { gtkSetDefaultToCList( SkinList,param ); + gtk_clist_sort( SkinList ); gtk_widget_show( SkinBrowser ); gtkSetLayer( SkinBrowser ); - } else gtk_widget_destroy( SkinBrowser ); + } + else + { + gtk_widget_destroy( SkinBrowser ); + gtkMessageBox( GTK_MB_ERROR,"Skin dirs not found ... Please install skins." ); + } break; case evPreferences: gtkMessageBox( GTK_MB_WARNING,"Sorry, this feature is under development ..." );