Commit 403cb349 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

app/config/gimpbaseconfig.c app/config/gimpcoreconfig.c

2002-02-08  Sven Neumann  <sven@gimp.org>

	* app/config/gimpbaseconfig.c
	* app/config/gimpcoreconfig.c
	* app/config/gimpdisplayconfig.c
	* app/config/gimpguiconfig.c: added missing finalizers.
parent 6186a0c6
2002-02-08 Sven Neumann <sven@gimp.org>
* app/config/gimpbaseconfig.c
* app/config/gimpcoreconfig.c
* app/config/gimpdisplayconfig.c
* app/config/gimpguiconfig.c: added missing finalizers.
2002-02-07 Nathan Summers <rock@gimp.org>
 
* app/tools/gimptoolmodule.[ch]: New class that uses GTypeModule to
......
......@@ -32,6 +32,7 @@
static void gimp_base_config_class_init (GimpBaseConfigClass *klass);
static void gimp_base_config_finalize (GObject *object);
static void gimp_base_config_set_property (GObject *object,
guint property_id,
const GValue *value,
......@@ -53,6 +54,8 @@ enum
PROP_INTERPOLATION_TYPE,
};
static GObjectClass *parent_class = NULL;
GType
gimp_base_config_get_type (void)
......@@ -87,8 +90,11 @@ gimp_base_config_class_init (GimpBaseConfigClass *klass)
{
GObjectClass *object_class;
parent_class = g_type_class_peek_parent (klass);
object_class = G_OBJECT_CLASS (klass);
object_class->finalize = gimp_base_config_finalize;
object_class->set_property = gimp_base_config_set_property;
object_class->get_property = gimp_base_config_get_property;
......@@ -114,6 +120,19 @@ gimp_base_config_class_init (GimpBaseConfigClass *klass)
GIMP_LINEAR_INTERPOLATION);
}
static void
gimp_base_config_finalize (GObject *object)
{
GimpBaseConfig *base_config;
base_config = GIMP_BASE_CONFIG (object);
g_free (base_config->temp_path);
g_free (base_config->swap_path);
G_OBJECT_CLASS (parent_class)->finalize (object);
}
static void
gimp_base_config_set_property (GObject *object,
guint property_id,
......
......@@ -33,6 +33,7 @@
static void gimp_core_config_class_init (GimpCoreConfigClass *klass);
static void gimp_core_config_finalize (GObject *object);
static void gimp_core_config_set_property (GObject *object,
guint property_id,
const GValue *value,
......@@ -46,6 +47,7 @@ enum
{
PROP_0,
PROP_PLUG_IN_PATH,
PROP_TOOL_PLUG_IN_PATH,
PROP_MODULE_PATH,
PROP_BRUSH_PATH,
PROP_PATTERN_PATH,
......@@ -70,10 +72,11 @@ enum
PROP_WRITE_THUMBNAILS,
PROP_GAMMA_CORRECTION,
PROP_INSTALL_COLORMAP,
PROP_MIN_COLORS,
PROP_TOOL_PLUG_IN_PATH
PROP_MIN_COLORS
};
static GObjectClass *parent_class = NULL;
GType
gimp_core_config_get_type (void)
......@@ -108,8 +111,11 @@ gimp_core_config_class_init (GimpCoreConfigClass *klass)
{
GObjectClass *object_class;
parent_class = g_type_class_peek_parent (klass);
object_class = G_OBJECT_CLASS (klass);
object_class->finalize = gimp_core_config_finalize;
object_class->set_property = gimp_core_config_set_property;
object_class->get_property = gimp_core_config_get_property;
......@@ -197,6 +203,31 @@ gimp_core_config_class_init (GimpCoreConfigClass *klass)
27, 256, 144);
}
static void
gimp_core_config_finalize (GObject *object)
{
GimpCoreConfig *core_config;
core_config = GIMP_CORE_CONFIG (object);
g_free (core_config->plug_in_path);
g_free (core_config->tool_plug_in_path);
g_free (core_config->module_path);
g_free (core_config->brush_path);
g_free (core_config->pattern_path);
g_free (core_config->palette_path);
g_free (core_config->gradient_path);
g_free (core_config->default_brush);
g_free (core_config->default_pattern);
g_free (core_config->default_palette);
g_free (core_config->default_gradient);
g_free (core_config->default_comment);
g_free (core_config->plug_in_rc_path);
g_free (core_config->module_load_inhibit);
G_OBJECT_CLASS (parent_class)->finalize (object);
}
static void
gimp_core_config_set_property (GObject *object,
guint property_id,
......
......@@ -33,6 +33,7 @@
static void gimp_display_config_class_init (GimpDisplayConfigClass *klass);
static void gimp_display_config_finalize (GObject *object);
static void gimp_display_config_set_property (GObject *object,
guint property_id,
const GValue *value,
......@@ -61,6 +62,8 @@ enum
PROP_MONITOR_RES_FROM_GDK
};
static GObjectClass *parent_class = NULL;
GType
gimp_display_config_get_type (void)
......@@ -95,8 +98,11 @@ gimp_display_config_class_init (GimpDisplayConfigClass *klass)
{
GObjectClass *object_class;
parent_class = g_type_class_peek_parent (klass);
object_class = G_OBJECT_CLASS (klass);
object_class->finalize = gimp_display_config_finalize;
object_class->set_property = gimp_display_config_set_property;
object_class->get_property = gimp_display_config_get_property;
......@@ -144,6 +150,18 @@ gimp_display_config_class_init (GimpDisplayConfigClass *klass)
TRUE);
}
static void
gimp_display_config_finalize (GObject *object)
{
GimpDisplayConfig *display_config;
display_config = GIMP_DISPLAY_CONFIG (object);
g_free (display_config->image_title_format);
G_OBJECT_CLASS (parent_class)->finalize (object);
}
static void
gimp_display_config_set_property (GObject *object,
guint property_id,
......
......@@ -33,6 +33,7 @@
static void gimp_gui_config_class_init (GimpGuiConfigClass *klass);
static void gimp_gui_config_finalize (GObject *object);
static void gimp_gui_config_set_property (GObject *object,
guint property_id,
const GValue *value,
......@@ -68,6 +69,8 @@ enum
PROP_USE_HELP
};
static GObjectClass *parent_class = NULL;
GType
gimp_gui_config_get_type (void)
......@@ -102,8 +105,11 @@ gimp_gui_config_class_init (GimpGuiConfigClass *klass)
{
GObjectClass *object_class;
parent_class = g_type_class_peek_parent (klass);
object_class = G_OBJECT_CLASS (klass);
object_class->finalize = gimp_gui_config_finalize;
object_class->set_property = gimp_gui_config_set_property;
object_class->get_property = gimp_gui_config_get_property;
......@@ -172,6 +178,19 @@ gimp_gui_config_class_init (GimpGuiConfigClass *klass)
TRUE);
}
static void
gimp_gui_config_finalize (GObject *object)
{
GimpGuiConfig *gui_config;
gui_config = GIMP_GUI_CONFIG (object);
g_free (gui_config->theme_path);
g_free (gui_config->theme);
G_OBJECT_CLASS (parent_class)->finalize (object);
}
static void
gimp_gui_config_set_property (GObject *object,
guint property_id,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment