X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fgtksheet%2Fgsheetmodel.c;h=88e4e603aca33e59409b1b45423654c628de3671;hb=5707d31d616598bb6c572c3afe5be174d5784aae;hp=5af404641bb499ffaee172bc90627d1fea5f5249;hpb=176d797337156a8affdcacfb1dddf8a4de8c5545;p=pspp-builds.git diff --git a/lib/gtksheet/gsheetmodel.c b/lib/gtksheet/gsheetmodel.c index 5af40464..88e4e603 100644 --- a/lib/gtksheet/gsheetmodel.c +++ b/lib/gtksheet/gsheetmodel.c @@ -348,27 +348,6 @@ g_sheet_model_is_editable (const GSheetModel *model, row, column); } -/** - * g_sheet_model_is_visible: - * @sheet_model: A #GSheetModel - * @row: The row - * @column: The column - * - * Returns: TRUE if the cell is visible, FALSE otherwise - **/ -gboolean -g_sheet_model_is_visible (const GSheetModel *model, - glong row, glong column) -{ - g_return_val_if_fail (G_IS_SHEET_MODEL (model), TRUE); - - if ( ! G_SHEET_MODEL_GET_IFACE (model)->is_visible ) - return TRUE; - - return G_SHEET_MODEL_GET_IFACE (model)->is_visible (model, - row, column); -} - /** * g_sheet_model_get_foreground: @@ -505,7 +484,6 @@ g_sheet_model_get_row_count(const GSheetModel *model) { g_return_val_if_fail (G_IS_SHEET_MODEL (model), -1); - return G_SHEET_MODEL_GET_IFACE (model)->get_row_count (model); } @@ -515,6 +493,8 @@ g_sheet_model_get_row_count(const GSheetModel *model) gboolean g_sheet_model_get_column_sensitivity (const GSheetModel *model, gint col) { + g_return_val_if_fail (G_IS_SHEET_MODEL (model), FALSE); + if ( NULL == G_SHEET_MODEL_GET_IFACE (model)->get_column_sensitivity) return TRUE; @@ -553,6 +533,8 @@ GtkJustification g_sheet_model_get_column_justification (const GSheetModel *model, gint col) { + g_return_val_if_fail (G_IS_SHEET_MODEL (model), GTK_JUSTIFY_LEFT); + if ( G_SHEET_MODEL_GET_IFACE (model)->get_column_justification) return G_SHEET_MODEL_GET_IFACE (model)->get_column_justification (model, col); @@ -564,6 +546,8 @@ g_sheet_model_get_column_justification (const GSheetModel *model, gboolean g_sheet_model_get_row_sensitivity (const GSheetModel *model, gint row) { + g_return_val_if_fail (G_IS_SHEET_MODEL (model), FALSE); + if ( NULL == G_SHEET_MODEL_GET_IFACE (model)->get_row_sensitivity) return TRUE;