Re: GtkScrolledWindow: add_with_viewport()



Murray Cumming wrote:

In the documentation, it says

"
If a widget has native scrolling abilities, it can be added to the
GtkScrolledWindow with gtk_container_add(). If a widget does not, you
must first add the widget to a GtkViewport, then add the GtkViewport to
the scrolled window. The convenience function
gtk_scrolled_window_add_with_viewport() does exactly this, so you can
ignore the presence of the viewport.
"

Is there any way to programatically determine whether the widget "has
native scrolling abilities"?

(GTK_WIDGET_GET_CLASS(widget)->set_scroll_adjustments_signal != 0)

James.

--
Email: james daa com au
WWW:   http://www.daa.com.au/~james/






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