Top |
XfceScreensaver * | xfce_screensaver_new () |
void | xfce_screensaver_inhibit () |
gboolean | xfce_screensaver_lock () |
char * | heartbeat-command | Read / Write / Construct |
char * | lock-command | Read / Write / Construct |
gboolean | lock-on-sleep | Read / Write / Construct |
XfceScreensaver *
xfce_screensaver_new (void
);
Creates a new XfceScreensaver object or increases the reference count of the current object.
An XfceScreensaver object, to be released with
g_object_unref()
when no longer used.
[transfer full]
Since: 4.18.2
void xfce_screensaver_inhibit (XfceScreensaver *saver
,gboolean inhibit
);
Calling this function with inhibit
as TRUE
will prevent the user's
screensaver from activating. This is useful when the user is watching
a movie or giving a presentation.
Calling this function with inhibit
as FALSE
will remove any current
screensaver inhibit the XfceScreensaver object has.
saver |
the XfceScreensaver object |
|
inhibit |
whether to inhibit the screensaver from activating |
Since: 4.18.2
gboolean
xfce_screensaver_lock (XfceScreensaver *saver
);
Attempts to lock the screen, either with one of the screensaver D-Bus proxies, the Xfconf lock command, or one of the fallback scripts such as xdg-screensaver.
Since: 4.18.2
“heartbeat-command”
property “heartbeat-command” char *
Inhibit the screensaver from activating, e.g. xscreensaver-command --deactivate.
Owner: XfceScreensaver
Flags: Read / Write / Construct
Default value: NULL
“lock-command”
property “lock-command” char *
Lock the desktop, e.g. xscreensaver-command --lock.
Owner: XfceScreensaver
Flags: Read / Write / Construct
Default value: NULL