summaryrefslogtreecommitdiff
path: root/gtk/gtkcolorchooser.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-03-07 03:07:02 +0100
committerBenjamin Otte <otte@redhat.com>2012-03-07 03:11:05 +0100
commit4d6a6be89795b7905f650a93b8e80beb1dc46747 (patch)
tree988ec04412450abcad965204948e35c6c214271f /gtk/gtkcolorchooser.c
parentb83dcc26ad8079c621c7212359599a956807f96d (diff)
downloadgtk+-4d6a6be89795b7905f650a93b8e80beb1dc46747.tar.gz
API: colorchooser: Use GtkOrientation for orientation
Unfortunately, this swaps the values from the previous state. But it's definitely a nicer API.
Diffstat (limited to 'gtk/gtkcolorchooser.c')
-rw-r--r--gtk/gtkcolorchooser.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkcolorchooser.c b/gtk/gtkcolorchooser.c
index 869f73bc0f..532fcd3618 100644
--- a/gtk/gtkcolorchooser.c
+++ b/gtk/gtkcolorchooser.c
@@ -201,8 +201,8 @@ gtk_color_chooser_set_use_alpha (GtkColorChooser *chooser,
/**
* gtk_color_chooser_add_palette:
* @chooser: a #GtkColorChooser
- * @horizontal: %TRUE if the palette should be displayed in rows,
- * %FALSE for columns
+ * @orientation: %GTK_ORIENTATION_HORIZONTAL if the palette should
+ * be displayed in rows, %GTK_ORIENTATION_VERTICAL for columns
* @colors_per_line: the number of colors to show in each row/column
* @n_colors: the total number of elements in @colors
* @colors: (allow-none) (array length=n_colors): the colors of the palette, or %NULL
@@ -229,7 +229,7 @@ gtk_color_chooser_set_use_alpha (GtkColorChooser *chooser,
*/
void
gtk_color_chooser_add_palette (GtkColorChooser *chooser,
- gboolean horizontal,
+ GtkOrientation orientation,
gint colors_per_line,
gint n_colors,
GdkRGBA *colors)
@@ -237,7 +237,7 @@ gtk_color_chooser_add_palette (GtkColorChooser *chooser,
g_return_if_fail (GTK_IS_COLOR_CHOOSER (chooser));
if (GTK_COLOR_CHOOSER_GET_IFACE (chooser)->add_palette)
- GTK_COLOR_CHOOSER_GET_IFACE (chooser)->add_palette (chooser, horizontal, colors_per_line, n_colors, colors);
+ GTK_COLOR_CHOOSER_GET_IFACE (chooser)->add_palette (chooser, orientation, colors_per_line, n_colors, colors);
}
cairo_pattern_t *