[gnome-shell] appIcon: Draw running dot above the overview icon
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] appIcon: Draw running dot above the overview icon
- Date: Wed, 27 Nov 2019 02:04:09 +0000 (UTC)
commit 749a4c9f6c76000d6122b185246142d0efcbbc4f
Author: Joonas Henriksson <joonas henriksson gmail com>
Date: Wed Nov 27 02:13:24 2019 +0200
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
js/ui/appDisplay.js | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 00745ee7db..61dd7ae437 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]