[gnome-bluetooth] settings: Remove unneeded object casts
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] settings: Remove unneeded object casts
- Date: Sun, 10 Jan 2016 14:59:42 +0000 (UTC)
commit 41f30d8077c6fc50c36cb3ed2d2e94caca9daf1e
Author: Bastien Nocera <hadess hadess net>
Date: Sun Jan 10 14:46:19 2016 +0100
settings: Remove unneeded object casts
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 14ccda7..8a33078 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]