[vlc-devel] [PATCH] gestures: use the proper event name

Ludovic Fauvet etix at videolan.org
Thu Feb 7 19:46:05 CET 2013


---
 modules/control/gestures.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/control/gestures.c b/modules/control/gestures.c
index bc47405..f67beb0 100644
--- a/modules/control/gestures.c
+++ b/modules/control/gestures.c
@@ -484,7 +484,7 @@ static int InputEvent( vlc_object_t *p_this, char const *psz_var,
         {   /* /!\ Beware of lock inversion with var_DelCallback() /!\ */
             var_DelCallback( p_sys->p_vout, "mouse-moved", MovedEvent,
                              p_intf );
-            var_DelCallback( p_sys->p_vout, "mouse-clicked", ButtonEvent,
+            var_DelCallback( p_sys->p_vout, "mouse-button-down", ButtonEvent,
                              p_intf );
             vlc_object_release( p_sys->p_vout );
         }
@@ -494,7 +494,7 @@ static int InputEvent( vlc_object_t *p_this, char const *psz_var,
         {
             var_AddCallback( p_sys->p_vout, "mouse-moved", MovedEvent,
                              p_intf );
-            var_AddCallback( p_sys->p_vout, "mouse-clicked", ButtonEvent,
+            var_AddCallback( p_sys->p_vout, "mouse-button-down", ButtonEvent,
                              p_intf );
         }
         break;
-- 
1.8.1.2




More information about the vlc-devel mailing list