From ccf55b9ed33e6d01b4b703bae37f8405ef865fb6 Mon Sep 17 00:00:00 2001 From: pontscho Date: Tue, 28 May 2002 21:52:37 +0000 Subject: [PATCH] small changes in skin selection git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6223 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Gui/mplayer/gtk/sb.c | 1 + Gui/mplayer/widgets.c | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Gui/mplayer/gtk/sb.c b/Gui/mplayer/gtk/sb.c index 0c3a4a960b..eb3ed5faa8 100644 --- a/Gui/mplayer/gtk/sb.c +++ b/Gui/mplayer/gtk/sb.c @@ -103,6 +103,7 @@ void on_SkinList_select_row( GtkCList * clist,gint row,gint column,GdkEvent * be { prev=sbSelectedSkin; ChangeSkin( sbSelectedSkin ); + gtkActive( SkinBrowser ); } if( !bevent ) return; if( bevent->type == GDK_2BUTTON_PRESS ) diff --git a/Gui/mplayer/widgets.c b/Gui/mplayer/widgets.c index 08f868a220..a4ef8aa422 100644 --- a/Gui/mplayer/widgets.c +++ b/Gui/mplayer/widgets.c @@ -134,15 +134,20 @@ void gtkShow( int type,char * param ) 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 ..." );