Code:
GtkTreePath *path;
void cell_edited_callback (GtkCellRendererText *cell, gchar *path_string, gchar *new_text, gpointer user_data)
{
path = gtk_tree_path_new_from_string(path_string);
/* getting changed data and write it to mysql-database */
}
the first column in treeview is the ID column (primary key).
my questions:
1) how to get the primary key of the changed row?
2) the gchar *new_text contains the changed value, but i dont know which cell in the row is changed. (for example first name, Last Name, Location etc.)
i think it would work with GtkTreeSelection (no multi-selections in treeview allowed), but i don't know how to use **, which is used in most of the gtktreeselection-functions.
greetings