[gnome-control-center/wip/feborges/new-users-panel: 10/10] user-accounts: Align widgets in UmCarouselItem individually
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/feborges/new-users-panel: 10/10] user-accounts: Align widgets in UmCarouselItem individually
- Date: Sun, 18 Dec 2016 14:08:55 +0000 (UTC)
commit d8e0b108d76ba0b4233ba16532c0594cd982cf5b
Author: Felipe Borges <felipeborges gnome org>
Date: Sun Dec 18 15:03:17 2016 +0100
user-accounts: Align widgets in UmCarouselItem individually
Set a margin for the username label instead of using the container
spacing property. In doing so the labels are not so far apart from
each other, but still distant from the profile icon/image.
https://bugzilla.gnome.org/show_bug.cgi?id=767065
panels/user-accounts/um-user-panel.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/panels/user-accounts/um-user-panel.c b/panels/user-accounts/um-user-panel.c
index de2619d..d9c6c26 100644
--- a/panels/user-accounts/um-user-panel.c
+++ b/panels/user-accounts/um-user-panel.c
@@ -176,7 +176,7 @@ create_carousel_entry (CcUserPanelPrivate *d, ActUser *user)
GtkWidget *box, *widget;
gchar *label;
- box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
+ box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
widget = um_user_image_new ();
um_user_image_set_user (UM_USER_IMAGE (widget), user);
@@ -186,6 +186,7 @@ create_carousel_entry (CcUserPanelPrivate *d, ActUser *user)
get_real_or_user_name (user));
widget = gtk_label_new (label);
gtk_label_set_use_markup (GTK_LABEL (widget), TRUE);
+ gtk_widget_set_margin_top (widget, 5);
gtk_box_pack_start (GTK_BOX (box), widget, FALSE, TRUE, 0);
g_free (label);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]