GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit 7daa7d08 authored by Michael Natterer's avatar Michael Natterer 😴

app: implement GimpConfig::serialize() in GimpFillOptions

so it doesn't inherit GimpContext's changed implementation.
parent 7a5d0810
......@@ -74,17 +74,25 @@ struct _GimpFillOptionsPrivate
GimpFillOptionsPrivate)
static void gimp_fill_options_set_property (GObject *object,
guint property_id,
const GValue *value,
GParamSpec *pspec);
static void gimp_fill_options_get_property (GObject *object,
guint property_id,
GValue *value,
GParamSpec *pspec);
static void gimp_fill_options_config_init (GimpConfigInterface *iface);
static void gimp_fill_options_set_property (GObject *object,
guint property_id,
const GValue *value,
GParamSpec *pspec);
static void gimp_fill_options_get_property (GObject *object,
guint property_id,
GValue *value,
GParamSpec *pspec);
G_DEFINE_TYPE (GimpFillOptions, gimp_fill_options, GIMP_TYPE_CONTEXT)
static gboolean gimp_fill_options_serialize (GimpConfig *config,
GimpConfigWriter *writer,
gpointer data);
G_DEFINE_TYPE_WITH_CODE (GimpFillOptions, gimp_fill_options, GIMP_TYPE_CONTEXT,
G_IMPLEMENT_INTERFACE (GIMP_TYPE_CONFIG,
gimp_fill_options_config_init))
static void
......@@ -130,6 +138,12 @@ gimp_fill_options_class_init (GimpFillOptionsClass *klass)
g_type_class_add_private (klass, sizeof (GimpFillOptionsPrivate));
}
static void
gimp_fill_options_config_init (GimpConfigInterface *iface)
{
iface->serialize = gimp_fill_options_serialize;
}
static void
gimp_fill_options_init (GimpFillOptions *options)
{
......@@ -196,6 +210,14 @@ gimp_fill_options_get_property (GObject *object,
}
}
static gboolean
gimp_fill_options_serialize (GimpConfig *config,
GimpConfigWriter *writer,
gpointer data)
{
return gimp_config_serialize_properties (config, writer);
}
/* public functions */
......
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