[gnome-tweaks/ewlsh/fix-startup] Fix margins in startup application selector.




commit 0f220a28d9159b097df19650f47f24eb84201248
Author: Evan Welsh <contact evanwelsh com>
Date:   Fri Oct 23 19:45:34 2020 -0500

    Fix margins in startup application selector.
    
    Giving the child of a scroll window a margin leads to an unintended
    black border.

 gtweak/tweaks/tweak_group_startup.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gtweak/tweaks/tweak_group_startup.py b/gtweak/tweaks/tweak_group_startup.py
index 05f70224..ae7930c3 100644
--- a/gtweak/tweaks/tweak_group_startup.py
+++ b/gtweak/tweaks/tweak_group_startup.py
@@ -58,7 +58,6 @@ class _AppChooser(Gtk.Dialog):
         self._search_key, self._search_mods = Gtk.accelerator_parse(_("<primary>f"))
 
         lb = Gtk.ListBox()
-        lb.props.margin = 5
         lb.props.activate_on_single_click = False
         lb.set_sort_func(self._sort_apps, None)
         lb.set_header_func(_list_header_func, None)
@@ -81,6 +80,7 @@ class _AppChooser(Gtk.Dialog):
                         lb.add(w)
 
         sw = Gtk.ScrolledWindow()
+        sw.props.margin = 2
         sw.props.hscrollbar_policy = Gtk.PolicyType.NEVER
         sw.add(lb)
 
@@ -131,6 +131,8 @@ class _AppChooser(Gtk.Dialog):
     def _build_widget(self, a, extra):
         row = Gtk.ListBoxRow()
         g = Gtk.Grid()
+        g.props.margin = 5
+
         if not a.get_name():
             return None
         icn = a.get_icon()


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