aboutsummaryrefslogtreecommitdiff
path: root/src/settings-daemon.vala
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2023-05-05 03:41:42 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-05-07 20:52:12 +0200
commit1c150a74abe1fa91d353903e5122ec6895bf23fd (patch)
tree0363946108e15bb94e3d6126c12565094e3508d0 /src/settings-daemon.vala
parent3c44cdf781d4fcb55b4e0c95043f172f218baaa7 (diff)
downloadarctica-greeter-1c150a74abe1fa91d353903e5122ec6895bf23fd.tar.gz
arctica-greeter-1c150a74abe1fa91d353903e5122ec6895bf23fd.tar.bz2
arctica-greeter-1c150a74abe1fa91d353903e5122ec6895bf23fd.zip
Fix error handlers for D-Bus methods
Diffstat (limited to 'src/settings-daemon.vala')
-rw-r--r--src/settings-daemon.vala14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/settings-daemon.vala b/src/settings-daemon.vala
index 34dd99c..88bf698 100644
--- a/src/settings-daemon.vala
+++ b/src/settings-daemon.vala
@@ -2,6 +2,7 @@
*
* Copyright (C) 2011 Canonical Ltd
* Copyright (C) 2015,2017 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
+ * Copyright (C) 2023 Robert Tari
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
@@ -17,6 +18,7 @@
*
* Authored by: Michael Terry <michael.terry@canonical.com>
* Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
+ * Robert Tari <robert@tari.in>
*/
public class SettingsDaemon : Object
@@ -232,7 +234,7 @@ public class ScreenSaverInterface : Object
}
}
- public void set_active (bool value)
+ public void set_active (bool value) throws GLib.DBusError, GLib.IOError
{
if (_active == value)
return;
@@ -246,15 +248,15 @@ public class ScreenSaverInterface : Object
active_changed (value);
}
- public bool get_active ()
+ public bool get_active () throws GLib.DBusError, GLib.IOError
{
return _active;
}
- public uint32 get_active_time () { return 0; }
- public void lock () {}
- public void show_message (string summary, string body, string icon) {}
- public void simulate_user_activity () {}
+ public uint32 get_active_time () throws GLib.DBusError, GLib.IOError { return 0; }
+ public void lock () throws GLib.DBusError, GLib.IOError {}
+ public void show_message (string summary, string body, string icon) throws GLib.DBusError, GLib.IOError {}
+ public void simulate_user_activity () throws GLib.DBusError, GLib.IOError {}
}
[DBus (name="org.gnome.SessionManager")]