gnome-panel r10758 - trunk/gnome-panel



Author: vuntz
Date: Sun Jan 27 23:01:40 2008
New Revision: 10758
URL: http://svn.gnome.org/viewvc/gnome-panel?rev=10758&view=rev

Log:
2008-01-28  Vincent Untz  <vuntz gnome org>

	* panel-logout.c: (panel_logout_timeout): if the name of the user is
	"Unknown", then display the login name.
	Fix bug #509129, based on patch by Martin Schoen
	<martin_schoen gmx de>


Modified:
   trunk/gnome-panel/ChangeLog
   trunk/gnome-panel/panel-logout.c

Modified: trunk/gnome-panel/panel-logout.c
==============================================================================
--- trunk/gnome-panel/panel-logout.c	(original)
+++ trunk/gnome-panel/panel-logout.c	Sun Jan 27 23:01:40 2008
@@ -261,7 +261,7 @@
 	}
 
 	name = g_get_real_name ();
-	if (!name || name[0] == '\0')
+	if (!name || name[0] == '\0' || strcmp (name, "Unknown") == 0)
 		name = g_get_user_name ();
 
 	gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (logout_dialog),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]