This change allows finding a stock-id speculatively, without having a
variable on hand.
}
const char *
-get_var_align_stock_id (const struct variable *var)
+get_var_align_stock_id (enum alignment alignment)
{
- switch (var_get_alignment (var))
+ switch (alignment)
{
case ALIGN_LEFT:
return GTK_STOCK_JUSTIFY_LEFT;
"editable", TRUE,
NULL);
else
- g_object_set (cell, "stock-id", get_var_align_stock_id (var), NULL);
+ g_object_set (cell, "stock-id",
+ get_var_align_stock_id (var_get_alignment (var)), NULL);
break;
case VS_MEASURE: