[Gimp-developer] adding option to crop tool

2004-09-29 Thread Olivier
Hi all, I'm trying to create a patch to fix several feature requests about the crop tool. However, after adding my first option to the crop tool info window, I get these messages during startup: (gimp-2.1:11796): GLib-GObject-CRITICAL **: file genums.c: line 402 (g_value_get_enum): assertion

Re: [Gimp-developer] adding option to crop tool

2004-09-29 Thread Olivier
On Wed, Sep 29, 2004 at 04:15:46PM +0200, Sven Neumann wrote: You should show us your code if you want us to help you. what is the policy towards attachments on this list? If allowed I'll attach the file, for now I'll list my changes: -- in gimpcropoptions.h added a gboolean to the struct:

Re: [Gimp-developer] adding option to crop tool

2004-09-29 Thread Sven Neumann
Hi, [EMAIL PROTECTED] (Olivier) writes: -- added to gimp_crop_options_set_property: case PROP_BLANK_OUTER_REGION: options-blank_outer_region = g_value_get_enum (value); break; -- added to gimp_crop_options_get_property: case PROP_BLANK_OUTER_REGION:

Re: [Gimp-developer] adding option to crop tool

2004-09-29 Thread Dave Neary
Hi, Quoting Olivier [EMAIL PROTECTED]: snip gboolean blank_outer_region; snip GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_BLANK_OUTER_REGION, blank-outer-region, NULL, FALSE,

Re: [Gimp-developer] adding option to crop tool

2004-09-29 Thread Olivier
On Wed, Sep 29, 2004 at 06:19:15PM +0200, Dave Neary wrote: Hi, Quoting Olivier [EMAIL PROTECTED]: snip gboolean blank_outer_region; snip GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_BLANK_OUTER_REGION, blank-outer-region, NULL,