[gnome-screensaver] Use username in top panel if real name is empty
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-screensaver] Use username in top panel if real name is empty
- Date: Wed, 2 Feb 2011 20:19:25 +0000 (UTC)
commit 9a23c3485c42594c8bd8a59a0aa7e27ceade1a8a
Author: Frédéric Péters <fpeters 0d be>
Date: Wed Feb 2 21:09:33 2011 +0100
Use username in top panel if real name is empty
https://bugzilla.gnome.org/show_bug.cgi?id=641236
src/gs-window-x11.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-window-x11.c b/src/gs-window-x11.c
index ce4c4ce..61eb398 100644
--- a/src/gs-window-x11.c
+++ b/src/gs-window-x11.c
@@ -2336,7 +2336,7 @@ get_user_display_name (void)
name = g_get_real_name ();
- if (name == NULL || strcmp (name, "Unknown") == 0) {
+ if (name == NULL || name[0] == '\0' || strcmp (name, "Unknown") == 0) {
name = g_get_user_name ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]