hbox vs viewport



Can someone please enlighten me?  I'm looking through gtk's source code,
but get a bit dazzled by all the hadjustments, vadjustment, lowers, uppers,
&c.

Sorry, I get a bit frustrated.  I would like to have a viewport containing
a label, which both together look exactly like a hbox containing a label.
I want the label to be clickable, but when I use the viewport, the
label is mostly invisible: it appears somewhere in the lower right corner
of the viewport and then only one character in width.

Also, I have made a button that changes the label-text to something else
than the original text.  In a hbox it works fine and succesively pressing
the button doesn't alter the label anymore.  But in the viewport, after
clicking twice, the text disappears.


And another `problem', I'm trying to start with the beginning and figure
out what gtk really does, in order to write some documentation.  I noticed
that you can add init-functions to the gtk_init routine by using gtk_init_add,
but so far I haven't seen anyone using it.  Can someone tell me what the
idea behind gtk_init_add is?

-----------------------------------------------------------------------------
this is Hoek v0.23 -- automatic mail replier         hoek@pcjeroen.ubu.ruu.nl
		see also http://www.araneus.com/
	"Where do you live?  Where is the manager?  Where does he live?"
							-- Grosse point Blanc



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