Re: Scrollbars in a GtkTreeView


just pack GtkTreeView inside GtkScrolledWindow with gtk_container_add
and your scrolling will work.

You can also provide your own GtkScrollbars and set their
GtkAdjustment to the one of the GtkTreeView like this:

hscroll = gtk_hscrollbar_new( gtk_tree_view_get_hadjustment( swindow )
) and vscroll = gtk_vscrollbar_new( gtk_tree_view_get_vadjustment(
swindow ) )

2008/11/18 Ian Puleston <ian underpressuredivers com>:
> Hi,
> The GtkTreeView documentation talks about it having a "header_window" and a
> scrollable "bin_window", but no more information about that scroll ability.
> After some experimentation I found that if I used a gtk_widget_size_request
> to limit the tree view height then it could be scrolled up and down using
> the up/down arrow cursor keys.
> But I can't find any way to give the scrollable window scrollbars, and it
> doesn't react to trying to scroll it using the mouse wheel, so to a user its
> rather non-intuitive. Is there any way to get scroll bars into a
> GtkTreeView?
> Ian
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org

Tadej Borovšak
00386 (0)40 613 131
tadeboro gmail com
tadej borovsak gmail com

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