fix bug, if dvd titles is 'none', vagymi

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3591 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pontscho 2001-12-18 22:00:25 +00:00
parent f2e3e7c276
commit 746448a068
1 changed files with 21 additions and 4 deletions

View File

@ -258,6 +258,7 @@ GtkWidget * create_PopUpMenu( void )
{
GtkWidget * Menu = NULL;
GtkWidget * SubMenu = NULL;
GtkWidget * MenuItem = NULL;
Menu=gtk_menu_new();
@ -301,7 +302,11 @@ GtkWidget * create_PopUpMenu( void )
AddMenuItem( DVDTitleMenu,tmp,( (i+1) << 16 ) + evSetDVDTitle );
}
}
else AddMenuItem( DVDTitleMenu,MSGTR_MENU_None,evNone );
else
{
MenuItem=AddMenuItem( DVDTitleMenu,MSGTR_MENU_None,evNone );
gtk_widget_set_sensitive( MenuItem,FALSE );
}
DVDChapterMenu=AddSubMenu( DVDSubMenu,MSGTR_MENU_Chapters );
if ( gtkShMem->DVD.chapters )
{
@ -312,7 +317,11 @@ GtkWidget * create_PopUpMenu( void )
AddMenuItem( DVDChapterMenu,tmp,( (i+1) << 16 ) + evSetDVDChapter );
}
}
else DVDChapterMenu=AddMenuItem( DVDChapterMenu,MSGTR_MENU_None,evNone );
else
{
MenuItem=AddMenuItem( DVDChapterMenu,MSGTR_MENU_None,evNone );
gtk_widget_set_sensitive( MenuItem,FALSE );
}
DVDAudioLanguageMenu=AddSubMenu( DVDSubMenu,MSGTR_MENU_AudioLanguages );
if ( gtkShMem->DVD.nr_of_audio_channels )
{
@ -323,7 +332,11 @@ GtkWidget * create_PopUpMenu( void )
AddMenuItem( DVDAudioLanguageMenu,tmp,( gtkShMem->DVD.audio_streams[i].id << 16 ) + evSetDVDAudio );
}
}
else DVDChapterMenu=AddMenuItem( DVDAudioLanguageMenu,MSGTR_MENU_None,evNone );
else
{
MenuItem=AddMenuItem( DVDAudioLanguageMenu,MSGTR_MENU_None,evNone );
gtk_widget_set_sensitive( MenuItem,FALSE );
}
DVDSubtitleLanguageMenu=AddSubMenu( DVDSubMenu,MSGTR_MENU_SubtitleLanguages );
if ( gtkShMem->DVD.nr_of_subtitles )
{
@ -334,7 +347,11 @@ GtkWidget * create_PopUpMenu( void )
AddMenuItem( DVDSubtitleLanguageMenu,tmp,( gtkShMem->DVD.subtitles[i].id << 16 ) + evSetDVDSubtitle );
}
}
else DVDChapterMenu=AddMenuItem( DVDSubtitleLanguageMenu,MSGTR_MENU_None,evNone );
else
{
MenuItem=AddMenuItem( DVDSubtitleLanguageMenu,MSGTR_MENU_None,evNone );
gtk_widget_set_sensitive( MenuItem,FALSE );
}
#endif
AddSeparator( Menu );
AddMenuItem( Menu,MSGTR_MENU_PlayList, evPlayList );