changeset 34903:6a6b32a9b6b1

Add an icon for the subtitles menu. There was no icon so far.
author ib
date Mon, 11 Jun 2012 11:19:44 +0000
parents 528cbb0076d0
children 0705ebc1bede
files gui/ui/gtk/menu.c gui/ui/pixmaps/subtitle.xpm
diffstat 2 files changed, 25 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/ui/gtk/menu.c	Mon Jun 11 11:00:28 2012 +0000
+++ b/gui/ui/gtk/menu.c	Mon Jun 11 11:19:44 2012 +0000
@@ -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 @@
   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++ )
      {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gui/ui/pixmaps/subtitle.xpm	Mon Jun 11 11:19:44 2012 +0000
@@ -0,0 +1,23 @@
+/* XPM */
+static const char *const subtitle_xpm[] = {
+"16 16 3 1 0 0",
+"  c #000000",
+"! c #FFFFFF",
+"# c None",
+"################",
+"################",
+"##             #",
+"#  !!!!!!!!!!!  ",
+"# !           ! ",
+"# !           ! ",
+"# !           ! ",
+"# !           ! ",
+"# ! !!! !! !! ! ",
+"# !           ! ",
+"# ! !! !!! !! ! ",
+"# !           ! ",
+"#  !!!!!!!!!!!  ",
+"##             #",
+"################",
+"################"
+};