mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-10-06 05:22:40 +02:00
libgimpconfig: fixing resetting GeglColor and GimpUnit properties to default values.
After fixing GeglColor arguments in filters, I realized that these parameters cannot even be resetted (button "Reset" of GEGL filters).
This commit is contained in:
@@ -21,9 +21,12 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <cairo.h>
|
||||
#include <gdk-pixbuf/gdk-pixbuf.h>
|
||||
#include <gio/gio.h>
|
||||
|
||||
#include "libgimpbase/gimpbase.h"
|
||||
#include "libgimpcolor/gimpcolor.h"
|
||||
|
||||
#include "gimpconfigtypes.h"
|
||||
|
||||
@@ -299,7 +302,10 @@ gimp_config_reset_properties (GObject *object)
|
||||
if ((prop_spec->flags & G_PARAM_WRITABLE) &&
|
||||
! (prop_spec->flags & G_PARAM_CONSTRUCT_ONLY))
|
||||
{
|
||||
if (G_IS_PARAM_SPEC_OBJECT (prop_spec))
|
||||
if (G_IS_PARAM_SPEC_OBJECT (prop_spec) &&
|
||||
! GIMP_IS_PARAM_SPEC_COLOR (prop_spec) &&
|
||||
! GEGL_IS_PARAM_SPEC_COLOR (prop_spec) &&
|
||||
! GIMP_IS_PARAM_SPEC_UNIT (prop_spec))
|
||||
{
|
||||
if ((prop_spec->flags & GIMP_CONFIG_PARAM_SERIALIZE) &&
|
||||
(prop_spec->flags & GIMP_CONFIG_PARAM_AGGREGATE) &&
|
||||
|
Reference in New Issue
Block a user