[gnome-control-center] Update adapter interface for BlueZ 5
- From: Emilio Pozuelo Monfort <epm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Update adapter interface for BlueZ 5
- Date: Mon, 3 Jun 2013 13:35:47 +0000 (UTC)
commit ac43647ac01cb990555c7b4ff7b8bf5fb8b17b83
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Fri May 24 13:21:32 2013 +0200
Update adapter interface for BlueZ 5
And move it to a define while at it.
https://bugzilla.gnome.org/show_bug.cgi?id=700915
panels/bluetooth/cc-bluetooth-panel.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/panels/bluetooth/cc-bluetooth-panel.c b/panels/bluetooth/cc-bluetooth-panel.c
index 9784044..7a45a7f 100644
--- a/panels/bluetooth/cc-bluetooth-panel.c
+++ b/panels/bluetooth/cc-bluetooth-panel.c
@@ -43,6 +43,9 @@ CC_PANEL_REGISTER (CcBluetoothPanel, cc_bluetooth_panel)
#define WID(s) GTK_WIDGET (gtk_builder_get_object (self->priv->builder, s))
+#define BLUEZ_SERVICE "org.bluez"
+#define ADAPTER_IFACE "org.bluez.Adapter1"
+
#define KEYBOARD_PREFS "keyboard"
#define MOUSE_PREFS "mouse"
#define SOUND_PREFS "sound"
@@ -660,9 +663,9 @@ remove_selected_device (CcBluetoothPanel *self)
adapter_proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM,
G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES |
G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START,
NULL,
- "org.bluez",
+ BLUEZ_SERVICE,
adapter,
- "org.bluez.Adapter",
+ ADAPTER_IFACE,
NULL,
&error);
g_free (adapter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]