[gnome-shell/eos3.8: 105/255] baseAppView: Add new read-only id property
- From: Matthew Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/eos3.8: 105/255] baseAppView: Add new read-only id property
- Date: Wed, 10 Jun 2020 19:06:48 +0000 (UTC)
commit 901de12cbfa1d4854729727394fc5c23a9c759c3
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Sep 30 22:54:38 2019 -0300
baseAppView: Add new read-only id property
This will be used by next commits to implement
moving icon positions.
js/ui/appDisplay.js | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 5714af6676..d972a07c0a 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -341,6 +341,10 @@ var BaseAppView = GObject.registerClass({
removeNudges() {
this._grid.removeNudges();
}
+
+ get id() {
+ return this._id;
+ }
});
var AppDisplay = GObject.registerClass(
@@ -355,6 +359,8 @@ class AppDisplay extends BaseAppView {
minRows: EOS_DESKTOP_MIN_ROWS,
});
+ this._id = IconGridLayout.DESKTOP_GRID_ID;
+
this._scrollView = new St.ScrollView({
style_class: 'all-apps',
x_expand: true,
@@ -1083,6 +1089,7 @@ class FolderView extends BaseAppView {
});
this._dirInfo = dirInfo;
+ this._id = dirInfo.get_id();
// If it not expand, the parent doesn't take into account its preferred_width when allocating
// the second time it allocates, so we apply the "Standard hack for ClutterBinLayout"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]