[anjuta] tools: Create GSettings schema
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] tools: Create GSettings schema
- Date: Fri, 22 Oct 2010 14:14:20 +0000 (UTC)
commit ad2567ad935843fd2adec78827ed5bca0a1aa7ec
Author: Johannes Schmid <jhs gnome org>
Date: Fri Oct 22 16:14:06 2010 +0200
tools: Create GSettings schema
plugins/tools/Makefile.am | 4 ++++
plugins/tools/plugin.c | 5 +++--
2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/plugins/tools/Makefile.am b/plugins/tools/Makefile.am
index b321a2b..c5aa143 100644
--- a/plugins/tools/Makefile.am
+++ b/plugins/tools/Makefile.am
@@ -49,6 +49,10 @@ libanjuta_tools_la_SOURCES= \
variable.c \
variable.h
+prefs_ui_files = anjuta-tools.ui
+prefs_name = org.gnome.anjuta.tools
+include $(top_srcdir)/scripts/build-schemas.mk
+
EXTRA_DIST = \
$(plugin_in_files) \
$(tools_pixmaps_DATA) \
diff --git a/plugins/tools/plugin.c b/plugins/tools/plugin.c
index cca4118..cbaefb3 100644
--- a/plugins/tools/plugin.c
+++ b/plugins/tools/plugin.c
@@ -156,8 +156,9 @@ atp_plugin_dispose (GObject *obj)
{
/* Warning this function could be called several times */
ATPPlugin *this = ANJUTA_PLUGIN_ATP (obj);
- g_object_unref (this->settings);
-
+ if (this->settings)
+ g_object_unref (this->settings);
+ this->settings = NULL;
G_OBJECT_CLASS (parent_class)->dispose (obj);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]