| Top |
GObject
╰── GInitiallyUnowned
╰── GtkWidget
╰── GtkContainer
╰── GtkBin
╰── GtkWindow
╰── GtkDialog
╰── GwyColorDialog
GwyColorDialog is a colour editing dialog which can be used to adjust a colour.
The dialog has no settings and signals itself. Use gwy_color_dialog_get_editor() to obtain the contained
GwyColorEditor, set it up directly and connect to its signals.
GtkWidget * gwy_color_dialog_new (GtkWindow *parent,gboolean modal);
Creates a colour editor dialog.
If a parent window is given the dialog is set transient for it and is set to destruct with it.
A modal dialog has OK and Cancel buttons and it is supposed to be run with gtk_dialog_run(), after which it will
selfdestruct. When the dialog is cancelled or closed it reverts the colour to the editor's previous colour.
A persistent dialog does not have buttons and simply exists until destroyed.
GtkWidget *
gwy_color_dialog_get_editor (GwyColorDialog *dialog);
Gets the editor widget of a colour editor dialog.