Details
struct GtkListStore
struct GtkListStore
{
GObject parent;
/*< private >*/
gint stamp;
gpointer root;
gpointer tail;
GList *sort_list;
gint n_columns;
gint sort_column_id;
GtkSortType order;
GType *column_headers;
gint length;
GtkTreeIterCompareFunc default_sort_func;
gpointer default_sort_data;
GtkDestroyNotify default_sort_destroy;
}; |
gtk_list_store_new ()
Creates a new list store as with n_columns columns each of the types passed
in. As an example, gtk_tree_store_new (3, G_TYPE_INT, G_TYPE_STRING,
GDK_TYPE_PIXBUF); will create a new GtkListStore with three columns, of type
int, string and GDkPixbuf respectively.
gtk_list_store_remove ()
Removes the given row from the list store. After being removed, iter is set to be the next valid row, or invalidated if it pointed to the last row inn list_store
gtk_list_store_insert ()
Creates a new row at position. iter will be changed to point to this new
row. If position is larger than the number of rows on the list, then the
new row will be appended to the list. The row will be empty before this
function is called. To fill in values, you need to call gtk_list_store_set
or gtk_list_store_set_value.
gtk_list_store_insert_before ()
Inserts a new row before sibling. If sibling is NULL, then the row will be
appended to the beginning of the list. iter will be changed to point to
this new row. The row will be empty before this function is called. To fill
in values, you need to call gtk_list_store_set or gtk_list_store_set_value.
gtk_list_store_insert_after ()
Inserts a new row after sibling. If sibling is NULL, then the row will be
prepended to the beginning of the list. iter will be changed to point to
this new row. The row will be empty after this function is called. To fill
in values, you need to call gtk_list_store_set or gtk_list_store_set_value.
gtk_list_store_prepend ()
Prepend a new row to list_store. iter will be changed to point to this new
row. The row will be empty after this function is called. To fill in
values, you need to call gtk_list_store_set or gtk_list_store_set_value.
gtk_list_store_append ()
Appends a new row to list_store. iter will be changed to point to this new
row. The row will be empty after this function is called. To fill in
values, you need to call gtk_list_store_set or gtk_list_store_set_value.