[MPlayer-cvslog] r34643 - trunk/gui/ui/gtk/menu.c
ib
subversion at mplayerhq.hu
Tue Jan 31 19:17:17 CET 2012
Author: ib
Date: Tue Jan 31 19:17:17 2012
New Revision: 34643
Log:
Emphasize the default audio track in the selection list.
Modified:
trunk/gui/ui/gtk/menu.c
Modified: trunk/gui/ui/gtk/menu.c
==============================================================================
--- trunk/gui/ui/gtk/menu.c Tue Jan 31 13:11:46 2012 (r34642)
+++ trunk/gui/ui/gtk/menu.c Tue Jan 31 19:17:17 2012 (r34643)
@@ -596,9 +596,10 @@ GtkWidget * create_PopUpMenu( void )
if ( demuxer->a_streams[i] )
{
int aid = ((sh_audio_t *)demuxer->a_streams[i])->aid;
+ int selected_id = (audio_id == aid || (audio_id == -1 && aid == demuxer_default_audio_track(mpctx_get_demuxer(guiInfo.mpcontext))));
char tmp[32];
snprintf( tmp,32,MSGTR_MENU_Track,aid );
- AddMenuCheckItem( window1, (const char*)empty1px_xpm, SubMenu,tmp,audio_id == aid,( aid << 16 ) + ivSetAudio );
+ AddMenuCheckItem( window1, (const char*)empty1px_xpm, SubMenu,tmp,selected_id,( aid << 16 ) + ivSetAudio );
}
}
More information about the MPlayer-cvslog
mailing list