mirror of https://github.com/mpv-player/mpv
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:
parent
c10381ca79
commit
ccf55b9ed3
|
@ -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 )
|
||||||
|
|
|
@ -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 ..." );
|
||||||
|
|
Loading…
Reference in New Issue