Fix problem redrawing old active cell
[pspp-builds.git] / lib / gtksheet / gsheetmodel.h
index eb661c99c267a88d0c330eab96297ae621948b30..510c92e9fcf5d3ae7a9a73051f4c2719e6848803 100644 (file)
@@ -51,8 +51,8 @@ typedef struct _GtkSheetCellBorder     GtkSheetCellBorder;
 
 struct _GtkSheetRange
 {
-  glong row0, col0; /* upper-left cell */
-  glong rowi, coli; /* lower-right cell */
+  gint row0, col0; /* upper-left cell */
+  gint rowi, coli; /* lower-right cell */
 };
 
 struct _GtkSheetCellBorder
@@ -106,7 +106,6 @@ struct _GSheetModelIface
   gboolean  (* clear_datum) (GSheetModel *sheet_model,
                             glong row, glong column);
 
-  gboolean (* is_visible) (const GSheetModel *sheet_model, glong row, glong column);
   gboolean (* is_editable) (const GSheetModel *sheet_model, glong row, glong column);
 
   GdkColor *  (* get_foreground) (const GSheetModel *sheet_model,
@@ -128,9 +127,9 @@ struct _GSheetModelIface
 
   /* column related metadata */
 
-  gchar * (*get_column_title) (const GSheetModel *mode, gint col);
-  gchar * (*get_column_subtitle) (const GSheetModel *mode, gint col);
-  gboolean * (*get_column_sensitivity) (const GSheetModel *mode, gint col);
+  gchar * (*get_column_title) (const GSheetModel *, gint col);
+  gchar * (*get_column_subtitle) (const GSheetModel *, gint col);
+  gboolean (*get_column_sensitivity) (const GSheetModel *, gint col);
   GtkJustification (*get_column_justification) (const GSheetModel *mode, gint col);
   const GtkSheetButton * (* get_button) (const GSheetModel *model, gint col);
 
@@ -138,7 +137,10 @@ struct _GSheetModelIface
 
 
   /* row related metadata */
+  gchar * (*get_row_title) (const GSheetModel *, gint row);
+  gchar * (*get_row_subtitle) (const GSheetModel *, gint row);
   glong (*get_row_count) (const GSheetModel *model);
+  gboolean (*get_row_sensitivity) (const GSheetModel *, gint row);
 };
 
 
@@ -217,6 +219,20 @@ GtkSheetButton * g_sheet_model_get_column_button (const GSheetModel *, gint);
 GtkJustification g_sheet_model_get_column_justification (const GSheetModel *,
                                                         gint);
 
+\f
+
+gboolean g_sheet_model_get_row_sensitivity (const GSheetModel *model,
+                                           gint row);
+
+
+gchar * g_sheet_model_get_row_subtitle (const GSheetModel *model,
+                                           gint row);
+
+
+GtkSheetButton * g_sheet_model_get_row_button (const GSheetModel *, gint);
+
+
+
 
 G_END_DECLS