[MPlayer-cvslog] r33663 - in trunk/gui/ui: gtk/playlist.c pixmaps/dir2.xpm pixmaps/open2.xpm
ib
subversion at mplayerhq.hu
Sun Jun 19 18:11:42 CEST 2011
Author: ib
Date: Sun Jun 19 18:11:42 2011
New Revision: 33663
Log:
Remove xpm definitions inside source file.
Instead, create appropriate xpm files in pixmaps directory.
Added:
trunk/gui/ui/pixmaps/dir2.xpm
trunk/gui/ui/pixmaps/open2.xpm
Modified:
trunk/gui/ui/gtk/playlist.c
Modified: trunk/gui/ui/gtk/playlist.c
==============================================================================
--- trunk/gui/ui/gtk/playlist.c Sun Jun 19 18:05:35 2011 (r33662)
+++ trunk/gui/ui/gtk/playlist.c Sun Jun 19 18:11:42 2011 (r33663)
@@ -36,53 +36,8 @@
#include "playlist.h"
#include "tools.h"
-static char * book_open_xpm[] = {
- "16 16 4 1",
- " c None s None",
- ". c black",
- "X c #808080",
- "o c white",
- " ",
- " .. ",
- " .Xo. ... ",
- " .Xoo. ..oo. ",
- " .Xooo.Xooo... ",
- " .Xooo.oooo.X. ",
- " .Xooo.Xooo.X. ",
- " .Xooo.oooo.X. ",
- " .Xooo.Xooo.X. ",
- " .Xooo.oooo.X. ",
- " .Xoo.Xoo..X. ",
- " .Xo.o..ooX. ",
- " .X..XXXXX. ",
- " ..X....... ",
- " .. ",
- " "};
-
-static char * book_closed_xpm[] = {
- "16 16 6 1",
- " c None s None",
- ". c black",
- "X c blue",
- "o c yellow",
- "O c #007FEA",
- "# c white",
- " ",
- " .. ",
- " ..XX. ",
- " ..XXXXX. ",
- " ..XXXXXXXX. ",
- ".ooXXXXXXXXX. ",
- "..ooXXXXXXXXX. ",
- ".X.ooXXXXXXXXX. ",
- ".XX.ooXXXXXX.. ",
- " .XX.ooXXX..#O ",
- " .XX.oo..##OO. ",
- " .XX..##OO.. ",
- " .X.#OO.. ",
- " ..O.. ",
- " .. ",
- " "};
+#include "gui/ui/pixmaps/open2.xpm"
+#include "gui/ui/pixmaps/dir2.xpm"
GtkWidget * PlayList = NULL;
static GtkWidget * CTDirTree;
@@ -521,8 +476,8 @@ GtkWidget * create_PlayList( void )
gtk_clist_column_titles_show( GTK_CLIST( CTDirTree ) );
gtk_clist_set_shadow_type( GTK_CLIST( CTDirTree ),GTK_SHADOW_NONE );
- if ( !pxOpenedBook ) pxOpenedBook=gdk_pixmap_create_from_xpm_d( PlayList->window,&msOpenedBook,&transparent,book_closed_xpm );
- if ( !pxClosedBook ) pxClosedBook=gdk_pixmap_create_from_xpm_d( PlayList->window,&msClosedBook,&transparent,book_open_xpm );
+ if ( !pxOpenedBook ) pxOpenedBook=gdk_pixmap_create_from_xpm_d( PlayList->window,&msOpenedBook,&transparent,(gchar **)dir2_xpm );
+ if ( !pxClosedBook ) pxClosedBook=gdk_pixmap_create_from_xpm_d( PlayList->window,&msClosedBook,&transparent,(gchar **)open2_xpm );
parent=gtk_ctree_insert_node( GTK_CTREE( CTDirTree ),NULL,NULL,&root,4,pxOpenedBook,msOpenedBook,pxClosedBook,msClosedBook,FALSE,FALSE );
DirNode=malloc( sizeof( DirNodeType ) );
Added: trunk/gui/ui/pixmaps/dir2.xpm
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ trunk/gui/ui/pixmaps/dir2.xpm Sun Jun 19 18:11:42 2011 (r33663)
@@ -0,0 +1,25 @@
+/* XPM */
+static const char * const dir2_xpm[] = {
+ "16 16 6 1",
+ " c None s None",
+ ". c black",
+ "X c blue",
+ "o c yellow",
+ "O c #007FEA",
+ "# c white",
+ " ",
+ " .. ",
+ " ..XX. ",
+ " ..XXXXX. ",
+ " ..XXXXXXXX. ",
+ ".ooXXXXXXXXX. ",
+ "..ooXXXXXXXXX. ",
+ ".X.ooXXXXXXXXX. ",
+ ".XX.ooXXXXXX.. ",
+ " .XX.ooXXX..#O ",
+ " .XX.oo..##OO. ",
+ " .XX..##OO.. ",
+ " .X.#OO.. ",
+ " ..O.. ",
+ " .. ",
+ " "};
Added: trunk/gui/ui/pixmaps/open2.xpm
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ trunk/gui/ui/pixmaps/open2.xpm Sun Jun 19 18:11:42 2011 (r33663)
@@ -0,0 +1,23 @@
+/* XPM */
+static const char * const open2_xpm[] = {
+ "16 16 4 1",
+ " c None s None",
+ ". c black",
+ "X c #808080",
+ "o c white",
+ " ",
+ " .. ",
+ " .Xo. ... ",
+ " .Xoo. ..oo. ",
+ " .Xooo.Xooo... ",
+ " .Xooo.oooo.X. ",
+ " .Xooo.Xooo.X. ",
+ " .Xooo.oooo.X. ",
+ " .Xooo.Xooo.X. ",
+ " .Xooo.oooo.X. ",
+ " .Xoo.Xoo..X. ",
+ " .Xo.o..ooX. ",
+ " .X..XXXXX. ",
+ " ..X....... ",
+ " .. ",
+ " "};
More information about the MPlayer-cvslog
mailing list