GNOME Bugzilla – Bug 671057
colorchooser can't remove palette
Last modified: 2012-03-04 05:28:49 UTC
Once added with gtk_color_chooser_add_palette, there doesn't appear to be a way to remove the palette(s) again. Maybe do this when passed colours=NULL, n_colors=0 ?
Oh, I think I had been meaning to do that (add some special parameter combination to mean 'reset'). Patch welcome.
Reset to no palettes at all, or to the builtin stock palette?
No palette at all, I guess ?
Created attachment 208864 [details] [review] colorchooser: Allow removing the palettes again
Review of attachment 208864 [details] [review]: Looks ok. The --no-palette option seems dubious though :-)
The following fixes have been pushed: 5a8dba7 colorchooser: Allow removing the palettes again 912ad3b Break out press-and-hold code as its own object
Created attachment 208937 [details] [review] colorchooser: Allow removing the palettes again
Created attachment 208938 [details] [review] Break out press-and-hold code as its own object