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:
Hiroyuki Ito 2012-05-16 23:45:48 -04:00 committed by Matthias Clasen
parent f2da5f30c1
commit 276dae8ae6

View File

@ -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));
}