Re: [gtk-list] scrolled window



> Hi,
> I'm trying to use scrolled window and example is broken -- I have:
> 
> Gtk-Message: gtk_scrolled_window_add(): cannot add non scrollable widget
> use gtk_scrolled_window_add_with_viewport() instead
> 
> Is there any ways to override it?

Yeah, do as it says. :)  If you want to add non-scrolling widgets (eg, a
GtkTree) to a scrolled window, you use:

gtk_scrolled_window_add_with_viewport(<window>,<widget>).

Brett.



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