[gnome-shell] appDisplay: don't force size on folder icon actor
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] appDisplay: don't force size on folder icon actor
- Date: Sun, 16 Feb 2014 15:50:47 +0000 (UTC)
commit f959cafb36a43ea3ea17e3f704d58d65e1917ee5
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Feb 15 22:06:53 2014 -0800
appDisplay: don't force size on folder icon actor
Use a table layout instead.
https://bugzilla.gnome.org/show_bug.cgi?id=705410
js/ui/appDisplay.js | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index e2db974..7d37798 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -924,9 +924,9 @@ const FolderView = new Lang.Class({
},
createFolderIcon: function(size) {
- let icon = new St.Widget({ layout_manager: new Clutter.BinLayout(),
- style_class: 'app-folder-icon',
- width: size, height: size });
+ let layout = new Clutter.TableLayout();
+ let icon = new St.Widget({ layout_manager: layout,
+ style_class: 'app-folder-icon' });
let subSize = Math.floor(FOLDER_SUBICON_FRACTION * size);
let aligns = [ Clutter.ActorAlign.START, Clutter.ActorAlign.END ];
@@ -936,7 +936,7 @@ const FolderView = new Lang.Class({
x_expand: true, y_expand: true });
bin.set_x_align(aligns[i % 2]);
bin.set_y_align(aligns[Math.floor(i / 2)]);
- icon.add_actor(bin);
+ layout.pack(bin, i % 2, Math.floor(i / 2));
}
return icon;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]