Mercurial > mplayer.hg
comparison gui/ui/gtk/menu.c @ 34423:536ab2e339b8
Remove pointless menu entry.
There is only a SubMenu, if there are entries,
so we don't need a "none" entry.
author | ib |
---|---|
date | Thu, 05 Jan 2012 13:55:03 +0000 |
parents | b1f2949ca18d |
children | 5a45efc630b8 |
comparison
equal
deleted
inserted
replaced
34422:b1f2949ca18d | 34423:536ab2e339b8 |
---|---|
622 /* cheap subtitle switching for non-DVD streams */ | 622 /* cheap subtitle switching for non-DVD streams */ |
623 if ( global_sub_size && guiInfo.StreamType != STREAMTYPE_DVD ) | 623 if ( global_sub_size && guiInfo.StreamType != STREAMTYPE_DVD ) |
624 { | 624 { |
625 int i; | 625 int i; |
626 SubMenu=AddSubMenu( window1, (const char*)empty_xpm, Menu, MSGTR_MENU_Subtitles ); | 626 SubMenu=AddSubMenu( window1, (const char*)empty_xpm, Menu, MSGTR_MENU_Subtitles ); |
627 AddMenuItem( window1, (const char*)empty_xpm, SubMenu, MSGTR_MENU_None, (-1 << 16) + ivSetSubtitle ); | |
628 for ( i=0;i < global_sub_size;i++ ) | 627 for ( i=0;i < global_sub_size;i++ ) |
629 { | 628 { |
630 char tmp[32]; | 629 char tmp[32]; |
631 snprintf( tmp, 32, MSGTR_MENU_Track, i ); | 630 snprintf( tmp, 32, MSGTR_MENU_Track, i ); |
632 AddMenuItem( window1,(const char*)empty1px_xpm,SubMenu,tmp,( i << 16 ) + ivSetSubtitle ); | 631 AddMenuItem( window1,(const char*)empty1px_xpm,SubMenu,tmp,( i << 16 ) + ivSetSubtitle ); |