Top |
Description
A GcrColumn is used with GcrTreeSelector or GcrCollectionModel to define the columns to display.
Types and Values
GcrColumn
typedef struct { const gchar *property_name; /* The property to retrieve */ GType property_type; /* The property type */ GType column_type; /* The resulting property type for this column */ const gchar *label; /* The label for this column, or NULL */ GcrColumnFlags flags; /* Column flags */ GValueTransform transformer; /* The way to transform to this type or NULL */ gpointer user_data; } GcrColumn;
Represents a column to display in a GcrCollectionModel or GcrTreeSelector.
The label should be set as a translatable string with a context of
"column"
. This should be done with with this macro:
1 |
NC_("column", "My Column Name") |
Members
The name of the property this column will display |
||
The type of the property |
||
The eventual type of the column |
||
The display label for the column |
||
GcrColumnFlags |
Flags from GcrColumnFlags |
|
A transformer function used to convert the value from
the property type to the column type. Can be |
||
User data associated with the column |