[gnome-control-center/wip/feborges/new-users-panel: 9/10] user-accounts: Add "Your account" label below proper UmCarouselItem
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/feborges/new-users-panel: 9/10] user-accounts: Add "Your account" label below proper UmCarouselItem
- Date: Sun, 18 Dec 2016 14:08:50 +0000 (UTC)
commit 7111374343bb1bd6c32d45f2629ad21862afae64
Author: Felipe Borges <felipeborges gnome org>
Date: Sun Dec 18 14:39:04 2016 +0100
user-accounts: Add "Your account" label below proper UmCarouselItem
https://bugzilla.gnome.org/show_bug.cgi?id=767065
panels/user-accounts/um-user-panel.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/panels/user-accounts/um-user-panel.c b/panels/user-accounts/um-user-panel.c
index e875423..de2619d 100644
--- a/panels/user-accounts/um-user-panel.c
+++ b/panels/user-accounts/um-user-panel.c
@@ -189,6 +189,17 @@ create_carousel_entry (CcUserPanelPrivate *d, ActUser *user)
gtk_box_pack_start (GTK_BOX (box), widget, FALSE, TRUE, 0);
g_free (label);
+ if (act_user_get_uid (user) == getuid ()) {
+ label = g_strdup (_("<small>Your account</small>"));
+ widget = gtk_label_new (label);
+ gtk_label_set_use_markup (GTK_LABEL (widget), TRUE);
+ g_free (label);
+
+ gtk_box_pack_start (GTK_BOX (box), widget, FALSE, TRUE, 0);
+ gtk_style_context_add_class (gtk_widget_get_style_context (widget),
+ "dim-label");
+ }
+
return box;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]