Move ShellDrawingArea to StDrawingArea
It's nicer to have ShellDrawingArea as a St widget so it can participate more cleanly in CSS styling, such as queuing a redraw automatically on style changes, and allowing subclasses to use CSS styling. https://bugzilla.gnome.org/show_bug.cgi?id=602131
This commit is contained in:
@ -686,7 +686,7 @@ AppSwitcher.prototype = {
|
||||
appIcon.actor.reactive = false;
|
||||
|
||||
let n = this._arrows.length;
|
||||
let arrow = new Shell.DrawingArea();
|
||||
let arrow = new St.DrawingArea();
|
||||
arrow.connect('redraw', Lang.bind(this,
|
||||
function (area, texture) {
|
||||
Shell.draw_box_pointer(texture, Shell.PointerDirection.DOWN,
|
||||
|
@ -307,7 +307,7 @@ AppIconMenu.prototype = {
|
||||
this._windowContainer.connect('leave-event', Lang.bind(this, this._onMenuLeave));
|
||||
this._windowContainer.connect('button-release-event', Lang.bind(this, this._onMenuButtonRelease));
|
||||
|
||||
this._arrow = new Shell.DrawingArea();
|
||||
this._arrow = new St.DrawingArea();
|
||||
this._arrow.connect('redraw', Lang.bind(this, function (area, texture) {
|
||||
Shell.draw_box_pointer(texture,
|
||||
this._type == MenuType.ON_RIGHT ? Shell.PointerDirection.LEFT : Shell.PointerDirection.UP,
|
||||
|
Reference in New Issue
Block a user