[gnome-power-manager/gnome-2-32] Do not show the prefs menu on LiveCD's and with GDM. Fixes #621674



commit 2c9575dcc6358af87dbef372dd0e9a22f01d02e9
Author: Richard Hughes <richard hughsie com>
Date:   Wed Jun 23 12:34:30 2010 +0100

    Do not show the prefs menu on LiveCD's and with GDM. Fixes #621674

 src/gpm-tray-icon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gpm-tray-icon.c b/src/gpm-tray-icon.c
index b537a15..02bb0f9 100644
--- a/src/gpm-tray-icon.c
+++ b/src/gpm-tray-icon.c
@@ -284,7 +284,7 @@ gpm_tray_icon_create_menu (GpmTrayIcon *icon, guint32 timestamp)
 	g_ptr_array_unref (array);
 
 	/* skip for things like live-cd's and GDM */
-	if (0 && !icon->priv->show_actions)
+	if (!icon->priv->show_actions)
 		goto skip_prefs;
 
 	/* only do the seporator if we have at least one device */



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