[gnome-settings-daemon] power: Remove the window filter when the plugin is unloaded
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] power: Remove the window filter when the plugin is unloaded
- Date: Thu, 6 Oct 2011 12:42:10 +0000 (UTC)
commit ebbc7d91a2b5631c0884024974fff60d45b2e7ed
Author: Richard Hughes <richard hughsie com>
Date: Thu Oct 6 13:41:48 2011 +0100
power: Remove the window filter when the plugin is unloaded
plugins/power/gpm-idletime.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/plugins/power/gpm-idletime.c b/plugins/power/gpm-idletime.c
index 61380ba..fc28fc3 100644
--- a/plugins/power/gpm-idletime.c
+++ b/plugins/power/gpm-idletime.c
@@ -442,6 +442,11 @@ gpm_idletime_finalize (GObject *object)
idletime = GPM_IDLETIME (object);
idletime->priv = GPM_IDLETIME_GET_PRIVATE (idletime);
+ /* remove filter */
+ gdk_window_remove_filter (NULL,
+ gpm_idletime_event_filter_cb,
+ idletime);
+
/* free all counters, including reset counter */
for (i = 0; i < idletime->priv->array->len; i++) {
alarm_item = g_ptr_array_index (idletime->priv->array, i);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]