WIP: simplifications removing the 'WORLD_COLUMN'

This commit is contained in:
Jean Sirmai 2023-12-15 10:23:47 +01:00
parent dd37063fff
commit cfc2db00d0
Signed by: jean
GPG Key ID: FB3115C340E057E3
1 changed files with 4 additions and 4 deletions

View File

@ -54,7 +54,7 @@ enum
COLUMN_1,
VISIBLE_COLUMN,
WORLD_COLUMN,
// WORLD_COLUMN,
NUM_COLUMNS
};
@ -117,7 +117,7 @@ create_model (void)
COLUMN_0, item_0->label,
COLUMN_1, FALSE,
VISIBLE_COLUMN, FALSE,
WORLD_COLUMN, FALSE,
// WORLD_COLUMN, FALSE,
-1);
/* add children */
@ -130,7 +130,7 @@ create_model (void)
COLUMN_0, item_1->label,
COLUMN_1, item_1->AA,
VISIBLE_COLUMN, TRUE,
WORLD_COLUMN, item_1->CC,
// WORLD_COLUMN, item_1->CC,
-1);
item_1++;
@ -153,7 +153,7 @@ add_columns (GtkTreeView *treeview)
renderer = gtk_cell_renderer_text_new (); g_object_set (renderer, "xalign", 0.0, NULL);
gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), -1,
"Col 1", renderer, "active", COLUMN_1, NULL);
"Col 1", renderer, "text", COLUMN_1, NULL);
}
GtkWidget *