--- gdmactions.py.orig 2006-10-03 16:44:24.000000000 +0100 +++ gdmactions.py 2006-10-03 16:45:15.000000000 +0100 @@ -192,11 +192,11 @@ bus = dbus.Bus(dbus.Bus.TYPE_SESSION) obj = bus.get_object('org.gnome.PowerManager', '/org/gnome/PowerManager') gpm = dbus.Interface (obj, "org.gnome.PowerManager") - if gpm.canSuspend(): + if gpm.AllowedSuspend(): self.indexer.add(_("Suspend"), SuspendMatch(self)) - if gpm.canHibernate(): + if gpm.AllowedHibernate(): self.indexer.add(_("Hibernate"), HibernateMatch(self)) - if gpm.canShutdown(): + if gpm.AllowedShutdown(): self.indexer.add(_("Shutdown"), ShutdownMatch(self)) except dbus.dbus_bindings.DBusException: return False