I can sort-of control the order by returning strings that will be sorted correctly in enum_items(), but this doesn't work for submenus, such as Debug shown below:
CODE
case LOAD_IPOD:
out = "Components/foo_pod/1 Load iPod Songs To foo_pod Playlist";
break;
case SEND_PLAYLIST:
out = "Components/foo_pod/2 Send Current Playlist To iPod";
break;
case EJECT_IPOD:
out = "Components/foo_pod/3 Eject iPod";
break;
case PREFERENCES:
out = "Components/foo_pod/4 Preferences";
break;
case DEBUG_BACKUP:
out = "Components/foo_pod/Debug/1 Backup iTunesDB";
break;
case DEBUG_RESTORE:
out = "Components/foo_pod/Debug/2 Restore iTunesDB";
out = "Components/foo_pod/1 Load iPod Songs To foo_pod Playlist";
break;
case SEND_PLAYLIST:
out = "Components/foo_pod/2 Send Current Playlist To iPod";
break;
case EJECT_IPOD:
out = "Components/foo_pod/3 Eject iPod";
break;
case PREFERENCES:
out = "Components/foo_pod/4 Preferences";
break;
case DEBUG_BACKUP:
out = "Components/foo_pod/Debug/1 Backup iTunesDB";
break;
case DEBUG_RESTORE:
out = "Components/foo_pod/Debug/2 Restore iTunesDB";
Am I just missing something, or is this just how it is?
Also, is there any way to create a separator, other than "--------" w/FLAG_DISABLED_GRAYED set?