[Mplayer-cvslog] CVS: main/Gui/mplayer widgets.c,1.25,1.26

Zoltan Ponekker pontscho at mplayerhq.hu
Tue May 28 23:52:39 CEST 2002


Update of /cvsroot/mplayer/main/Gui/mplayer
In directory mail:/var/tmp.root/cvs-serv31863/Gui/mplayer

Modified Files:
	widgets.c 
Log Message:
small changes in skin selection

Index: widgets.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/widgets.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- widgets.c	28 May 2002 12:54:57 -0000	1.25
+++ widgets.c	28 May 2002 21:52:25 -0000	1.26
@@ -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 ..." );




More information about the MPlayer-cvslog mailing list