forked from AuroraMiddleware/gtk
Improve GtkColorButton behaviour
Select the current color of a GtkColorButton should be selected in the GtkColoroChooserDialog which is shown when the color button is clicked. https://bugzilla.gnome.org/show_bug.cgi?id=676198
This commit is contained in:
parent
f2da5f30c1
commit
276dae8ae6
@ -619,6 +619,9 @@ gtk_color_button_clicked (GtkButton *b)
|
||||
gtk_color_chooser_set_use_alpha (GTK_COLOR_CHOOSER (button->priv->cs_dialog),
|
||||
button->priv->use_alpha);
|
||||
|
||||
gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (button->priv->cs_dialog),
|
||||
&button->priv->rgba);
|
||||
|
||||
gtk_window_present (GTK_WINDOW (button->priv->cs_dialog));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user