[491] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] hbox vs viewport

daemon@ATHENA.MIT.EDU (Hoek)
Mon Jul 21 11:10:20 1997

From: Hoek <hoek@pcjeroen.ubu.ruu.nl>
To: gtk-list@redhat.com
Date: Mon, 21 Jul 1997 17:08:54 +0200 (MET DST)
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

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

--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post