[gnome-control-center] wacom: Clean up settings on destruction
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] wacom: Clean up settings on destruction
- Date: Fri, 26 Aug 2011 10:36:25 +0000 (UTC)
commit dcd5ecac6932f34faedb581a233c94c55f5c2065
Author: Bastien Nocera <hadess hadess net>
Date: Fri Aug 26 10:48:50 2011 +0100
wacom: Clean up settings on destruction
panels/wacom/cc-wacom-panel.c | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/panels/wacom/cc-wacom-panel.c b/panels/wacom/cc-wacom-panel.c
index 749e22b..107db42 100644
--- a/panels/wacom/cc-wacom-panel.c
+++ b/panels/wacom/cc-wacom-panel.c
@@ -330,6 +330,24 @@ cc_wacom_panel_dispose (GObject *object)
priv->builder = NULL;
}
+ if (priv->wacom_settings)
+ {
+ g_object_unref (priv->wacom_settings);
+ priv->wacom_settings = NULL;
+ }
+
+ if (priv->stylus_settings)
+ {
+ g_object_unref (priv->stylus_settings);
+ priv->stylus_settings = NULL;
+ }
+
+ if (priv->eraser_settings)
+ {
+ g_object_unref (priv->eraser_settings);
+ priv->eraser_settings = NULL;
+ }
+
G_OBJECT_CLASS (cc_wacom_panel_parent_class)->dispose (object);
}
@@ -413,7 +431,6 @@ cc_wacom_panel_init (CcWacomPanel *self)
gtk_image_set_from_file (GTK_IMAGE (WID ("image-tablet")), PIXMAP_DIR "/wacom-tablet.png");
gtk_image_set_from_file (GTK_IMAGE (WID ("image-stylus")), PIXMAP_DIR "/wacom-stylus.png");
-
grid = WID ("main-grid");
gtk_widget_reparent (grid, GTK_WIDGET (self));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]