gva-dbus

gva-dbus — Desktop Integration

Synopsis

gboolean            gva_dbus_init                       (GError **error);
gboolean            gva_dbus_inhibit_screen_saver       (GvaProcess *process,
                                                         const gchar *reason,
                                                         GError **error);

Description

XXX Long description here.

Details

gva_dbus_init ()

gboolean            gva_dbus_init                       (GError **error);

Connects to D-Bus and sets up proxy objects. If an error occurs, the function returns FALSE and sets error.

This function should be called once when the application starts.

error :

return location for a GError, or NULL

Returns :

TRUE on success, FALSE if an error occurred

gva_dbus_inhibit_screen_saver ()

gboolean            gva_dbus_inhibit_screen_saver       (GvaProcess *process,
                                                         const gchar *reason,
                                                         GError **error);

If the full screen preference is enabled, inhibits GNOME screen saver for the duration of process. If an error occurs, the function returns FALSE and sets error.

process :

a GvaProcess

reason :

the reason for the inhibit

error :

return location for a GError, or NULL

Returns :

TRUE on success, FALSE if an error occurred