[gnome-control-center] sharing: set end margin for labels in Networks list box



commit 00a74afc20eb25477f785d90d70d02e687c99805
Author: Jonathan Kang <jonathan121537 gmail com>
Date:   Wed Apr 18 16:55:10 2018 +0800

    sharing: set end margin for labels in Networks list box
    
    Currently if a network connection's name is long enough, there will
    be no space between the name label widget and the switch button widget
    next to it.
    
    Fix that by setting the end margin of label widget as 6 to keep some
    space between those two widgets.

 panels/sharing/cc-sharing-networks.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/panels/sharing/cc-sharing-networks.c b/panels/sharing/cc-sharing-networks.c
index d97f811ea..672ac98d6 100644
--- a/panels/sharing/cc-sharing-networks.c
+++ b/panels/sharing/cc-sharing-networks.c
@@ -232,6 +232,7 @@ cc_sharing_networks_new_row (const char        *uuid,
 
   /* Label */
   w = gtk_label_new (network_name);
+  gtk_widget_set_margin_end (w, 12);
   gtk_container_add (GTK_CONTAINER (box), w);
 
   /* Remove button */
@@ -273,6 +274,7 @@ cc_sharing_networks_new_current_row (CcSharingNetworks *self)
   /* Label */
   w = gtk_label_new ("");
   gtk_container_add (GTK_CONTAINER (box), w);
+  gtk_widget_set_margin_end (w, 12);
   self->priv->current_label = w;
 
   w = gtk_switch_new ();


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