[gnome-control-center/wip/feborges/new-users-panel: 6/8] user-accounts: Make the user name label bold in the UmCarouselItem
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/feborges/new-users-panel: 6/8] user-accounts: Make the user name label bold in the UmCarouselItem
- Date: Tue, 20 Dec 2016 18:53:29 +0000 (UTC)
commit 21b428c2bd884425bdcbabbf791d5dfe253caf61
Author: Felipe Borges <felipeborges gnome org>
Date: Sun Dec 18 14:33:32 2016 +0100
user-accounts: Make the user name label bold in the UmCarouselItem
https://bugzilla.gnome.org/show_bug.cgi?id=767065
panels/user-accounts/um-user-panel.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/panels/user-accounts/um-user-panel.c b/panels/user-accounts/um-user-panel.c
index 43b4b15..e875423 100644
--- a/panels/user-accounts/um-user-panel.c
+++ b/panels/user-accounts/um-user-panel.c
@@ -174,6 +174,7 @@ static GtkWidget *
create_carousel_entry (CcUserPanelPrivate *d, ActUser *user)
{
GtkWidget *box, *widget;
+ gchar *label;
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
@@ -181,8 +182,12 @@ create_carousel_entry (CcUserPanelPrivate *d, ActUser *user)
um_user_image_set_user (UM_USER_IMAGE (widget), user);
gtk_box_pack_start (GTK_BOX (box), widget, FALSE, FALSE, 0);
- widget = gtk_label_new (get_real_or_user_name (user));
+ label = g_strdup_printf ("<b>%s</b>",
+ get_real_or_user_name (user));
+ widget = gtk_label_new (label);
+ gtk_label_set_use_markup (GTK_LABEL (widget), TRUE);
gtk_box_pack_start (GTK_BOX (box), widget, FALSE, TRUE, 0);
+ g_free (label);
return box;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]