projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e8c1fe
)
psppire-data-sheet: Use specific functions instead of g_object_set().
author
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 14 Oct 2012 18:35:06 +0000
(11:35 -0700)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 14 Oct 2012 18:46:06 +0000
(11:46 -0700)
Using particular functions seems less error-prone, since it avoids the
possibility of misspelling a property name or getting their values' types
wrong.
src/ui/gui/psppire-data-sheet.c
patch
|
blob
|
history
diff --git
a/src/ui/gui/psppire-data-sheet.c
b/src/ui/gui/psppire-data-sheet.c
index b6bf67c265933bab22a28b70d23131ae20ae1a00..31f4b4b7df41d64a82f715d4e617f08f60c090a3 100644
(file)
--- a/
src/ui/gui/psppire-data-sheet.c
+++ b/
src/ui/gui/psppire-data-sheet.c
@@
-223,7
+223,8
@@
make_row_number_column (PsppireDataSheet *data_sheet,
column = pspp_sheet_view_column_new_with_attributes (_("Case"),
renderer, NULL);
- g_object_set (column, "selectable", FALSE, "row-head", TRUE, NULL);
+ pspp_sheet_view_column_set_selectable (column, TRUE);
+ pspp_sheet_view_column_set_row_head (column, TRUE);
pspp_sheet_view_column_set_cell_data_func (
column, renderer, render_row_number_cell, ds, NULL);
pspp_sheet_view_column_set_fixed_width (column, 50);