Rework the API a bit

Rename get/set_color to get/set_rgba and show_alpha to use_alpha,
to match existing GtkColorButton API and let GtkColorButton implement
GtkColorChooser.
This commit is contained in:
Matthias Clasen
2012-02-03 18:34:33 -05:00
parent 1f68d7d827
commit c5cfb6e02b
11 changed files with 339 additions and 322 deletions

View File

@ -293,8 +293,8 @@ gtk_color_scale_class_init (GtkColorScaleClass *class)
}
void
gtk_color_scale_set_color (GtkColorScale *scale,
const GdkRGBA *color)
gtk_color_scale_set_rgba (GtkColorScale *scale,
const GdkRGBA *color)
{
scale->priv->color.red = color->red;
scale->priv->color.green = color->green;