cleanup document option to cleanup unused swatches

Bug #1177888 reported by insaner
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Wishlist
insaner

Bug Description

given the current (r12319) implementation of swatches, a user (such as myself) might end up with a barrage of duplicate unused swatches, so cleaning these up with a "document cleanup" (used to be vacuum defs) would be really useful. this was removed in 9551 (cf bug #594445 ), and for good reason (you dont always want to remove all your unused swatches). so i went ahead and created a patch to have an option to allow for a cleanup of the swatches, even during a single instance of editing a doc (ie, you dont have to restart inkscape to do it.. you can just enable it, cleanup, and then disable it again).

 it stores the option in the preferences.xml file and has a default value of "do not cleanup swatches" (ie, "false")

please test the patch and let me know what you think

Revision history for this message
insaner (insaner) wrote :
jazzynico (jazzynico)
Changed in inkscape:
assignee: nobody → insaner (insaner)
importance: Undecided → Wishlist
status: New → In Progress
tags: added: color preferences
Revision history for this message
jazzynico (jazzynico) wrote :

Option tested successfully on Windows XP, Inkscape trunk revision 12322.
I have a doubt on the option location in the preferences dialog, but can't find a better location for now.

Revision history for this message
insaner (insaner) wrote :

awesome, thanks jazzynico.

 i'll check in, and if someone finds a better place for the option, we can do that in another bug.

Revision history for this message
insaner (insaner) wrote :

checked in as revision 12333

Changed in inkscape:
status: In Progress → Fix Released
jazzynico (jazzynico)
Changed in inkscape:
milestone: none → 0.49
status: Fix Released → Fix Committed
Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.