Re: Get row text from a treeview



Nice Martyn.

I also did a thing to make the first line selected because
otherwise it would crash if i rightclicked without any row beeing
selected (trying to get a value out of it).

gboolean edit;

path = gtk_tree_path_new_first();
gtk_tree_view_set_cursor(GTK_TREE_VIEW(treeview), path, NULL, edit);
gtk_tree_path_free(path);


Sincerely: Magnus-swe





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