[gnome-shell] appDisplay: Set 3x3 grid mode for folders



commit 113130552f1d3104957a2b8441b3401ea1f6b8f4
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Jun 9 15:32:26 2022 -0300

    appDisplay: Set 3x3 grid mode for folders
    
    Folders have a fixed 3x3 grid, given that folders themselves
    have a fixed size. Make the code correspond to this invariant.
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2335>

 js/ui/appDisplay.js | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 0eebbe9763..23bff90c73 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1974,6 +1974,13 @@ class FolderGrid extends IconGrid.IconGrid {
             page_halign: Clutter.ActorAlign.CENTER,
             page_valign: Clutter.ActorAlign.CENTER,
         });
+
+        this.setGridModes([
+            {
+                rows: 3,
+                columns: 3,
+            },
+        ]);
     }
 });
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]