appIcon: Draw running dot above the overview icon
Prevent the app-well-app-running dot from getting unintentionally hidden behind the overview-icon background by initializing the running-dot after its sibling overview-icon. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/866
This commit is contained in:
parent
0a9e1b4173
commit
749a4c9f6c
@ -2113,17 +2113,10 @@ var AppIcon = GObject.registerClass({
|
||||
this.id = app.get_id();
|
||||
this.name = app.get_name();
|
||||
|
||||
this._dot = new St.Widget({ style_class: 'app-well-app-running-dot',
|
||||
layout_manager: new Clutter.BinLayout(),
|
||||
x_expand: true, y_expand: true,
|
||||
x_align: Clutter.ActorAlign.CENTER,
|
||||
y_align: Clutter.ActorAlign.END });
|
||||
|
||||
this._iconContainer = new St.Widget({ layout_manager: new Clutter.BinLayout(),
|
||||
x_expand: true, y_expand: true });
|
||||
|
||||
this.set_child(this._iconContainer);
|
||||
this._iconContainer.add_child(this._dot);
|
||||
|
||||
this._delegate = this;
|
||||
|
||||
@ -2140,6 +2133,16 @@ var AppIcon = GObject.registerClass({
|
||||
this.icon = new IconGrid.BaseIcon(app.get_name(), iconParams);
|
||||
this._iconContainer.add_child(this.icon);
|
||||
|
||||
this._dot = new St.Widget({
|
||||
style_class: 'app-well-app-running-dot',
|
||||
layout_manager: new Clutter.BinLayout(),
|
||||
x_expand: true,
|
||||
y_expand: true,
|
||||
x_align: Clutter.ActorAlign.CENTER,
|
||||
y_align: Clutter.ActorAlign.END,
|
||||
});
|
||||
this._iconContainer.add_child(this._dot);
|
||||
|
||||
this.label_actor = this.icon.label;
|
||||
|
||||
this.connect('popup-menu', this._onKeyboardPopupMenu.bind(this));
|
||||
|
Loading…
Reference in New Issue
Block a user