diff options
author | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2012-09-18 22:00:36 +0200 |
---|---|---|
committer | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2012-09-18 22:00:36 +0200 |
commit | 0a84d2f3bf5b13cabc266df411ee1bffcf5f9adf (patch) | |
tree | 4bba8782f48f26187874e12ac583dbed390d6c91 /sd/source | |
parent | cc75f10853dcfbc6b332af0942d528d0430abba3 (diff) |
Remove unnecessary use of GVariant to allow building on older GLib.
Change-Id: Ie66a8b82193fce4060ca4949ace574398f95515e
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/remotecontrol/BluetoothServer.cxx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/sd/source/ui/remotecontrol/BluetoothServer.cxx b/sd/source/ui/remotecontrol/BluetoothServer.cxx index 1521b1e38583..c859f953e1cd 100644 --- a/sd/source/ui/remotecontrol/BluetoothServer.cxx +++ b/sd/source/ui/remotecontrol/BluetoothServer.cxx @@ -123,10 +123,9 @@ bool BluetoothServer::isDiscoverable() g_error_free( aError ); return false; } - GVariant* aVariant = dbus_g_value_build_g_variant ( (GValue*) - g_hash_table_lookup( aProperties, "Discoverable" ) ); - gboolean aIsDiscoverable = g_variant_get_boolean( aVariant ); - g_free( aVariant ); + + gboolean aIsDiscoverable = g_value_get_boolean( (GValue*) g_hash_table_lookup( + aProperties, "Discoverable" ) ); g_free( aProperties ); return aIsDiscoverable; @@ -171,10 +170,10 @@ void BluetoothServer::setDiscoverable( bool aDiscoverable ) g_error_free( aError ); return; } - GVariant* aVariant = dbus_g_value_build_g_variant( (GValue*) - g_hash_table_lookup( aProperties, "Powered" ) ); - gboolean aPowered = g_variant_get_boolean( aVariant ); - g_free( aVariant ); + + gboolean aPowered = g_value_get_boolean( (GValue*) g_hash_table_lookup( + aProperties, "Powered" ) ); + g_free( aProperties ); if ( !aPowered ) { |