Top | ![]() |
![]() |
![]() |
![]() |
GtkTreeViewColumn * | gva_columns_new_from_id () |
GtkTreeViewColumn * | gva_columns_new_from_name () |
gboolean | gva_columns_lookup_id () |
const gchar * | gva_columns_lookup_name () |
const gchar * | gva_columns_lookup_title () |
void | gva_columns_load () |
void | gva_columns_save () |
GSList * | gva_columns_get_names () |
GSList * | gva_columns_get_names_full () |
gboolean | gva_columns_query_tooltip () |
GtkTreeViewColumn *
gva_columns_new_from_id (GvaGameStoreColumn column_id
);
Creates a new GtkTreeViewColumn from the given column_id
, configured
for use in the main tree view.
GtkTreeViewColumn *
gva_columns_new_from_name (const gchar *column_name
);
Creates a new GtkTreeViewColumn from the given column_name
(as stored
in GSettings), configured for use in the main tree view.
gboolean gva_columns_lookup_id (const gchar *column_name
,GvaGameStoreColumn *column_id
);
Looks up the numeric column ID corresponding to column_name
, and write
the result to column_id
if found.
const gchar *
gva_columns_lookup_name (GvaGameStoreColumn column_id
);
Looks up the column name corresponding to column_id
.
const gchar *
gva_columns_lookup_title (GvaGameStoreColumn column_id
);
Looks up the column title corresponding to column_id
.
void
gva_columns_load (GtkTreeView *view
);
Loads view
with columns in the order stored in the GSettings key
all-columns
, but only makes visible those columns
listed in columns
. Newly supported columns are
appended to view
but remain invisible until explicitly selected in
the Preferences window.
Each column is loaded by reading the column name from GSettings and
passing it to gva_columns_new_from_name()
to create the GtkTreeViewColumn.
void
gva_columns_save (GtkTreeView *view
);
Writes the column order and visible columns of view
to the GSettings
keys all-columns
and columns
respectively, using gva_columns_get_names()
to extract the column names.
GSList * gva_columns_get_names (GtkTreeView *view
,gboolean visible_only
);
Extracts a list of column names from view
, using gva_columns_lookup_name()
to convert each numeric column ID to a name. If visible_only
is TRUE
then only visible columns are included in the list. The column name
strings are owned by view
and should not be freed; only the list itself
should be freed using g_slist_free()
.
GSList *
gva_columns_get_names_full (GtkTreeView *view
);
Extracts a list of column names from view
, plus any additional column
names from the game database necessary to render the tree view cells.
The column name strings are owned by view
and should not be freed;
only the list itself should be freed using g_slist_free()
.
gboolean gva_columns_query_tooltip (GtkTreeViewColumn *column
,GtkTreePath *path
,GtkTooltip *tooltip
);
Configures tooltip
for the given column
and path
.