{
g_return_if_fail (PSPP_IS_SHEET_VIEW_COLUMN (tree_column));
- expand = expand?TRUE:FALSE;
+ expand = !!expand;
if (tree_column->expand == expand)
return;
tree_column->expand = expand;
/* if (reorderable)
pspp_sheet_view_column_set_clickable (tree_column, TRUE);*/
- if (tree_column->reorderable == (reorderable?TRUE:FALSE))
+ reorderable = !!reorderable;
+ if (tree_column->reorderable == reorderable)
return;
- tree_column->reorderable = (reorderable?TRUE:FALSE);
+ tree_column->reorderable = reorderable;
pspp_sheet_view_column_update_button (tree_column);
g_object_notify (G_OBJECT (tree_column), "reorderable");
}
quick_edit = !!quick_edit;
if (tree_column->quick_edit != quick_edit)
{
- tree_column->quick_edit = (quick_edit?TRUE:FALSE);
+ tree_column->quick_edit = quick_edit;
g_object_notify (G_OBJECT (tree_column), "quick-edit");
}
}
if (tree_column->tree_view != NULL)
gtk_widget_queue_draw (GTK_WIDGET (tree_column->tree_view));
- tree_column->selected = (selected?TRUE:FALSE);
+ tree_column->selected = selected;
g_object_notify (G_OBJECT (tree_column), "selected");
sheet_view = PSPP_SHEET_VIEW (pspp_sheet_view_column_get_tree_view (
{
if (tree_column->tree_view != NULL)
gtk_widget_queue_draw (GTK_WIDGET (tree_column->tree_view));
- tree_column->selectable = (selectable?TRUE:FALSE);
+ tree_column->selectable = selectable;
g_object_notify (G_OBJECT (tree_column), "selectable");
}
}
row_head = !!row_head;
if (tree_column->row_head != row_head)
{
- tree_column->row_head = (row_head?TRUE:FALSE);
+ tree_column->row_head = row_head;
g_object_notify (G_OBJECT (tree_column), "row_head");
}
}