small changes in skin selection

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6223 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pontscho 2002-05-28 21:52:37 +00:00
parent c10381ca79
commit ccf55b9ed3
2 changed files with 8 additions and 2 deletions

View File

@ -103,6 +103,7 @@ void on_SkinList_select_row( GtkCList * clist,gint row,gint column,GdkEvent * be
{ {
prev=sbSelectedSkin; prev=sbSelectedSkin;
ChangeSkin( sbSelectedSkin ); ChangeSkin( sbSelectedSkin );
gtkActive( SkinBrowser );
} }
if( !bevent ) return; if( !bevent ) return;
if( bevent->type == GDK_2BUTTON_PRESS ) if( bevent->type == GDK_2BUTTON_PRESS )

View File

@ -134,15 +134,20 @@ void gtkShow( int type,char * param )
switch( type ) switch( type )
{ {
case evSkinBrowser: case evSkinBrowser:
// SkinBrowser=create_SkinBrowser();
ShowSkinBrowser(); ShowSkinBrowser();
// gtkClearList( SkinList ); // gtkClearList( SkinList );
if ( gtkFillSkinList( sbMPlayerPrefixDir ) && gtkFillSkinList( sbMPlayerDirInHome ) ) if ( gtkFillSkinList( sbMPlayerPrefixDir ) && gtkFillSkinList( sbMPlayerDirInHome ) )
{ {
gtkSetDefaultToCList( SkinList,param ); gtkSetDefaultToCList( SkinList,param );
gtk_clist_sort( SkinList );
gtk_widget_show( SkinBrowser ); gtk_widget_show( SkinBrowser );
gtkSetLayer( 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; break;
case evPreferences: case evPreferences:
gtkMessageBox( GTK_MB_WARNING,"Sorry, this feature is under development ..." ); gtkMessageBox( GTK_MB_WARNING,"Sorry, this feature is under development ..." );