Commit c3510405 authored by Michael Natterer's avatar Michael Natterer 😴

app: make sure fg, bg, brush, pattern etc. changes don't write gimprc

gimp_dialog_config_fill,stroke_options_notify(): ignore notifications
on the fill and stroke option's parent class properties, they are not
serialized and completely irrelevent here.
parent d2268161
......@@ -919,7 +919,9 @@ gimp_dialog_config_fill_options_notify (GObject *object,
GParamSpec *pspec,
gpointer data)
{
g_object_notify (G_OBJECT (data), "fill-options");
/* ignore notifications on parent class properties such as fg/bg */
if (pspec->owner_type == G_TYPE_FROM_INSTANCE (object))
g_object_notify (G_OBJECT (data), "fill-options");
}
static void
......@@ -927,5 +929,7 @@ gimp_dialog_config_stroke_options_notify (GObject *object,
GParamSpec *pspec,
gpointer data)
{
g_object_notify (G_OBJECT (data), "stroke-options");
/* see above */
if (pspec->owner_type == G_TYPE_FROM_INSTANCE (object))
g_object_notify (G_OBJECT (data), "stroke-options");
}
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