Re: Row number in TreeView
- From: "Lukasz Gromotowicz" <gromot gmail com>
- To: "Claudio Saavedra" <csaavedra alumnos utalca cl>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Row number in TreeView
- Date: Mon, 17 Sep 2007 09:29:14 +0100
Thanks for the response. I still have a problem. Maybe because I use GTKmm.
I have signal_row_activated connected to the function:
void TMainWindow::on_TreeView1_dblclick(
const Gtk::TreeModel::Path& path, Gtk::TreeViewColumn*
tvcolumn)
I have taken it from GTKmm documentation.
in this function I put what you suggested:
gint* i = gtk_tree_path_get_indices (path);
Compilation returns an error:
cannot convert 'const Gtk::TreePath' to 'GtkTreePath*' for argument '1' to
'gint* gtk_tree_path_get_indices(GtkTreePath*)'
What should I change? Where to find the clear explanation of the TreeView
widget (gtk.org and gtkmm.org are the best places?)
Does GTKmm defines EVERYTHING from the GTK+ or sometimes I will have to use
functions from the GTK+?
Best regards,
LUK
2007/9/16, Claudio Saavedra <csaavedra alumnos utalca cl>:
El dom, 16-09-2007 a las 00:32 +0100, Lukasz Gromotowicz escribió:
Hi all,
I know it is probably something simple, but I am new to the gtk. I have
a
TreeView and associated ListStore. I am trying to get the row number
after I
double-click on it. I have a "path" which I think I should use, but I do
not
know how.
With gtk_tree_path_get_indices ().
Claudio
--
Claudio Saavedra <csaavedra alumnos utalca cl>
Día del Software Libre, Curicó http://curico.diadelsoftwarelibre.cl
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]