ae50438...
by
Benjamin Berg <email address hidden>
network: Fix disconnecting of connection_removed_cb handler
The disconnect was for the wrong object (connection rather than client).
Fix this by simply moving to use g_signal_connect_object which obsoletes
the explicit disconnect calls.
61471f2...
by
Benjamin Berg <email address hidden>
network: Update VPN title when the connection is changed
When the connection is modified then the title might be changed. Call
the UI update function to ensure that widgets are updated.
37e4557...
by
Benjamin Berg <email address hidden>
network: Fix Bluetooth panel showing up after connection removal
The test to check whether the Bluetooth (simple section) contains
elements was testing for NetObjectSimple. However, ethernet connections
are a subclass and check would count these. This causes issue when the
code is run after net object removal.
The fix is to check for the exact object type rather than also allowing
subclasses.
1a5c5b9...
by
Benjamin Berg <email address hidden>
network: Fix crash on connection change after device removal
When a device is removed the callback handler could still be called
because it was connected using g_signal_connect rather than
g_signal_connect_object. This fixes crashes in the UI after a device has
been removed again.
(cherry picked from commit e91266a8f0643de1166bc81431e0c7bb22782614)
5d1be74...
by
Benjamin Berg <email address hidden>
network: Ensure devices are removed from UI when disappearing
The "removed" callback from NMObject is never called when the object is
simply finalised because the UI drops the reference. Explicitly call the
handler so that UI elements are removed.
(cherry picked from commit ec50cbcdff340fbb97ab50916c9e225273be2aa9)
dialog_got_proxy_cb and dialog_got_proxy_props_cb may be called after the
instance of CcNightLightDialog has been disposed. Make sure 'self' pointer is
not dereferenced if not valid.