[176] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: Truncated labels
daemon@ATHENA.MIT.EDU (Shawn T Amundson)
Thu May 15 23:34:52 1997
From: Shawn T Amundson <amundson@cs.umn.edu>
To: ey200@hermes.cam.ac.uk
Date: Thu, 15 May 1997 22:34:22 -0500 (CDT)
Cc: gtk-list@redhat.com
In-Reply-To: <Pine.SOL.3.95q.970516023600.8437A-100000@puce.csi.cam.ac.uk> from "E. Young" at May 16, 97 02:51:41 am
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
Words Of E. Young:
>
>If Shawn wants some dumb questions for the FAQ, I've got masses... :)
You may even provide a diff to the HTML file if you want, and I'll
put them in! (I can be really lazy sometimes.) ;-)
>
>Is it possible to get some text displayed which is truncated to fit inside
>its allocation? Looking at the label source code, it would appear not...
>If I use
>
>label = gtk_label_new ("cataphrastic peanuts");
>gtk_widget_set_usize (label, 50, 16);
>gtk_widget_show (label);
>
>Then the whole phrase is displayed, overrunning the boundaries of the
>label's box and mangling any innocent nearby widgets. Calling usize() on a
>box containing the label makes the label's requisition smaller than its
>allocation, so nothing is drawn at all. Is there a workaround, or am I
>doing something stupid?
>
I'm curious about this as well. Shouldn't the default behavior be
to not over run nearby widgets? (In other words, isn't this a bug?)
--
Shawn T. Amundson University of Minnesota
Systems Administration Computer Science System Staff
amundson@cs.umn.edu http://www.cs.umn.edu/~amundson/
while (i) { last }
i, do exist.
forever;
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null