# HG changeset patch # User ib # Date 1339413584 0 # Node ID 6a6b32a9b6b13eae4dc11fa9af4baee3deb39036 # Parent 528cbb0076d0b7876de6b8516fb60fc588f99357 Add an icon for the subtitles menu. There was no icon so far. diff -r 528cbb0076d0 -r 6a6b32a9b6b1 gui/ui/gtk/menu.c --- 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++ ) { diff -r 528cbb0076d0 -r 6a6b32a9b6b1 gui/ui/pixmaps/subtitle.xpm --- /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", +"################", +"################", +"## #", +"# !!!!!!!!!!! ", +"# ! ! ", +"# ! ! ", +"# ! ! ", +"# ! ! ", +"# ! !!! !! !! ! ", +"# ! ! ", +"# ! !! !!! !! ! ", +"# ! ! ", +"# !!!!!!!!!!! ", +"## #", +"################", +"################" +};