GNOME Bugzilla – Bug 756192
colour button has no way to set its dialogue to editor mode
Last modified: 2016-01-27 02:30:15 UTC
GtkColorButton is used in gnome-terminal to edit the colour palette. However, by default the colour button pops up its GtkColorChooserDialog in palette mode, which is not what we want, since it means that to actually choose a colour the user has to again click on the "+" button. Now GtkColorChooserDialog has a property 'show-editor' which does what we want, but a) it cannot be set from GtkColorButton, and b) GtkColorChooserDialog always unsets the property on ::map. To fix the problem, GtkColorButton should gain a "show-editor" property and forward it to its GtkColorChooserDialog. (In the meantime, I will work around this in gnome-terminal with a gross hack.)
Are there any other cases where this behaviour would be needed?
I think that _most_ use cases of a colour button would want this direct access to setting a colour, and only few use cases would call for selecting the colour from a limited palette.
See bug 761005 for a use case
A use case for using the editor standlone, I should say, not for having the color button pop up the editor instead of the palette.
I've added a GtkColorButton::show-editor property for this now.