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.
This commit is contained in:
Jonathan Kang 2018-04-18 16:55:10 +08:00 committed by Georges Basile Stavracas Neto
parent 85f267bfa7
commit 00a74afc20

View file

@ -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 ();