Re: Getting row numbers

2007-05-09 Thread Yeti
On Wed, May 09, 2007 at 01:38:04PM -0400, tj wrote: > > > Ok, so how do I get the row number, from GtkTreePath, http://developer.gnome.org/doc/API/2.0/gtk/GtkTreeModel.html#gtk-tree-path-get-indices In general, the path is not a single number as it can represent paths in trees too. If you have a

Re: Getting row numbers

2007-05-09 Thread tj
David Nečas (Yeti) wrote: >On Wed, May 09, 2007 at 07:23:18AM -0400, tj wrote: > > >>I am having a terrible time trying to get the selected row number from a tree >>view, and it seems so easy using gtk_tree_selection_get_selected_rows(); >> >>Snippet of code: >> >>const gchar* txt; >>Gt

libgdk-directfb-2.0.so: undefined reference to `IA__gdk_colormap_change' Can anyone help me

2007-05-09 Thread Stumpe Robert
Hi Wiliam, I have the same problem like you, but building gtk for mipsel. this is what I found out so far: With IA__gdk_colormap_change the function gdk_colormap_change is meant. The gdk_colormap_change is called within gdk_colors_store (in gdk/gdkcolor.c). In the gdk API Reference (http

Re: GtkTreeView and the cursor

2007-05-09 Thread tj
I'm no expert on gtk, in fact I am just starting to use it, but it being open source and supporting inheiritance, couldn't you change the the normal highlight behavoir creating a new tree view widget? tj Michael Ekstrand wrote: >On Tue, 2007-05-08 at 18:22 +0200, Hans Oesterholt-Dijkema wrote:

Re: Getting row numbers

2007-05-09 Thread Yeti
On Wed, May 09, 2007 at 07:23:18AM -0400, tj wrote: > I am having a terrible time trying to get the selected row number from a tree > view, and it seems so easy using gtk_tree_selection_get_selected_rows(); > > Snippet of code: > > const gchar* txt; > GtkTreeSelection *selection; >

Getting row numbers

2007-05-09 Thread tj
I am having a terrible time trying to get the selected row number from a tree view, and it seems so easy using gtk_tree_selection_get_selected_rows(); Snippet of code: const gchar* txt; GtkTreeSelection *selection; GtkTreeModel *model; GtkTreeIter iter; GtkTreeView