diff options
author | Bastien Nocera <hadess@hadess.net> | 2016-01-10 14:46:19 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2016-01-10 15:57:58 +0100 |
commit | 41f30d8077c6fc50c36cb3ed2d2e94caca9daf1e (patch) | |
tree | 7f5d3928420aec630eac5c9246daccb495e5a27b | |
parent | bd0db730b684112b3d3c6367205f1abea1743d1d (diff) | |
download | gnome-bluetooth-41f30d8077c6fc50c36cb3ed2d2e94caca9daf1e.tar.gz |
settings: Remove unneeded object casts
-rw-r--r-- | lib/bluetooth-settings-widget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bluetooth-settings-widget.c b/lib/bluetooth-settings-widget.c index 14ccda79..8a33078f 100644 --- a/lib/bluetooth-settings-widget.c +++ b/lib/bluetooth-settings-widget.c @@ -393,7 +393,7 @@ confirm_remote_pin_cb (GtkDialog *dialog, pin = g_object_get_data (G_OBJECT (invocation), "pin"); device = g_object_get_data (G_OBJECT (invocation), "device"); - bluetooth_client_set_trusted (BLUETOOTH_CLIENT (priv->client), g_dbus_proxy_get_object_path (device), TRUE); + bluetooth_client_set_trusted (priv->client, g_dbus_proxy_get_object_path (device), TRUE); g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", pin)); @@ -715,7 +715,7 @@ authorize_service_cb (GtkDialog *dialog, GDBusProxy *device; device = g_object_get_data (G_OBJECT (invocation), "device"); - bluetooth_client_set_trusted (BLUETOOTH_CLIENT (priv->client), g_dbus_proxy_get_object_path (device), TRUE); + bluetooth_client_set_trusted (priv->client, g_dbus_proxy_get_object_path (device), TRUE); g_dbus_method_invocation_return_value (invocation, NULL); } else { char *msg; |