[gnome-bluetooth] Fix getting device properties in geoclue plugin
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] Fix getting device properties in geoclue plugin
- Date: Tue, 2 Mar 2010 10:55:30 +0000 (UTC)
commit 0df28faab5070d4dc8058e0f549520a6c40035c8
Author: Bastien Nocera <hadess hadess net>
Date: Tue Mar 2 10:53:38 2010 +0000
Fix getting device properties in geoclue plugin
https://bugzilla.gnome.org/show_bug.cgi?id=611532
lib/plugins/geoclue.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/plugins/geoclue.c b/lib/plugins/geoclue.c
index 52658fe..4966f64 100644
--- a/lib/plugins/geoclue.c
+++ b/lib/plugins/geoclue.c
@@ -47,7 +47,7 @@ get_name_and_type (const char *address, BluetoothType *ret_type)
found_name = NULL;
*ret_type = 0;
client = bluetooth_client_new ();
- model = bluetooth_client_get_model (client);
+ model = bluetooth_client_get_device_model (client, NULL);
if (model == NULL) {
g_object_unref (client);
return NULL;
@@ -106,7 +106,7 @@ has_config_widget (const char *bdaddr, const char **uuids)
/* Type is ANY, probably a GPS device */
name = get_name_and_type (bdaddr, &type);
- if (type == BLUETOOTH_TYPE_ANY) {
+ if (name != NULL && type == BLUETOOTH_TYPE_ANY) {
g_free (name);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]