[gnome-settings-daemon] cursor: Call stop from finalize
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] cursor: Call stop from finalize
- Date: Fri, 17 Oct 2014 15:27:25 +0000 (UTC)
commit eba55073ee5d50cf02baa4f3b1d6567297827411
Author: Rui Matos <tiagomatos gmail com>
Date: Fri Oct 17 17:08:02 2014 +0200
cursor: Call stop from finalize
plugins/cursor/gsd-cursor-manager.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/plugins/cursor/gsd-cursor-manager.c b/plugins/cursor/gsd-cursor-manager.c
index 46cb0ca..57da7f7 100644
--- a/plugins/cursor/gsd-cursor-manager.c
+++ b/plugins/cursor/gsd-cursor-manager.c
@@ -477,8 +477,20 @@ gsd_cursor_manager_stop (GsdCursorManager *manager)
}
static void
+gsd_cursor_manager_finalize (GObject *object)
+{
+ gsd_cursor_manager_stop (GSD_CURSOR_MANAGER (object));
+
+ G_OBJECT_CLASS (gsd_cursor_manager_parent_class)->finalize (object);
+}
+
+static void
gsd_cursor_manager_class_init (GsdCursorManagerClass *klass)
{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ object_class->finalize = gsd_cursor_manager_finalize;
+
g_type_class_add_private (klass, sizeof (GsdCursorManagerPrivate));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]