After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 521069 - some tool options not being saved or restored for some tools
some tool options not being saved or restored for some tools
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Tools
2.4.x
Other All
: Normal normal
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2008-03-07 19:34 UTC by victor short
Modified: 2008-10-30 20:10 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description victor short 2008-03-07 19:34:09 UTC
Please describe the problem:
the following tools are not having the following options saved.

Fuzzy Select tool is not remembering its antialiasing setting (won't stay off)
Free Select tool is also not remembering its antialiasing setting (won't stay off)


Steps to reproduce:
1. Make sure to set gimp to remember tool options: File -> Preferences -> Tool Options -> Save tool options on exit
2. Activate Fuzzy Select (or Free Select) and turn off antialiasing.
3. Close gimp and restart.


Actual results:
The tools antialiasing will have forgotten its settings and antialiasing will be turned back on.

Expected results:
The antialiasing setting would remain off.

Does this happen every time?
yes

Other information:
Comment 1 Sven Neumann 2008-03-08 13:33:02 UTC
Is the value stored in ~/.gimp-2.4/tool-options/gimp-fuzzy-select-tool ?
Comment 2 victor short 2008-03-08 23:04:34 UTC
What I have found happening in the file 
~/.gimp-2.4/tool-options/gimp-fuzzy-select-tool:

-when antialiasing is on an (antialias yes) line is added to the config file

-when antialiasing is off the config file will have no antialias line.

-if the config file has no antialias line the gimp will turn on antialiasing.

-if you manually add an (antialiasing no) line the gimp will start with antialiasing off, but on quit will remove the line from the config file and on restart will turn antialiasing back on.
Comment 3 Michael Natterer 2008-03-09 14:52:04 UTC
This is a bug in how we mistreat the selecion option's antialias
GParamSpec. Will fix that.
Comment 4 Michael Natterer 2008-03-09 17:44:23 UTC
Fixed in SVN trunk, leaving open because I'm working on the backport.

2008-03-09  Michael Natterer  <mitch@gimp.org>

	Fix mishandling of the "antialias" GParamSpec. Fixes bug #521069:

	* app/tools/gimpselectionoptions.c: remove
	gimp_selection_options_reset() which used to set the default for
	"antialias" depending on the tool type (which is impossible since
	the antialias GParamSpec only exists once, and not once for each
	subclass).

	* app/tools/gimpforegroundselectoptions.c: override the antialias
	property here and default to FALSE.
Comment 5 Michael Natterer 2008-03-09 18:44:41 UTC
Fixed in 2.4, closing as FIXED.

2008-03-09  Michael Natterer  <mitch@gimp.org>

	Merged from trunk (slightly modified):

	Fix mishandling of the "antialias" GParamSpec. Fixes bug #521069:

	* app/tools/gimpselectionoptions.c (gimp_selection_options_reset):
	don't set the default for "antialias" depending on the tool
	type (which is impossible since the antialias GParamSpec only
	exists once, and not once for each subclass).

	* app/tools/gimpforegroundselectoptions.c: override the antialias
	property here and default to FALSE.