| Top |
| char * | heartbeat-command | Read / Write / Construct |
| char * | lock-command | Read / Write / Construct |
XfceScreensaver *
xfce_screensaver_new (void);
Creates a new XfceScreensaver object or increases the refrence 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 |
wether 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