Mercurial > mplayer.hg
diff Gui/mplayer/widgets.c @ 6854:ded48a755830
gtk dialog bug fix
author | pontscho |
---|---|
date | Tue, 30 Jul 2002 23:09:24 +0000 |
parents | 77980ab4e296 |
children | 138a7ff52a26 |
line wrap: on
line diff
--- a/Gui/mplayer/widgets.c Tue Jul 30 19:19:16 2002 +0000 +++ b/Gui/mplayer/widgets.c Tue Jul 30 23:09:24 2002 +0000 @@ -184,7 +184,7 @@ } else { - gtk_widget_destroy( SkinBrowser ); gtkVisible--; + gtk_widget_destroy( SkinBrowser ); gtkDecVisible(); gtkMessageBox( GTK_MB_ERROR,"Skin dirs not found ... Please install skins." ); } break; @@ -218,10 +218,10 @@ case evShowPopUpMenu: gtkPopupMenu=evNone; gtkPopupMenuParam=0; - if ( PopUpMenu ) { gtk_widget_hide_on_delete( PopUpMenu ); gtkVisible--; } + if ( PopUpMenu ) { gtk_widget_hide_on_delete( PopUpMenu ); gtkDecVisible(); } PopUpMenu=create_PopUpMenu(); gtk_menu_popup( GTK_MENU( PopUpMenu ),NULL,NULL,NULL,NULL,0,0 ); - gtkVisible++; + gtkIncVisible(); break; case evHidePopUpMenu: if ( PopUpMenu ) { gtk_widget_hide_on_delete( PopUpMenu ); /*gtkVisible--;*/ PopUpMenu=NULL; } @@ -233,4 +233,6 @@ } } +void gtkIncVisible( void ) { gtkVisible++; } +void gtkDecVisible( void ) { if ( gtkVisible > 0 ) gtkVisible--; }