cleanup document option to cleanup unused swatches

Bug #1177888 reported by insaner on 2013-05-08
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
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

insaner (insaner) wrote :
jazzynico (jazzynico) on 2013-05-10
Changed in inkscape:
assignee: nobody → insaner (insaner)
importance: Undecided → Wishlist
status: New → In Progress
tags: added: color preferences
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.

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.

insaner (insaner) wrote :

checked in as revision 12333

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

Other bug subscribers