gui: New type PsppireEmptyListStore.
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 7 Jul 2011 15:09:17 +0000 (08:09 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 21 Apr 2012 05:08:32 +0000 (22:08 -0700)
commit698f289d1ecf1620aa5429599f2e76db23cff452
treeb1de1dd5ee2c79a43275907db1caacabb3f798ed
parent72d3f344d81b147b018cc268028f31397613621e
gui: New type PsppireEmptyListStore.

PsppireEmptyListStore is an GtkTreeModel implementation that has a
client-specified number of rows and zero columns.  It is a useful model for
GtkTreeView or PsppSheetView when the client can easily synthesize cell
data using a callback set with gtk_tree_view_column_set_cell_data_func().
In that situation, GtkListStore can be wasteful (because it uses a lot of
memory to store what does not need to be stored) and situation-specific
custom models require additional boilerplate.

This commit also modified the text data import dialog code to use
PsppireEmptyListStore.  Future commits will add other users.
src/ui/gui/automake.mk
src/ui/gui/psppire-empty-list-store.c [new file with mode: 0644]
src/ui/gui/psppire-empty-list-store.h [new file with mode: 0644]
src/ui/gui/text-data-import-dialog.c