WIP: simplifications removing the 'WORLD_COLUMN'
This commit is contained in:
parent
dd37063fff
commit
cfc2db00d0
|
@ -54,7 +54,7 @@ enum
|
||||||
COLUMN_1,
|
COLUMN_1,
|
||||||
|
|
||||||
VISIBLE_COLUMN,
|
VISIBLE_COLUMN,
|
||||||
WORLD_COLUMN,
|
// WORLD_COLUMN,
|
||||||
NUM_COLUMNS
|
NUM_COLUMNS
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ create_model (void)
|
||||||
COLUMN_0, item_0->label,
|
COLUMN_0, item_0->label,
|
||||||
COLUMN_1, FALSE,
|
COLUMN_1, FALSE,
|
||||||
VISIBLE_COLUMN, FALSE,
|
VISIBLE_COLUMN, FALSE,
|
||||||
WORLD_COLUMN, FALSE,
|
// WORLD_COLUMN, FALSE,
|
||||||
-1);
|
-1);
|
||||||
|
|
||||||
/* add children */
|
/* add children */
|
||||||
|
@ -130,7 +130,7 @@ create_model (void)
|
||||||
COLUMN_0, item_1->label,
|
COLUMN_0, item_1->label,
|
||||||
COLUMN_1, item_1->AA,
|
COLUMN_1, item_1->AA,
|
||||||
VISIBLE_COLUMN, TRUE,
|
VISIBLE_COLUMN, TRUE,
|
||||||
WORLD_COLUMN, item_1->CC,
|
// WORLD_COLUMN, item_1->CC,
|
||||||
-1);
|
-1);
|
||||||
|
|
||||||
item_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);
|
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,
|
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 *
|
GtkWidget *
|
||||||
|
|
Loading…
Reference in New Issue