Hello I use glade to write a small gtk application. the application includes a list store. and whenever a user clicks on a row, i want to be able to fetch the information that this row contains.
using glade under row-changed event i added the following function:
void gtk_tree_view_row_activated_event_handler(GtkWidget *widget, gpointer data) {
GtkTreeSelection *selection;
GList *rows_list;
selection = gtk_tree_view_get_selection(widget);
rows_list = gtk_tree_selection_get_selected_rows (selection, widget);
}
how do i continue from here?
pls, check if the code below would work for you:
I guess another way to achieve what you're trying to do would be defining a handler to the GtkTreeSelection changed signal. Below is a small example:
setting up tree view:
changed signal handler:
hope this helps, regards