mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
Add Universal Access status indicator
Introduce the Universal Access status indicator as designed, modeled after the similar UI provided by g-s-d. This indicator allows the user to change rapidly the keyboard and mouse behaviour (sticky keys, slow keys, bounce keys, mouse keys), as well as the enabled ATs (magnifier, screen reader, screen keyboard) and the HighContrast Gtk theme. https://bugzilla.gnome.org/show_bug.cgi?id=624916
This commit is contained in:
parent
e43f10c8ed
commit
6ea18136ac
6 changed files with 253 additions and 11 deletions
|
|
@ -6,6 +6,8 @@ const Shell = imports.gi.Shell;
|
|||
const St = imports.gi.St;
|
||||
const Lang = imports.lang;
|
||||
const Mainloop = imports.mainloop;
|
||||
const Signals = imports.signals;
|
||||
|
||||
const Main = imports.ui.main;
|
||||
const MagnifierDBus = imports.ui.magnifierDBus;
|
||||
|
||||
|
|
@ -112,6 +114,9 @@ Magnifier.prototype = {
|
|||
// invisible.
|
||||
if (!activate)
|
||||
this._xfixesCursor.show();
|
||||
|
||||
// Notify interested parties of this change
|
||||
this.emit('active-changed', activate);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
@ -560,6 +565,7 @@ Magnifier.prototype = {
|
|||
}
|
||||
}
|
||||
};
|
||||
Signals.addSignalMethods(Magnifier.prototype);
|
||||
|
||||
function ZoomRegion(magnifier, mouseRoot) {
|
||||
this._init(magnifier, mouseRoot);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue