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



commit d22d0a77981dbcce08a817b54e45c914b4be71ca
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 0ec7dbe..987acc1 100644
--- a/src/gpm-tray-icon.c
+++ b/src/gpm-tray-icon.c
@@ -328,7 +328,7 @@ gpm_tray_icon_create_menu (GpmTrayIcon *icon)
 	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]