]> git.sesse.net Git - vlc/commitdiff
skins2: add a way to hide Video/Audio/Misc popupmenus
authorErwan Tulou <erwan10@videolan.org>
Wed, 7 Apr 2010 16:37:43 +0000 (18:37 +0200)
committerErwan Tulou <erwan10@videolan.org>
Wed, 7 Apr 2010 16:51:55 +0000 (18:51 +0200)
when one of these three popupmenus is shown, there was no way to hide it
 without first executing an item in the menu. (see for instance, earthox skin)

This patch ensures that the usual way to hide the default PopupMenu is also
used to hide any one of these other three popupmenus.

modules/gui/skins2/controls/ctrl_image.cpp

index f705cbe789fbf13e889faaf82f9e041ed6191fc6..66ad5928a6ff76b4358a7c07a3f9a19e204a7032 100644 (file)
@@ -60,6 +60,9 @@ void CtrlImage::handleEvent( EvtGeneric &rEvent )
     else if( rEvent.getAsString() == "mouse:left:up:none" )
     {
         CmdDlgHidePopupMenu( getIntf() ).execute();
+        CmdDlgHideVideoPopupMenu( getIntf() ).execute();
+        CmdDlgHideAudioPopupMenu( getIntf() ).execute();
+        CmdDlgHideMiscPopupMenu( getIntf() ).execute();
     }
     else if( rEvent.getAsString() == "mouse:left:dblclick:none" )
     {