GtkTreeView isn't updating when GtkListStore appended and set




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

I've defined a GtkTreeView in Glade with a GtkListStre as the store. I'm
trying to add data to the list on a button click. Here's the function:

    void update_list(){
        GtkListStore *list_store;
        GtkTreeIter iter;
        GtkTreeView *tree_view;

        tree_view = GTK_TREE_VIEW( gtk_builder_get_object(builder,
            "treeview_button_order"));
        list_store = GTK_LIST_STORE( gtk_builder_get_object(builder,
            "liststore_button_list"));

        gtk_list_store_append(list_store, &iter);
        gtk_list_store_set(list_store, &iter, 0, "data", -1);
    }

In Glade I've defined column "0" in the list store as a "gchararray"
cell. I even tried forcing the assignment of GtkListStore to GtkTreeView
(knowing full well I wouldn't need to) to no avail.

I don't get any errors, but the GtkTreeView doesn't reflect the changes
made to the GtkListStore. Any suggestions? Thanks in advance!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCgAGBQJSyJd4AAoJEOT99oqiSuRNLcgIAK0PA+oIbI8Jq54RfJQC+PxF
pVq4qznyXV4zhnQBS8iOpS5yhE8qzynRvHUAZHo+410GrfeCT6bCZop2O/8KGI9i
TNJgeCga98dmN1eljW33ZLl6lfYI8aWaHQPX0I9r4cQYLd1lqeLGIQx6ZL8nB1uH
d/860vePGXxZb2XF8cB9xg+KjX2TuOSf3g3nfQXcEIZdpYewhINATerF385Oq5+d
4fIJpO234uRClKPxPr0+c+EmwO1kbSb33jVBWwYCHiwtMTNeuY0SwPY9aPiJNi0K
cyDSwNQy9tGRAqtvIaPX8IKJaosIGVX+0fwJjCh8HZRcI5zofqZarSlP9impTj8=
=VrBv
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]