From 54c658e7eb5abe1c53809260a28b3e3ef6a77580 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 28 Apr 2015 00:37:33 +0200 Subject: fixup! wifi: expose the last_seen property for a NMAccessPoint nm_ap_set_last_seen() expects a value in scale monotonic-timestamp. PROP_LAST_SEEN is in scale boot-time. But we don't need the property setter anyway. --- src/devices/wifi/nm-wifi-ap.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/devices/wifi/nm-wifi-ap.c b/src/devices/wifi/nm-wifi-ap.c index a16c609202..56d7cbfd69 100644 --- a/src/devices/wifi/nm-wifi-ap.c +++ b/src/devices/wifi/nm-wifi-ap.c @@ -148,9 +148,6 @@ set_property (GObject *object, guint prop_id, break; case PROP_HW_ADDRESS: break; - case PROP_LAST_SEEN: - nm_ap_set_last_seen (ap, g_value_get_int (value)); - break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; @@ -308,7 +305,7 @@ nm_ap_class_init (NMAccessPointClass *ap_class) (object_class, PROP_LAST_SEEN, g_param_spec_int (NM_AP_LAST_SEEN, "", "", -1, G_MAXINT, -1, - G_PARAM_READABLE | G_PARAM_CONSTRUCT_ONLY | + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); nm_dbus_manager_register_exported_type (nm_dbus_manager_get (), -- cgit v1.2.1