I'm working on an app in C with GTK 3, the issue I'm having is my treeviews have blank items, the treeviews get filled, but I can't see any text, it's just a bunch of blank items I can select. I created a function so when I click on an item it prints it's value, and it prints the correct value, it's just not displaying the values in the treeview.
Here's a screenshot:
Here's a little code snippet of how I'm creating my treeviews and adding data:
Code:
GtkTreeIter iter;
GtkCellRenderer *text_cell = gtk_cell_renderer_text_new();
GtkListStore *library_model = gtk_list_store_new(1, G_TYPE_STRING);
gtk_list_store_append(library_model, &iter);
gtk_list_store_set(library_model, &iter, 0, "Item", -1);
GtkWidget *library_view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(library_model));
gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(library_view), 0, "Library", text_cell, NULL);
Obviously there's more to my code, but that's how I'm creating my treeviews, and adding items to them. Any help is greatly apprecieated