[Xfce4-commits] [xfce/xfce4-settings] 01/01: display: Fix alignment of buttons in minimal dialog

noreply at xfce.org noreply at xfce.org
Sat Mar 23 20:54:46 CET 2019


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-settings.

commit 6920d9232c224a16eb719331a464d8ca6d0695a6
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Sat Mar 23 20:53:31 2019 +0100

    display: Fix alignment of buttons in minimal dialog
    
    Previously there was an empty 24px space at the end when there were no
    profiles. Now things are aligned correctly, irrespective if there are
    profiles or not.
---
 dialogs/display-settings/main.c                       | 1 +
 dialogs/display-settings/minimal-display-dialog.glade | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/dialogs/display-settings/main.c b/dialogs/display-settings/main.c
index 85495ed..47daa4a 100644
--- a/dialogs/display-settings/main.c
+++ b/dialogs/display-settings/main.c
@@ -1272,6 +1272,7 @@ display_settings_minimal_profile_populate (GtkBuilder *builder)
         box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
         gtk_box_pack_start (GTK_BOX (box), profile_radio, FALSE, TRUE, 0);
         gtk_box_pack_start (GTK_BOX (box), label, FALSE, TRUE, 3);
+        gtk_widget_set_margin_start (GTK_WIDGET (box), 24);
         gtk_box_pack_start (GTK_BOX (profile_box), box, FALSE, FALSE, 0);
 
         g_signal_connect (profile_radio, "toggled", G_CALLBACK (display_settings_minimal_profile_apply),
diff --git a/dialogs/display-settings/minimal-display-dialog.glade b/dialogs/display-settings/minimal-display-dialog.glade
index 1c165c2..7f88e85 100644
--- a/dialogs/display-settings/minimal-display-dialog.glade
+++ b/dialogs/display-settings/minimal-display-dialog.glade
@@ -24,7 +24,6 @@
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="row_spacing">3</property>
-            <property name="column_spacing">24</property>
             <child>
               <object class="GtkBox" id="profile-box">
                 <property name="visible">True</property>
@@ -98,6 +97,7 @@
               <object class="GtkBox">
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
+                <property name="margin_left">24</property>
                 <property name="orientation">vertical</property>
                 <property name="spacing">3</property>
                 <child>
@@ -149,6 +149,7 @@
               <object class="GtkBox">
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
+                <property name="margin_left">24</property>
                 <property name="orientation">vertical</property>
                 <property name="spacing">3</property>
                 <child>
@@ -200,6 +201,7 @@
               <object class="GtkBox">
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
+                <property name="margin_left">24</property>
                 <property name="orientation">vertical</property>
                 <property name="spacing">3</property>
                 <child>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list