It derives from <GtkWidget>.
Opens a color chooser dialog to select a color.
It is suitable widget for selecting a color in a preference dialog.
colorbutton
╰── button.color
╰── [content]
<GtkColorDialogButton> has a single CSS
node with name colorbutton which contains a button node. To
differentiate it from a plain <GtkButton>, it gets
the .color style class.
The <GtkColorDialog> that contains parameters
for the color chooser dialog.
Its value is a <GtkColorDialog>, or #f.
Set it with (set! (color-dialog-button:dialog self) value).
The selected color.
This property can be set to give the button its initial color, and it will be updated to reflect the users choice in the color chooser dialog.
Listen to notify::rgba to get informed about changes to the
buttons color.
Its value is a <GdkRGBA>, or #f.
Set it with (set! (color-dialog-button:rgba self) value).
Returns the <GtkColorDialog> of self.
Passed: a <GtkColorDialogButton>.
Returned: a <GtkColorDialog>, or #f.
the <GtkColorDialog>
Returns the color of the button.
This function is what should be used to obtain the color that was chosen by the user. To get informed about changes, listen to "notify::rgba".
Passed: a <GtkColorDialogButton>.
Returned: a <GdkRGBA>.
the color
Creates a new <GtkColorDialogButton>
with the given <GtkColorDialog>.
You can pass NULL to this function and set a
<GtkColorDialog> later. The button will be
insensitive until that happens.
Passed, or left out: a <GtkColorDialog>, or
#f.
the <GtkColorDialog> to use
Returned: a <GtkWidget>.
the new <GtkColorDialogButton>
Sets a <GtkColorDialog> object to use for
creating the color chooser dialog that is presented when the user clicks
the button.
Passed: a <GtkColorDialogButton>.
Passed: a <GtkColorDialog>.
the new <GtkColorDialog>
Sets the color of the button.
Passed: a <GtkColorDialogButton>.
Passed: a <GdkRGBA>.
the new color
Connect a handler with (connect object
color-dialog-button:activate handler). It is called as (handler
self).
Emitted when the color dialog button is activated.
The ::activate signal on
<GtkColorDialogButton> is an action
signal and emitting it causes the button to pop up its dialog.
Passed: a <GtkColorDialogButton>.