X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fsheet%2Fpsppire-sheetmodel.c;h=a948d4535d6b7c8693aa48506fe1880cff9e7f8c;hb=4612957073c41b6f15e8b36de14f43fb40cd9bfb;hp=61b667d41aa4c27ccf4e7d1ff7e73eb35614c04f;hpb=b16fdbecf0fb0ffc27b7d77e92c62e7f847c7248;p=pspp-builds.git diff --git a/src/ui/gui/sheet/psppire-sheetmodel.c b/src/ui/gui/sheet/psppire-sheetmodel.c index 61b667d4..a948d453 100644 --- a/src/ui/gui/sheet/psppire-sheetmodel.c +++ b/src/ui/gui/sheet/psppire-sheetmodel.c @@ -1,5 +1,5 @@ /* PsppireSheetModel --- an abstract model for the PsppireSheet widget. - * Copyright (C) 2006, 2008 Free Software Foundation + Copyright (C) 2006, 2008 Free Software Foundation This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -482,6 +482,8 @@ psppire_sheet_model_get_column_button (const PsppireSheetModel *model, if ( PSPPIRE_SHEET_MODEL_GET_IFACE (model)->get_column_title) button->label = PSPPIRE_SHEET_MODEL_GET_IFACE (model)->get_column_title (model, col); + button->overstruck = FALSE; + return button; } @@ -534,7 +536,12 @@ psppire_sheet_model_get_row_button (const PsppireSheetModel *model, g_return_val_if_fail (PSPPIRE_IS_SHEET_MODEL (model), NULL); if ( PSPPIRE_SHEET_MODEL_GET_IFACE (model)->get_row_title) - button->label = PSPPIRE_SHEET_MODEL_GET_IFACE (model)->get_row_title (model, row); + button->label = + PSPPIRE_SHEET_MODEL_GET_IFACE (model)->get_row_title (model, row); + + if ( PSPPIRE_SHEET_MODEL_GET_IFACE (model)->get_row_overstrike) + button->overstruck = + PSPPIRE_SHEET_MODEL_GET_IFACE (model)->get_row_overstrike (model, row); return button; }