[MPlayer-cvslog] r34509 - trunk/gui/ui/gtk/menu.c

ib subversion at mplayerhq.hu
Thu Jan 5 13:55:34 CET 2012


Author: ib
Date: Thu Jan  5 13:55:33 2012
New Revision: 34509

Log:
Use check items for CD and VCD titles as well.

This way, the title being played will be emphasized.

(Check items are already being used in the DVD menus.)

Modified:
   trunk/gui/ui/gtk/menu.c

Modified: trunk/gui/ui/gtk/menu.c
==============================================================================
--- trunk/gui/ui/gtk/menu.c	Thu Jan  5 13:44:02 2012	(r34508)
+++ trunk/gui/ui/gtk/menu.c	Thu Jan  5 13:55:33 2012	(r34509)
@@ -444,7 +444,7 @@ GtkWidget * create_PopUpMenu( void )
        {
         snprintf( tmp,32,MSGTR_MENU_Title,i );
     //AddMenuItem( CDTitleMenu,tmp,( i << 16 ) + ivSetCDTrack );
-        AddMenuItem(window1, (const char*)empty_xpm, CDTitleMenu,tmp,( i << 16 ) + ivSetCDTrack );
+        AddMenuCheckItem(window1, (const char*)empty_xpm, CDTitleMenu,tmp, guiInfo.Track == i, ( i << 16 ) + ivSetCDTrack );
        }
      }
      else
@@ -466,7 +466,7 @@ GtkWidget * create_PopUpMenu( void )
        {
         snprintf( tmp,32,MSGTR_MENU_Title,i );
     //AddMenuItem( VCDTitleMenu,tmp,( i << 16 ) + ivSetVCDTrack );
-        AddMenuItem(window1, (const char*)empty_xpm, VCDTitleMenu,tmp,( ( i + 1 ) << 16 ) + ivSetVCDTrack );
+        AddMenuCheckItem(window1, (const char*)empty_xpm, VCDTitleMenu,tmp, guiInfo.Track == i + 1, ( ( i + 1 ) << 16 ) + ivSetVCDTrack );
        }
      }
      else


More information about the MPlayer-cvslog mailing list