core: only enable location API for dbus-glib >= 0.86

This commit is contained in:
Dan Williams
2010-04-04 09:17:08 -07:00
parent f39afdd5f7
commit 2f1fbfb520
3 changed files with 41 additions and 7 deletions
+10
View File
@@ -314,6 +314,16 @@ mm_modem_location_get_type (void)
g_type_interface_add_prerequisite (loc_type, G_TYPE_OBJECT);
dbus_g_object_type_install_info (loc_type, &dbus_glib_mm_modem_location_object_info);
/* Register some shadow properties to handle Enabled and Capabilities
* since these could be used by other interfaces.
*/
dbus_g_object_type_register_shadow_property (loc_type,
"Enabled",
MM_MODEM_LOCATION_ENABLED);
dbus_g_object_type_register_shadow_property (loc_type,
"Capabilities",
MM_MODEM_LOCATION_CAPABILITIES);
}
return loc_type;