Setting proper name and role for system menu sliders

https://bugzilla.gnome.org/show_bug.cgi?id=706391
This commit is contained in:
Alejandro Piñeiro
2013-08-21 18:24:30 +02:00
parent c3c529b001
commit dd1651f2d1
3 changed files with 10 additions and 1 deletions

View File

@ -5,6 +5,7 @@ const Clutter = imports.gi.Clutter;
const Lang = imports.lang;
const St = imports.gi.St;
const Signals = imports.signals;
const Atk = imports.gi.Atk;
const SLIDER_SCROLL_STEP = 0.05; /* Slider scrolling step in % */
@ -19,7 +20,8 @@ const Slider = new Lang.Class({
this.actor = new St.DrawingArea({ style_class: 'slider',
can_focus: true,
reactive: true });
reactive: true,
accessible_role: Atk.Role.SLIDER });
this.actor.connect('repaint', Lang.bind(this, this._sliderRepaint));
this.actor.connect('button-press-event', Lang.bind(this, this._startDragging));
this.actor.connect('scroll-event', Lang.bind(this, this._onScrollEvent));