On Wed, 2007-03-21 at 09:07 +1100, Nigel Tao wrote:
> > gboolean AllowedSuspend (void)
> > gboolean AllowedHibernate (void)
> > gboolean AllowedReboot (void)
> > gboolean AllowedShutdown (void)
> 
> Would IsSuspendAllowed, IsHibernateAllowed, etc. be more natural
> names?

CanSuspend?
CanHibernate?

This is to convey that the action might be locked down by the admin, or
the hardware is incapable of the action, or we might fail for another
reason.

I.e. this would be used by stuff like gnome-panel to enable the suspend
and hibernate icons, and gnome-session for the logout options. Fedora
originally patched this, I'm not sure if it's upstream yet.

Richard.


_______________________________________________
xdg mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/xdg

Reply via email to