How to control the scrollbars of a gtk_tree_view
Enrico Tröger
enrico.troeger at uvena.de
Mon Jan 7 22:11:41 CET 2008
On Mon, 7 Jan 2008 13:40:54 +0100, Colin Leroy <colin at colino.net> wrote:
> On Mon, 7 Jan 2008 13:28:28 +0100, Giuseppe Torelli wrote:
>
> Hi,
>
> > I have a directory tree in a treestore. The rows are sorted
> > automatically. Is it possible to control the scrollbars of the
> > gtktreeview? I want to scroll the treeview so to control which data
> > is visible when the user creates a new directory inside the
> > directory tree
>
> Try gtk_tree_view_scroll_to_cell() :-)
Or look at the GtkTreeSelection API, IIRC there is a function where you
can select a row by its GtkTreePath or by its GtkTreeIter and then it
should scroll automatically to the newly selected row.
(not completely sure, so don't hit me if I'm wrong ;-))
Regards,
Enrico
--
Get my GPG key from http://www.uvena.de/pub.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20080107/83b40957/attachment.pgp>
More information about the Xfce4-dev
mailing list