Re: [gtk-list] Scrolled widgets




On Tue, 14 Sep 1999, Per Erik Stendahl wrote:
> 
> Given a pointer to some unknown widget, is it possible to determine
> whether I should use gtk_scrolled_window_add_with_viewport() or
> gtk_container_add() to add that widget to a GtkScrolledWindow?
> 

You need the viewport if 
(GTK_WIDGET_CLASS(GTK_OBJECT(widget)->klass)->set_scroll_adjustments_signal
  == 0)

The object system chapter of my book at
http://developer.gnome.org/doc/GGAD explains what is going on here.

Havoc





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