Re: Row number in TreeView
- From: James Scott Jr <skoona verizon net>
- To: Lukasz Gromotowicz <gromot gmail com>
- Cc: Claudio Saavedra <csaavedra alumnos utalca cl>, gtk-app-devel-list gnome org
- Subject: Re: Row number in TreeView
- Date: Mon, 17 Sep 2007 21:30:44 -0400
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 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
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]