The
gtk-color-selection-dialog widget provides a standard dialog
which allows the user to select a color much like the
gtk-file-chooser-dialog widget provides a standard dialog for file
selection.
Use the function
gtk-color-selection-dialog-color-selection to get the
gtk-color-selection widget contained within the dialog. Use this widget and its function
gtk-color-selection-current-color to gain
access to the selected color. Connect a handler for the "color-changed"
signal of the widget to be notified when the color changes.
GtkColorSelectionDialog as GtkBuildable
The
gtk-color-selection-dialog implementation of the
gtk-buildable interface exposes the embedded
gtk-color-selection widget as internal child with the name
color_selection. It also exposes the buttons with the names
ok_button,
cancel_button and
help_button.
Warning
The
gtk-color-selection-dialog widget is deprecated since GTK 3.4 and
should not be used in newly written code. Use the
gtk-color-chooser-dialog widget instead.