colorchooser: Fix default palette orientation

The switch from boolean to orientation failed to account
for the default palette.
This commit is contained in:
Matthias Clasen 2012-03-07 21:12:32 -05:00
parent 858a654676
commit 33004cb5e6

View File

@ -473,12 +473,12 @@ add_default_palette (GtkColorChooserWidget *cc)
for (j = 0; j < 3; j++)
gdk_rgba_parse (&colors[i*3 + j], default_colors[i][j]);
add_palette (cc, FALSE, 3, 9*3, colors, color_names);
add_palette (cc, GTK_ORIENTATION_VERTICAL, 3, 9*3, colors, color_names);
for (i = 0; i < 9; i++)
gdk_rgba_parse (&colors[i], default_grays[i]);
add_palette (cc, TRUE, 9, 9, colors, gray_names);
add_palette (cc, GTK_ORIENTATION_HORIZONTAL, 9, 9, colors, gray_names);
cc->priv->has_default_palette = TRUE;
}