Change bg_color and grid_color to an array of two colors
[pspp-builds.git] / lib / gtksheet / gtksheet.h
index 6aaa49a99c6ca388cf7d3776fa07a5c9ee100280..b61883689025044a86c079480e86afeccffc7dd1 100644 (file)
@@ -105,6 +105,13 @@ struct _GtkSheetHoverTitle
   gint row, column;
 };
 
+enum
+  {
+    BG_COLOR,
+    GRID_COLOR,
+    n_COLORS
+  };
+
 struct _GtkSheet
 {
   GtkBin parent;
@@ -122,9 +129,8 @@ struct _GtkSheet
   gboolean autoscroll;
   gboolean justify_entry;
 
-  /* Background colors */
-  GdkColor bg_color;
-  GdkColor grid_color;
+  /* Component colors */
+  GdkColor color[n_COLORS];
   gboolean show_grid;
 
   /* allocation rectangle after the container_border_width
@@ -299,13 +305,6 @@ void gtk_sheet_set_justify_entry  (GtkSheet *sheet, gboolean justify);
 
 gboolean gtk_sheet_justify_entry  (GtkSheet *sheet);
 
-/* Background colors */
-void gtk_sheet_set_background    (GtkSheet *sheet,
-                                        GdkColor *bg_color);
-
-void gtk_sheet_set_grid                  (GtkSheet *sheet,
-                                        GdkColor *grid_color);
-
 void gtk_sheet_show_grid         (GtkSheet *sheet,
                                         gboolean show);