Top | ![]() |
![]() |
![]() |
![]() |
A GcrColumn is used with GcrTreeSelector or GcrCollectionModel to define the columns to display.
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") |
const gchar * |
The name of the property this column will display |
|
GType |
The type of the property |
|
GType |
The eventual type of the column |
|
const gchar * |
The display label for the column |
|
GcrColumnFlags |
Flags from GcrColumnFlags |
|
GValueTransform |
A transformer function used to convert the value from
the property type to the column type. Can be |
|
gpointer |
User data associated with the column |