aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-08-04 22:11:57 +0200
committerRobert Tari <robert@tari.in>2021-08-04 22:12:44 +0200
commit5139f8e16c9a8c846df33b7a2b6e20b87702734b (patch)
tree91d114a465a9c01cebde6a2de2f0509caf6087c4 /src
parentffd39dd6b84aec66c0c5a766a43b7294e49525f5 (diff)
downloadayatana-indicator-sound-5139f8e16c9a8c846df33b7a2b6e20b87702734b.tar.gz
ayatana-indicator-sound-5139f8e16c9a8c846df33b7a2b6e20b87702734b.tar.bz2
ayatana-indicator-sound-5139f8e16c9a8c846df33b7a2b6e20b87702734b.zip
Drop deprecated DBusProxy.create_for_bus
Diffstat (limited to 'src')
-rw-r--r--src/accounts-service-access.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/accounts-service-access.vala b/src/accounts-service-access.vala
index 68616d2..d2720a3 100644
--- a/src/accounts-service-access.vala
+++ b/src/accounts-service-access.vala
@@ -130,7 +130,7 @@ public class AccountsServiceAccess : Object
// Get master AccountsService object
DBusProxy accounts_proxy;
try {
- accounts_proxy = yield DBusProxy.create_for_bus (BusType.SYSTEM, DBusProxyFlags.DO_NOT_LOAD_PROPERTIES | DBusProxyFlags.DO_NOT_CONNECT_SIGNALS, null, "org.freedesktop.Accounts", "/org/freedesktop/Accounts", "org.freedesktop.Accounts");
+ accounts_proxy = yield new DBusProxy.for_bus (BusType.SYSTEM, DBusProxyFlags.DO_NOT_LOAD_PROPERTIES | DBusProxyFlags.DO_NOT_CONNECT_SIGNALS, null, "org.freedesktop.Accounts", "/org/freedesktop/Accounts", "org.freedesktop.Accounts");
} catch (GLib.Error e) {
warning ("unable to get greeter proxy: %s", e.message);
return;
@@ -143,9 +143,9 @@ public class AccountsServiceAccess : Object
if (user_path_variant.check_format_string ("(o)", true)) {
user_path_variant.get ("(o)", out user_path);
#if HAS_UT_ACCTSERVICE_SOUND_SETTINGS
- _user_proxy = yield DBusProxy.create_for_bus (BusType.SYSTEM, DBusProxyFlags.GET_INVALIDATED_PROPERTIES, null, "org.freedesktop.Accounts", user_path, "com.ubuntu.AccountsService.Sound");
+ _user_proxy = yield new DBusProxy.for_bus (BusType.SYSTEM, DBusProxyFlags.GET_INVALIDATED_PROPERTIES, null, "org.freedesktop.Accounts", user_path, "com.ubuntu.AccountsService.Sound");
#else
- _user_proxy = yield DBusProxy.create_for_bus (BusType.SYSTEM, DBusProxyFlags.GET_INVALIDATED_PROPERTIES, null, "org.freedesktop.Accounts", user_path, "org.ayatana.AccountsService.Sound");
+ _user_proxy = yield new DBusProxy.for_bus (BusType.SYSTEM, DBusProxyFlags.GET_INVALIDATED_PROPERTIES, null, "org.freedesktop.Accounts", user_path, "org.ayatana.AccountsService.Sound");
#endif
} else {
warning ("Unable to find user name after calling FindUserByName. Expected type: %s and obtained %s", "(o)", user_path_variant.get_type_string () );