core: use define for GObject property name NM_SUPPLICANT_INTERFACE_SCANNING

grep-ing for '\<scanning\>' yields 42 hits under src. But only 2 are actual
references to the "scanning" GObject property of NMDeviceWifi.

Use a #define with a unique name where we mean NMDeviceWifi's property.
This commit is contained in:
Thomas Haller 2017-02-02 18:33:56 +01:00
parent 61554cae7a
commit 95a95b3e48

View file

@ -262,7 +262,7 @@ supplicant_interface_acquire (NMDeviceWifi *self)
G_CALLBACK (supplicant_iface_scan_done_cb),
self);
g_signal_connect (priv->sup_iface,
"notify::scanning",
"notify::"NM_SUPPLICANT_INTERFACE_SCANNING,
G_CALLBACK (supplicant_iface_notify_scanning_cb),
self);
g_signal_connect (priv->sup_iface,