From b474814000dae6fcb23ac28dd9ed813b5e6d19b1 Mon Sep 17 00:00:00 2001 From: charles kerr Date: Thu, 31 Dec 2015 14:49:42 -0600 Subject: use predefined VariantTypes instead of reinventing the wheel --- src/accounts-service-user.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/accounts-service-user.vala') diff --git a/src/accounts-service-user.vala b/src/accounts-service-user.vala index e8db7c4..1f9dcce 100644 --- a/src/accounts-service-user.vala +++ b/src/accounts-service-user.vala @@ -185,7 +185,7 @@ public class AccountsServiceUser : Object { this.privacyproxy = Bus.get_proxy.end (res); (this.privacyproxy as DBusProxy).g_properties_changed.connect((proxy, changed, invalid) => { - var welcomeval = changed.lookup_value("MessagesWelcomeScreen", new VariantType("b")); + var welcomeval = changed.lookup_value("MessagesWelcomeScreen", VariantType.BOOLEAN); if (welcomeval != null) { debug("Messages on welcome screen changed"); this.showDataOnGreeter = welcomeval.get_boolean(); @@ -204,7 +204,7 @@ public class AccountsServiceUser : Object { this.syssoundproxy = Bus.get_proxy.end (res); (this.syssoundproxy as DBusProxy).g_properties_changed.connect((proxy, changed, invalid) => { - var silentvar = changed.lookup_value("SilentMode", new VariantType("b")); + var silentvar = changed.lookup_value("SilentMode", VariantType.BOOLEAN); if (silentvar != null) { debug("Silent Mode changed"); this._silentMode = silentvar.get_boolean(); -- cgit v1.2.3