From 1c150a74abe1fa91d353903e5122ec6895bf23fd Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Fri, 5 May 2023 03:41:42 +0200 Subject: Fix error handlers for D-Bus methods --- src/greeter-list.vala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/greeter-list.vala') diff --git a/src/greeter-list.vala b/src/greeter-list.vala index b1853cf..102c153 100644 --- a/src/greeter-list.vala +++ b/src/greeter-list.vala @@ -2,6 +2,7 @@ * * Copyright (C) 2012 Canonical Ltd * Copyright (C) 2015-2017 Mike Gabriel + * 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 @@ -19,6 +20,7 @@ * Michael Terry * Scott Sweeny * Mike Gabriel + * Robert Tari */ private const int MAX_FIELD_SIZE = 200; @@ -41,11 +43,11 @@ public class ListDBusInterface : Object }); } - public string get_active_entry () + public string get_active_entry () throws GLib.DBusError, GLib.IOError { return list.get_active_entry (); } - public void set_active_entry (string entry_name) + public void set_active_entry (string entry_name) throws GLib.DBusError, GLib.IOError { list.set_active_entry (entry_name); } -- cgit v1.2.3