Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Temporary fix for menu applet when using a11y screen magnifier: #1300

Merged
merged 1 commit into from

2 participants

@mtwebster
Collaborator

Disable the StScrollView fade effect when in zoom mode, as it interferes
with proper function of the magnifier in the region of the screen that
originally contained the scroll view.

@mtwebster mtwebster Temporary fix for menu applet when using a11y screen magnifier:
Disable the StScrollView fade effect when in zoom mode, as it interferes
with proper function of the magnifier in the region of the screen that
originally contained the scroll view.
47b5cb7
@clefebvre clefebvre merged commit d631af0 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 24, 2012
  1. @mtwebster

    Temporary fix for menu applet when using a11y screen magnifier:

    mtwebster authored
    Disable the StScrollView fade effect when in zoom mode, as it interferes
    with proper function of the magnifier in the region of the screen that
    originally contained the scroll view.
This page is out of date. Refresh to see the latest.
Showing with 14 additions and 1 deletion.
  1. +14 −1 files/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js
View
15 files/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js
@@ -1376,7 +1376,11 @@ MyApplet.prototype = {
rightPane.add_actor(this.categoriesApplicationsBox.actor);
this.categoriesBox = new St.BoxLayout({ style_class: 'menu-categories-box', vertical: true });
this.applicationsScrollBox = new St.ScrollView({ x_fill: true, y_fill: false, y_align: St.Align.START, style_class: 'vfade menu-applications-scrollbox' });
-
+
+ this.a11y_settings = new Gio.Settings({ schema: "org.gnome.desktop.a11y.applications" });
+ this.a11y_settings.connect("changed::screen-magnifier-enabled", Lang.bind(this, this._updateVFade));
+ this._updateVFade();
+
let vscroll = this.applicationsScrollBox.get_vscroll_bar();
vscroll.connect('scroll-start',
Lang.bind(this, function() {
@@ -1420,6 +1424,15 @@ MyApplet.prototype = {
}));
},
+ _updateVFade: function() {
+ let mag_on = this.a11y_settings.get_boolean("screen-magnifier-enabled");
+ if (mag_on) {
+ this.applicationsScrollBox.style_class = "menu-applications-scrollbox";
+ } else {
+ this.applicationsScrollBox.style_class = "vfade menu-applications-scrollbox";
+ }
+ },
+
_clearAllSelections: function() {
let actors = this.applicationsBox.get_children();
for (var i=0; i<actors.length; i++) {
Something went wrong with that request. Please try again.