widgets: clean up pending timeouts on destruction

parent bcf5da3f
......@@ -5,6 +5,12 @@ namespace XimperShellNotificationCenter.Widgets {
private static string ?settings_cmd = null;
private static bool settings_cmd_checked = false;
~BluetoothTile () {
if (sync_timeout != 0) {
Source.remove (sync_timeout);
}
}
public BluetoothTile (Json.Object ?cfg) {
base ("bluetooth-active-symbolic",
_("Bluetooth"));
......
......@@ -16,6 +16,12 @@ namespace XimperShellNotificationCenter.Widgets {
private bool updating_submenu = false;
private bool connecting = false;
~VpnTile () {
if (sync_timeout != 0) {
Source.remove (sync_timeout);
}
}
public VpnTile (Json.Object ?cfg) {
base ("network-vpn-symbolic", _("VPN"));
setup_arrow ();
......
......@@ -22,6 +22,12 @@ namespace XimperShellNotificationCenter.Widgets {
private bool connecting = false;
private bool updating_submenu = false;
~WifiTile () {
if (sync_timeout != 0) {
Source.remove (sync_timeout);
}
}
public WifiTile (Json.Object ?cfg) {
base ("network-wireless-offline-symbolic",
_("Wi-Fi"));
......
......@@ -33,6 +33,12 @@ namespace XimperShellNotificationCenter.Widgets {
default_device_changed);
}
~Volume () {
if (sink_rebuild_timeout != 0) {
Source.remove (sink_rebuild_timeout);
}
}
public Volume (string suffix) {
base (suffix);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment