File control-center-sharing-fix-margin-issue.patch of Package gnome-control-center.9274

From 5fdf0b382e81bb2bc647c904ae1a29d1cb395e71 Mon Sep 17 00:00:00 2001
From: Jonathan Kang <jonathan121537@gmail.com>
Date: Wed, 18 Apr 2018 16:55:10 +0800
Subject: [PATCH] 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 ();
-- 
2.17.0

openSUSE Build Service is sponsored by