[gnome-control-center] mouse: Implement dispose for the widget
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] mouse: Implement dispose for the widget
- Date: Wed, 16 Mar 2011 13:48:53 +0000 (UTC)
commit 4c2fcca2f69273999c9d00ef9edb367db477cb27
Author: Bastien Nocera <hadess hadess net>
Date: Wed Mar 16 13:17:22 2011 +0000
mouse: Implement dispose for the widget
panels/mouse/gnome-mouse-properties.c | 13 +++++++++++++
panels/mouse/gnome-mouse-properties.h | 1 +
2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/panels/mouse/gnome-mouse-properties.c b/panels/mouse/gnome-mouse-properties.c
index 5dc7d90..09f7b4f 100644
--- a/panels/mouse/gnome-mouse-properties.c
+++ b/panels/mouse/gnome-mouse-properties.c
@@ -397,3 +397,16 @@ gnome_mouse_properties_init (GtkBuilder *dialog)
return dialog_win;
}
+
+void
+gnome_mouse_properties_dispose (GtkWidget *widget)
+{
+ if (mouse_settings != NULL) {
+ g_object_unref (mouse_settings);
+ mouse_settings = NULL;
+ }
+ if (touchpad_settings != NULL) {
+ g_object_unref (touchpad_settings);
+ touchpad_settings = NULL;
+ }
+}
diff --git a/panels/mouse/gnome-mouse-properties.h b/panels/mouse/gnome-mouse-properties.h
index cb5c287..c7446fd 100644
--- a/panels/mouse/gnome-mouse-properties.h
+++ b/panels/mouse/gnome-mouse-properties.h
@@ -26,4 +26,5 @@
#include <gtk/gtk.h>
GtkWidget *gnome_mouse_properties_init (GtkBuilder *dialog);
+void gnome_mouse_properties_dispose (GtkWidget *widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]