Re: How to get the first visible row in a tree view?



Gabriel de Perthuis wrote:
Le dimanche 13 mars 2005 Ã 20:59 +0000, David Rosal a Ãcrit :


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!


That's it. I have to make:

    if (GTK_WIDGET_REALIZED(treeview)) {
        ...
    }

Thanks.

- David




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]