Re: Row number in TreeView

2007-09-21 Thread Claudio Saavedra
On Mon, 2007-09-17 at 09:29 +0100, Lukasz Gromotowicz wrote: > > gint* i = gtk_tree_path_get_indices (path); I think you should use the appropriate gtkmm API to do that. Something like gint *i = path.get_indices(); or so. I only told you about the generic C method, but you should map that t

Re: Row number in TreeView

2007-09-17 Thread James Scott Jr
LUK, This link answers your original "double-click" question! Read the Tutorial! http://scentric.net/tutorial/sec-selections-double-click.html James , On Mon, 2007-09-17 at 09:29 +0100, Lukasz Gromotowicz wrote: > Thanks for the response. I still have a problem. Maybe because I use GTKmm. > I

Re: Row number in TreeView

2007-09-17 Thread Lukasz Gromotowicz
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

Re: Row number in TreeView

2007-09-15 Thread James Scott Jr
LUK, One way is to create a Selection when you define the treeview, then whenever a double-click selection occurs your callback will be called with its parms point to the row that was selected. the callbacks params will have the current and correct path as input params. review this tutorial for

Re: Row number in TreeView

2007-09-15 Thread Claudio Saavedra
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 us

Row number in TreeView

2007-09-15 Thread Lukasz Gromotowicz
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. Could anybody help me please? Best regards, LUK __