[367] in The GTK GIMP ToolKit mailing list archive

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

[gtk-list] Re: RE:menu bar justification ?

daemon@ATHENA.MIT.EDU (Shawn T Amundson)
Sun Jun 15 04:29:54 1997

Date: Sun, 15 Jun 1997 03:29:37 -0500 (CDT)
From: Shawn T Amundson <amundson@cs.umn.edu>
To: gtk-list@redhat.com
In-Reply-To: <Pine.BSF.3.91.970614194854.4016B-100000@blacklodge.c2.net>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

On Sat, 14 Jun 1997, Raph Levien wrote:

> > If you can add arbitrary widgets onto the menu bar, couldn't you add a
> > blank label set to be as wide as possible just to the left of the Help
> > menu? This ought to push the Help menu off to the far right, right
> > justifying it. Can you do this in gtk?
> 
> Nope. Gtk's size negotiation doesn't include the concept of glue. Some 
> other toolkits, such as Fresco, do.

gtkbox.h have expand and fill attributes.  Wouldn't that do what you are
looking for?  Of course, that only applies to box children.  I haven't
looked enough at the menu stuff to figure out if that is helpful.  Probably
not.

This is another thing that should apply to all widgets.  (fill, expand)
I assume this would be a difficult change?

--
Shawn T. Amundson		University of Minnesota
Systems Administration	 	Computer Science System Staff
amundson@cs.umn.edu	  	http://www.cs.umn.edu/~amundson/     	

"I'm not aware of too many things
 I know what I know if you know what I mean" 
		-Edie Brickell

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


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