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.
This commit is contained in:
Michael Natterer 2016-12-06 19:24:11 +01:00
parent d226816100
commit c3510405c4
1 changed files with 6 additions and 2 deletions

View File

@ -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");
}