summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2012-03-04 00:28:08 -0500
committerMatthias Clasen <mclasen@redhat.com>2012-03-04 00:29:04 -0500
commit5a8dba7eacc024f1b9893b1a42255b8c5af94bf0 (patch)
treeefbd366431bc8033ddba52c939c97cf82652832a /tests
parent912ad3b6989c9206fea95afe9a0fd03f8413db08 (diff)
downloadgtk+-5a8dba7eacc024f1b9893b1a42255b8c5af94bf0.tar.gz
colorchooser: Allow removing the palettes again
https://bugzilla.gnome.org/show_bug.cgi?id=671057
Diffstat (limited to 'tests')
-rw-r--r--tests/testcolorchooser.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/testcolorchooser.c b/tests/testcolorchooser.c
index fc06772bad..2ef8808083 100644
--- a/tests/testcolorchooser.c
+++ b/tests/testcolorchooser.c
@@ -84,6 +84,11 @@ main (int argc, char *argv[])
9, 9*9,
colors);
}
+ else if (g_strcmp0 (argv[i], "--no-palette") == 0)
+ {
+ gtk_color_chooser_add_palette (GTK_COLOR_CHOOSER (dialog),
+ FALSE, 0, NULL, 0);
+ }
}
g_signal_connect (dialog, "notify::color", G_CALLBACK (color_changed), NULL);