API: colorchooser: Use GtkOrientation for orientation

Unfortunately, this swaps the values from the previous state.
But it's definitely a nicer API.
This commit is contained in:
Benjamin Otte
2012-03-07 03:07:02 +01:00
parent b83dcc26ad
commit 4d6a6be897
6 changed files with 16 additions and 16 deletions

View File

@ -80,14 +80,14 @@ main (int argc, char *argv[])
}
}
gtk_color_chooser_add_palette (GTK_COLOR_CHOOSER (dialog),
FALSE,
GTK_ORIENTATION_VERTICAL,
9, 9*9,
colors);
}
else if (g_strcmp0 (argv[i], "--no-palette") == 0)
{
gtk_color_chooser_add_palette (GTK_COLOR_CHOOSER (dialog),
FALSE, 0, 0, NULL);
GTK_ORIENTATION_VERTICAL, 0, 0, NULL);
}
}