[MPlayer-cvslog] r34997 - in trunk/gui/ui: gtk/menu.c pixmaps/subtitle.xpm

ib subversion at mplayerhq.hu
Mon Jun 11 13:19:44 CEST 2012


Author: ib
Date: Mon Jun 11 13:19:44 2012
New Revision: 34997

Log:
Add an icon for the subtitles menu.

There was no icon so far.

Added:
   trunk/gui/ui/pixmaps/subtitle.xpm
Modified:
   trunk/gui/ui/gtk/menu.c

Modified: trunk/gui/ui/gtk/menu.c
==============================================================================
--- trunk/gui/ui/gtk/menu.c	Mon Jun 11 13:00:28 2012	(r34996)
+++ trunk/gui/ui/gtk/menu.c	Mon Jun 11 13:19:44 2012	(r34997)
@@ -66,6 +66,7 @@
 #include "gui/ui/pixmaps/empty.xpm"
 #include "gui/ui/pixmaps/loadeaf.xpm"
 #include "gui/ui/pixmaps/title.xpm"
+#include "gui/ui/pixmaps/subtitle.xpm"
 #ifdef CONFIG_CDDA
 #include "gui/ui/pixmaps/cd.xpm"
 #include "gui/ui/pixmaps/playcd.xpm"
@@ -624,7 +625,7 @@ GtkWidget * create_PopUpMenu( void )
   if ( global_sub_size && guiInfo.StreamType != STREAMTYPE_DVD )
    {
     int i;
-    SubMenu=AddSubMenu( window1, (const char*)empty_xpm, Menu, MSGTR_MENU_Subtitles );
+    SubMenu=AddSubMenu( window1, (const char*)subtitle_xpm, Menu, MSGTR_MENU_Subtitles );
     AddMenuCheckItem( window1, (const char*)empty1px_xpm, SubMenu, MSGTR_MENU_None, guiInfo.mpcontext->global_sub_pos == -1, (-1 << 16) + ivSetSubtitle );
     for ( i=0;i < global_sub_size;i++ )
      {

Added: trunk/gui/ui/pixmaps/subtitle.xpm
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/gui/ui/pixmaps/subtitle.xpm	Mon Jun 11 13:19:44 2012	(r34997)
@@ -0,0 +1,23 @@
+/* XPM */
+static const char *const subtitle_xpm[] = {
+"16 16 3 1 0 0",
+"  c #000000",
+"! c #FFFFFF",
+"# c None",
+"################",
+"################",
+"##             #",
+"#  !!!!!!!!!!!  ",
+"# !           ! ",
+"# !           ! ",
+"# !           ! ",
+"# !           ! ",
+"# ! !!! !! !! ! ",
+"# !           ! ",
+"# ! !! !!! !! ! ",
+"# !           ! ",
+"#  !!!!!!!!!!!  ",
+"##             #",
+"################",
+"################"
+};


More information about the MPlayer-cvslog mailing list