Le dimanche 13 mars 2005 Ã 20:59 +0000, David Rosal a Ãcrit : > Gabriel de Perthuis wrote: > > > Better: > > > > GdkRectangle r; > > int xw, yw; > > GtkTreePath* path = gtk_tree_path_new(); > > > > gtk_tree_view_get_visible_rect(tv, &r); > > gtk_tree_view_tree_to_widget_coords(tv, r.x, r.y, &xw, &yw); > > gtk_tree_view_get_tree_path_at_pos(tv, xw, xy, &path, NULL, NULL, NULL); > > > It works! > It gives me a valid path and I can retrieve the filename. > > But I get this warning: > > Gtk-CRITICAL **: gtk_tree_view_get_path_at_pos: assertion > `tree_view->priv->bin_window != NULL' failed > Maybe the tree view isn't realised yet. Grab devhelp for advanced gtk API lore, I think there's something about that.
Good luck! _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list