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:
parent
85f267bfa7
commit
00a74afc20
1 changed files with 2 additions and 0 deletions
|
@ -232,6 +232,7 @@ cc_sharing_networks_new_row (const char *uuid,
|
||||||
|
|
||||||
/* Label */
|
/* Label */
|
||||||
w = gtk_label_new (network_name);
|
w = gtk_label_new (network_name);
|
||||||
|
gtk_widget_set_margin_end (w, 12);
|
||||||
gtk_container_add (GTK_CONTAINER (box), w);
|
gtk_container_add (GTK_CONTAINER (box), w);
|
||||||
|
|
||||||
/* Remove button */
|
/* Remove button */
|
||||||
|
@ -273,6 +274,7 @@ cc_sharing_networks_new_current_row (CcSharingNetworks *self)
|
||||||
/* Label */
|
/* Label */
|
||||||
w = gtk_label_new ("");
|
w = gtk_label_new ("");
|
||||||
gtk_container_add (GTK_CONTAINER (box), w);
|
gtk_container_add (GTK_CONTAINER (box), w);
|
||||||
|
gtk_widget_set_margin_end (w, 12);
|
||||||
self->priv->current_label = w;
|
self->priv->current_label = w;
|
||||||
|
|
||||||
w = gtk_switch_new ();
|
w = gtk_switch_new ();
|
||||||
|
|
Loading…
Add table
Reference in a new issue