mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 09:23:24 +00: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:
parent
318342039d
commit
ea7e1bcc85
1 changed files with 7 additions and 1 deletions
|
@ -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) &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue