The ColorChooserWidget is used when the colour selection widget is to be embedded in a :doc:`window` or :doc:`dialog`.
Note
Internally, the ColorChooserWidget uses the :doc:`colorchooser` object to perform actions such as retrieving the selected colour. See the ColorChooser page for further methods.
Construction of the ColorChooserWidget is made by:
GtkWidget *colorchooserwidget = gtk_color_chooser_widget_new();
Below is an example of a ColorChooserWidget:
.. literalinclude:: _examples/colorchooserwidget.c
Download: :download:`ColorChooserWidget <_examples/colorchooserwidget.c>`