[CCode (instance_pos = -1)] public void selected_request(Gtk.TreeView source){ Gtk.TreeSelection sel = source.get_selection(); Gtk.TreeIter selected; Gtk.TreeModel model; sel.get_selected(out model, out selected); model = source.get_model(); GLib.Value val; model.get(selected, 1, out val); this.id_currently_displayed = val.get_int(); this.render(); }
Problem solved. I mistook model.get() for model.get_value()
Attachment:
signature.asc
Description: This is a digitally signed message part