From: John Darrington Date: Fri, 28 Nov 2008 05:48:13 +0000 (+0900) Subject: Removed unsed is_visible from sheetmodel X-Git-Tag: v0.7.1~102 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14ba8c7acb15a1142cb13ac3708b17f0f11fb4bb;p=pspp-builds.git Removed unsed is_visible from sheetmodel --- diff --git a/lib/gtksheet/gsheetmodel.c b/lib/gtksheet/gsheetmodel.c index 55b22db8..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: diff --git a/lib/gtksheet/gsheetmodel.h b/lib/gtksheet/gsheetmodel.h index 792e6921..ffd21577 100644 --- a/lib/gtksheet/gsheetmodel.h +++ b/lib/gtksheet/gsheetmodel.h @@ -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, diff --git a/lib/gtksheet/gtksheet.c b/lib/gtksheet/gtksheet.c index 8e1e877a..7fec15d7 100644 --- a/lib/gtksheet/gtksheet.c +++ b/lib/gtksheet/gtksheet.c @@ -2631,9 +2631,6 @@ gtk_sheet_show_active_cell (GtkSheet *sheet) if ( ! text ) text = g_strdup (""); - gtk_entry_set_visibility (sheet_entry, attributes.is_visible); - - if ( GTK_IS_ENTRY (sheet_entry)) { const gchar *old_text = gtk_entry_get_text (GTK_ENTRY (sheet_entry)); @@ -5189,8 +5186,6 @@ gtk_sheet_get_attributes (const GtkSheet *sheet, gint row, gint col, attr->font_desc = GTK_WIDGET (sheet)->style->font_desc; attr->is_editable = g_sheet_model_is_editable (sheet->model, row, col); - attr->is_visible = g_sheet_model_is_visible (sheet->model, row, col); - colormap = gtk_widget_get_colormap (GTK_WIDGET (sheet)); fg = g_sheet_model_get_foreground (sheet->model, row, col); diff --git a/lib/gtksheet/gtksheet.h b/lib/gtksheet/gtksheet.h index 3d1e07df..75e21c98 100644 --- a/lib/gtksheet/gtksheet.h +++ b/lib/gtksheet/gtksheet.h @@ -67,7 +67,6 @@ struct _GtkSheetCellAttr GdkColor background; GtkSheetCellBorder border; gboolean is_editable; - gboolean is_visible; }; struct _GtkSheetHoverTitle diff --git a/src/ui/gui/psppire-data-store.c b/src/ui/gui/psppire-data-store.c index f3c22337..03e6e4c0 100644 --- a/src/ui/gui/psppire-data-store.c +++ b/src/ui/gui/psppire-data-store.c @@ -218,7 +218,6 @@ psppire_data_store_sheet_model_init (GSheetModelIface *iface) iface->set_string = psppire_data_store_set_string_wrapper; iface->clear_datum = psppire_data_store_clear_datum; iface->is_editable = NULL; - iface->is_visible = NULL; iface->get_foreground = NULL; iface->get_background = NULL; iface->get_font_desc = psppire_data_store_get_font_desc; diff --git a/src/ui/gui/psppire-var-store.c b/src/ui/gui/psppire-var-store.c index 1f963cab..7e005e39 100644 --- a/src/ui/gui/psppire-var-store.c +++ b/src/ui/gui/psppire-var-store.c @@ -324,7 +324,6 @@ psppire_var_store_sheet_model_init (GSheetModelIface *iface) iface->set_string = psppire_var_store_set_string; iface->clear_datum = psppire_var_store_clear; iface->is_editable = psppire_var_store_is_editable; - iface->is_visible = NULL; iface->get_foreground = psppire_var_store_get_foreground; iface->get_background = NULL; iface->get_font_desc = psppire_var_store_get_font_desc;