[gtk+/wip/colorchooser-v2: 61/77] Fill the custom palette up some more



commit 6eaa65b24b46a708f7a912d7617b0698006ab4fe
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Feb 8 22:04:49 2012 -0500

    Fill the custom palette up some more

 tests/testcolorchooser.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/testcolorchooser.c b/tests/testcolorchooser.c
index 5dffae4..84b857e 100644
--- a/tests/testcolorchooser.c
+++ b/tests/testcolorchooser.c
@@ -85,14 +85,14 @@ main (int argc, char *argv[])
         }
       else if (g_strcmp0 (argv[i], "--palette") == 0)
         {
-          const gchar *c[4] = { "red", "maroon", "yellow", "green" };
+          const gchar *c[9] = { "red", "maroon", "yellow", "green", "blue", "magenta", "DarkOliveGreen4", "khaki2", "thistle1" };
           GdkRGBA color;
-          GdkRGBA colors[36];
+          GdkRGBA colors[9*9];
           gint i,j;
           gdouble f[5] = { 0.2, 0.35, 0.5, 0.65, 0.8 };
 
           g_print ("setting custom palette\n");
-          for (i = 0; i < 4; i++)
+          for (i = 0; i < 9; i++)
             {
               gdk_rgba_parse (&color, c[i]);
               for (j = 0; j < 5; j++)
@@ -112,7 +112,7 @@ main (int argc, char *argv[])
             }
           gtk_color_chooser_add_palette (GTK_COLOR_CHOOSER (dialog),
                                          FALSE,
-                                         9, 36,
+                                         9, 9*9,
                                          colors);
         }
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]