GNOME Bugzilla – Bug 641236
empty user label in top panel
Last modified: 2011-02-02 20:21:55 UTC
g_get_real_name is used in the top panel, unless it returns NULL or "Unknown"; the attached patch makes it also fall back to the username if the real name is the empty string.
Created attachment 179873 [details] [review] Use username in top panel if real name is empty
Review of attachment 179873 [details] [review]: ::: src/gs-window-x11.c @@ +2337,3 @@ name = g_get_real_name (); + if (name == NULL || strcmp(name, "") == 0 || strcmp (name, "Unknown") == 0) { The name[0] == '\0' pattern is more common and a little nicer. The strcmp was missing a space before the ( too.
Created attachment 179921 [details] [review] Use username in top panel if real name is empty