From fe60db64e0a8750bc317f1eced13c49d66e80e64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 5 Aug 2014 23:26:45 +0200 Subject: [PATCH] appDisplay: Use Clutter.GridLayout Clutter.TableLayout has been deprecated, so move to the recommended replacement. --- js/ui/appDisplay.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 194905f0b..3eae1e5a3 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -964,7 +964,7 @@ const FolderView = new Lang.Class({ }, createFolderIcon: function(size) { - let layout = new Clutter.TableLayout(); + let layout = new Clutter.GridLayout(); let icon = new St.Widget({ layout_manager: layout, style_class: 'app-folder-icon' }); layout.hookup_style(icon); @@ -980,7 +980,7 @@ const FolderView = new Lang.Class({ } else { bin = new St.Bin({ width: subSize, height: subSize }); } - layout.pack(bin, rtl ? (i + 1) % 2 : i % 2, Math.floor(i / 2)); + layout.attach(bin, rtl ? (i + 1) % 2 : i % 2, Math.floor(i / 2), 1, 1); } return icon;