if (row < 0 || col < 0) return FALSE;
+
attr->foreground = GTK_WIDGET (sheet)->style->black;
attr->background = sheet->color[BG_COLOR];
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);
if ( fg )
attr->background = *bg;
}
+ attr->justification =
+ g_sheet_column_get_justification (sheet->column_geometry, col);
+
j = g_sheet_model_get_justification (sheet->model, row, col);
- attr->justification = j ? *j : GTK_JUSTIFY_LEFT;
+ if (j)
+ attr->justification = *j;
font_desc = g_sheet_model_get_font_desc (sheet->model, row, col);
if ( font_desc ) attr->font_desc = font_desc;
pspec);
}
-#define DISABLED_COLOR "pink"
+#define DISABLED_COLOR "gray"
+
static void
psppire_var_store_init (PsppireVarStore *var_store)
{
}
-static const GdkColor *
+static GdkColor *
psppire_var_store_get_foreground (const GSheetModel *model, glong row, glong column)
{
PsppireVarStore *store = PSPPIRE_VAR_STORE (model);
iface->get_background = NULL;
iface->get_font_desc = psppire_var_store_get_font_desc;
iface->get_cell_border = NULL;
+ iface->get_justification = NULL;
}
iface->get_button_label = geometry_get_button_label;
}
-
-