[gnome-settings-daemon] a11y-keyboard: Show the a11y dialogue on right-click



commit 9629ea6e72942a9a23afc4f84cf4377bca0aded4
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Sep 9 01:10:16 2011 +0100

    a11y-keyboard: Show the a11y dialogue on right-click
    
    As we do on left click.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=564171

 plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c b/plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c
index 5e338c5..3461793 100644
--- a/plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c
+++ b/plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c
@@ -1161,6 +1161,15 @@ on_status_icon_activate (GtkStatusIcon          *status_icon,
 }
 
 static void
+on_status_icon_popup_menu (GtkStatusIcon *status_icon,
+                           guint          button,
+                           guint          activate_time,
+                           GsdA11yKeyboardManager *manager)
+{
+        on_status_icon_activate (status_icon, manager);
+}
+
+static void
 gsd_a11y_keyboard_manager_ensure_status_icon (GsdA11yKeyboardManager *manager)
 {
         gnome_settings_profile_start (NULL);
@@ -1173,6 +1182,10 @@ gsd_a11y_keyboard_manager_ensure_status_icon (GsdA11yKeyboardManager *manager)
                                   "activate",
                                   G_CALLBACK (on_status_icon_activate),
                                   manager);
+                g_signal_connect (manager->priv->status_icon,
+                                  "popup-menu",
+                                  G_CALLBACK (on_status_icon_popup_menu),
+                                  manager);
         }
 
         gnome_settings_profile_end (NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]