diff options
Diffstat (limited to 'Gui/mplayer/psignal.c')
-rw-r--r-- | Gui/mplayer/psignal.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Gui/mplayer/psignal.c b/Gui/mplayer/psignal.c index 4bb30bbd35..3c5caca9fd 100644 --- a/Gui/mplayer/psignal.c +++ b/Gui/mplayer/psignal.c @@ -128,7 +128,14 @@ void gtkSigHandler( int s ) break; case evShowPopUpMenu: gtkShMem->popupmenu=evNone; + if ( gtkShMem->visiblepopupmenu ) gtk_widget_hide_on_delete( PopUpMenu ); + PopUpMenu=create_PopUpMenu(); gtk_menu_popup( GTK_MENU( PopUpMenu ),NULL,NULL,NULL,NULL,0,0 ); + gtkShMem->visiblepopupmenu=1; + break; + case evHidePopUpMenu: + if ( gtkShMem->visiblepopupmenu ) gtk_widget_hide_on_delete( PopUpMenu ); + gtkShMem->visiblepopupmenu=0; break; } gtkShMem->message=0; |