[gnome-characters/bilelmoussaoui/gtk4] sidebar: cleanup rows spacing



commit da70eeeb01b3c71acd668cd8b391850604b494c4
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Wed Nov 24 21:57:45 2021 +0100

    sidebar: cleanup rows spacing
    
    copied from the patterns app

 src/sidebarRow.js | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/src/sidebarRow.js b/src/sidebarRow.js
index e7d3c6a..e2aa58d 100644
--- a/src/sidebarRow.js
+++ b/src/sidebarRow.js
@@ -46,11 +46,16 @@ var SidebarRow = GObject.registerClass({
         super._init({
             accessible_role: Gtk.AccessibleRole.ROW,
         });
-        this._scripts = [];
-
-        let hbox = new Gtk.Box({ orientation: Gtk.Orientation.HORIZONTAL });
+        let hbox = new Gtk.Box({
+            orientation: Gtk.Orientation.HORIZONTAL,
+            margin_top: 12,
+            margin_bottom: 12,
+            margin_start: 6,
+            margin_end: 6,
+            spacing: 12,
+        });
 
-        let image = new Gtk.Image({ margin_end: 10 });
+        let image = new Gtk.Image();
         this.bind_property('icon-name', image, 'icon-name',
             GObject.BindingFlags.DEFAULT | GObject.BindingFlags.SYNC_CREATE,
         );


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