15559N/A@@ -77,8 +77,13 @@ impl_activate (GnomeSettingsPlugin *plug
15559N/A res = gsd_a11y_keyboard_manager_start (GSD_A11Y_KEYBOARD_PLUGIN (plugin)->priv->manager, &error);
15559N/A g_warning ("Unable to start a11y_keyboard manager: %s", error->message);
15559N/A+ g_warning ("Unable to start a11y_keyboard manager.");
13941N/A ax_stickykeys_warning_post_bubble (GsdA11yKeyboardManager *manager,
13941N/A _("Do you want to activate Sticky Keys?") :
13941N/A _("Do you want to deactivate Sticky Keys?");
13941N/A- _("You just pressed the Shift key 5 times in a row. This is the shortcut "
13941N/A- "for the Sticky Keys feature, which affects the way your keyboard works.") :
13941N/A- _("You just pressed two keys at once, or pressed the Shift key 5 times in a row. "
13941N/A- "This turns off the Sticky Keys feature, which affects the way your keyboard works.");
13941N/A+ message = _("You just pressed the Shift key 5 times in a row. This is the shortcut "
13941N/A+ "for the Sticky Keys feature, which affects the way your keyboard works.");
13941N/A+ message = _("You just pressed two keys at once, or pressed the Shift key 5 times in a row. "
13941N/A+ "This turns off the Sticky Keys feature, which affects the way your keyboard works.");
13941N/A+ message = _("Sticky Keys have not been used for a while. This inactivity turns off "
13941N/A+ "the Sticky Keys feature, which affects the way your keyboard works.");
15559N/A if (manager->priv->status_icon == NULL || ! gtk_status_icon_is_embedded (manager->priv->status_icon)) {
13941N/A ax_stickykeys_warning_post_dialog (GsdA11yKeyboardManager *manager,
13941N/A _("Do you want to activate Sticky Keys?") :
13941N/A _("Do you want to deactivate Sticky Keys?");
13941N/A- _("You just pressed the Shift key 5 times in a row. This is the shortcut "
13941N/A- "for the Sticky Keys feature, which affects the way your keyboard works.") :
13941N/A- _("You just pressed two keys at once, or pressed the Shift key 5 times in a row. "
13941N/A- "This turns off the Sticky Keys feature, which affects the way your keyboard works.");
13941N/A+ message = _("You just pressed the Shift key 5 times in a row. This is the shortcut "
13941N/A+ "for the Sticky Keys feature, which affects the way your keyboard works.");
13941N/A+ message = _("You just pressed two keys at once, or pressed the Shift key 5 times in a row. "
13941N/A+ "This turns off the Sticky Keys feature, which affects the way your keyboard works.");
13941N/A+ message = _("Sticky Keys have not been used for a while. This inactivity turns off "
13941N/A+ "the Sticky Keys feature, which affects the way your keyboard works.");
12248N/A if (manager->priv->stickykeys_alert != NULL) {
12248N/A gtk_widget_show (manager->priv->stickykeys_alert);
13941N/A ax_stickykeys_warning_post (GsdA11yKeyboardManager *manager,
13941N/A manager->priv->stickykeys_shortcut_val = enabled;
13941N/A /* alway try to show something */
13941N/A- if (! ax_stickykeys_warning_post_bubble (manager, enabled)) {
13941N/A- ax_stickykeys_warning_post_dialog (manager, enabled);
13941N/A+ if (! ax_stickykeys_warning_post_bubble (manager, enabled, key_pressed)) {
13941N/A+ ax_stickykeys_warning_post_dialog (manager, enabled, key_pressed);
12248N/A-set_gconf_from_server (GsdA11yKeyboardManager *manager)
13941N/A+set_gconf_from_server (GsdA11yKeyboardManager *manager,
13941N/A desc->ctrls->enabled_ctrls & XkbSlowKeysMask);
13941N/A ax_stickykeys_warning_post (manager,
13941N/A- desc->ctrls->enabled_ctrls & XkbStickyKeysMask);
13941N/A+ desc->ctrls->enabled_ctrls & XkbStickyKeysMask, key_pressed);
12248N/A XEvent *xev = (XEvent *) xevent;
12248N/A XkbEvent *xkbEv = (XkbEvent *) xevent;
12248N/A+ static gboolean key_pressed = FALSE;
12248N/A- set_gconf_from_server (manager);
13941N/A+ set_gconf_from_server (manager, key_pressed);
12248N/A } else if (xev->
xany.type == (manager->priv->xkbEventBase + XkbEventCode) &&
13941N/A+ } else if (xev->
xany.type == (manager->priv->xkbEventBase + XkbEventCode) &&
13290N/A (GConfClientNotifyFunc) keyboard_callback,
12248N/A- event_mask = XkbControlsNotifyMask;
12248N/A+ event_mask = XkbControlsNotifyMask | XkbStateNotifyMask;
12248N/A event_mask |= XkbAccessXNotifyMask; /* make default when AXN_AXKWarning works */