diff options
author | monsta <[email protected]> | 2015-11-12 12:02:14 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2015-11-30 14:56:53 +0300 |
commit | 8b30ebf59492dca891a847b1ba4cf23edb693266 (patch) | |
tree | c649ec1ccb4746fbf53dc802f34cd6eb67695bd4 /src | |
parent | 43cd79f4d620167bd72736a811dc4d6b627b124f (diff) | |
download | mate-screensaver-8b30ebf59492dca891a847b1ba4cf23edb693266.tar.bz2 mate-screensaver-8b30ebf59492dca891a847b1ba4cf23edb693266.tar.xz |
fix warnings due to wrong id passed to g_source_remove
Diffstat (limited to 'src')
-rw-r--r-- | src/gs-auth-pam.c | 1 | ||||
-rw-r--r-- | src/gs-watcher-x11.c | 2 | ||||
-rw-r--r-- | src/gs-window-x11.c | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/gs-auth-pam.c b/src/gs-auth-pam.c index f150277..3ca3e42 100644 --- a/src/gs-auth-pam.c +++ b/src/gs-auth-pam.c @@ -694,6 +694,7 @@ out: if (watch_id != 0) { g_source_remove (watch_id); + watch_id = 0; } if (channel != NULL) diff --git a/src/gs-watcher-x11.c b/src/gs-watcher-x11.c index 7b5b5c5..d740cfa 100644 --- a/src/gs-watcher-x11.c +++ b/src/gs-watcher-x11.c @@ -392,6 +392,7 @@ set_status (GSWatcher *watcher, if (watcher->priv->idle_id > 0) { g_source_remove (watcher->priv->idle_id); + watcher->priv->idle_id = 0; } res = _gs_watcher_set_session_idle (watcher, FALSE); res = _gs_watcher_set_session_idle_notice (watcher, FALSE); @@ -566,6 +567,7 @@ gs_watcher_finalize (GObject *object) if (watcher->priv->idle_id > 0) { g_source_remove (watcher->priv->idle_id); + watcher->priv->idle_id = 0; } watcher->priv->active = FALSE; diff --git a/src/gs-window-x11.c b/src/gs-window-x11.c index 254a9b5..b1b8ba6 100644 --- a/src/gs-window-x11.c +++ b/src/gs-window-x11.c @@ -2784,6 +2784,7 @@ gs_window_finalize (GObject *object) if (window->priv->info_bar_timer_id > 0) { g_source_remove (window->priv->info_bar_timer_id); + window->priv->info_bar_timer_id = 0; } remove_watchdog_timer (window); |