Migrate AA and GGI to intf-popupmenu
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Tue, 16 Dec 2008 21:01:04 +0000 (23:01 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Tue, 16 Dec 2008 21:01:43 +0000 (23:01 +0200)
This is untested. Most probably nobody uses these anymore.

modules/video_output/aa.c
modules/video_output/ggi.c

index d173514..48d912b 100644 (file)
@@ -200,8 +200,8 @@ static int Manage( vout_thread_t *p_vout )
     {
     case AA_MOUSE:
         aa_getmouse( p_vout->p_sys->aa_context, &x, &y, &b );
-        /*if ( b & AA_BUTTON3 )
-             trigger contextual menu here */
+        if ( b & AA_BUTTON3 )
+            var_SetBool( p_vout->p_libvlc, "intf-popupmenu", true );
         break;
     case AA_RESIZE:
         p_vout->i_changes |= VOUT_SIZE_CHANGE;
index da70775..8735396 100644 (file)
@@ -311,7 +311,7 @@ static int Manage( vout_thread_t *p_vout )
                         break;
 
                     case GII_PBUTTON_RIGHT:
-                        /* trigger contextual menu here */
+                        var_SetBool( p_vout->p_libvlc, "intf-popupmenu", true );
                         break;
                 }
                 break;