[gnome-shell/app-picker-refresh: 9/16] appDisplay: Add intermediate stack widget to hold folder popups
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/app-picker-refresh: 9/16] appDisplay: Add intermediate stack widget to hold folder popups
- Date: Tue, 19 Feb 2013 21:26:19 +0000 (UTC)
commit e1f4003b9171b504f9494a3b26344c2f2f66c8af
Author: Florian Müllner <fmuellner gnome org>
Date: Mon Feb 18 20:19:18 2013 +0100
appDisplay: Add intermediate stack widget to hold folder popups
AlphabeticalView will be updated to allow app folders in addition
to app launchers. Folders will pop up in the existing view, so add
an additional stack widget into the hierarchy which popups will use
as parent.
https://bugzilla.gnome.org/show_bug.cgi?id=694192
js/ui/appDisplay.js | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index e9b4520..44daf29 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -61,7 +61,9 @@ const AlphabeticalView = new Lang.Class({
this._allApps = [];
let box = new St.BoxLayout({ vertical: true });
- box.add(this._grid.actor, { y_align: St.Align.START, expand: true });
+ this._stack = new St.Widget({ layout_manager: new Clutter.BinLayout() });
+ this._stack.add_actor(this._grid.actor);
+ box.add(this._stack, { y_align: St.Align.START, expand: true });
this.actor = new St.ScrollView({ x_fill: true,
y_fill: false,
@@ -107,6 +109,10 @@ const AlphabeticalView = new Lang.Class({
this._appIcons[id] = appIcon;
},
+ addFolderPopup: function(popup) {
+ this._stack.add_actor(popup.actor);
+ },
+
_ensureIconVisible: function(icon) {
let adjustment = this.actor.vscroll.adjustment;
let [value, lower, upper, stepIncrement, pageIncrement, pageSize] = adjustment.get_values();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]