Re: [gtk-list] making tree widget scrollable.



g@cx888441-a.cv1.sdca.home.com wrote:
> 
> Hi,
> I am rather newbie to all this gtk+ stuff so please bear with me.
> I have been trying to create a scrolled window containing
> tree widget. ( just like the tutorial says. see gtk_tut-13.html )
> It compiles fine & stuff.. however, when I run it it will not create
> the scroll bar with error saying
> 
> Gtk-WARNING **: gtk_scrolled_window_add(): cannot add non scrollable
> widget use gtk_scrolled_window_add_with_viewport() instead
> 
>         gtk_container_add ( GTK_CONTAINER(a), b );
	^^^^^^^^^^^^^^^^^^^^^^^^^

Change this call to 		
	gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(a), b)

Cheers,
Achint

-- 
Achint Sandhu
Nortel Networks

FORTRAN?  The syntactically incorrect statement "DO 10 I = 1.10" 
will parse and generate code creating a variable, DO10I, as follows: 
"DO10I = 1.10"  If that doesn't terrify you, it should.



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