Re: GTK2: deleting items from a GtkTree



Fabio Rotondo <mlists rotondo it> writes:

    there is a thing that is puzzling me right now.
Maybe it is very simple, but I don't see it...
I'd like to have a button in my app that deletes all selected items
inside a GtkListStore attatched to a GtkTreeView in one shot.
What I don't know is how to know which GtkListStore items are
actually selected.

Can you please help me?


Get the GtkTreeSelection from the GtkTreeView, then call
gtk_tree_selection_foreach().

Havoc




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