diff options
author | 2002-07-30 23:09:24 +0000 | |
---|---|---|
committer | 2002-07-30 23:09:24 +0000 | |
commit | c1ce20d7a0ade0c0efecf603bb3f22543fa6cd4a (patch) | |
tree | dec5bd1c58cc0582ec083c7f7a133a1cff385bd4 /Gui/mplayer/widgets.c | |
parent | 6b3417b6570d1a4ca6a06793e972fd4d80d7783c (diff) |
gtk dialog bug fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6855 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/mplayer/widgets.c')
-rw-r--r-- | Gui/mplayer/widgets.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Gui/mplayer/widgets.c b/Gui/mplayer/widgets.c index ba6b731bcf..42d619ba95 100644 --- a/Gui/mplayer/widgets.c +++ b/Gui/mplayer/widgets.c @@ -184,7 +184,7 @@ void gtkShow( int type,char * param ) } 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 @@ void gtkShow( int type,char * param ) 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 gtkShow( int type,char * param ) } } +void gtkIncVisible( void ) { gtkVisible++; } +void gtkDecVisible( void ) { if ( gtkVisible > 0 ) gtkVisible--; } |