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





On Sun, 15 Jun 1997 dg@emarkt.com wrote:

> >The menubar append function doesn't seem to have a justification
> >parameter. If I want to move the "Help" menu to the right most corner
> >of the screen, I have to put it on a separate menubar, which exposes
> >the border between the two menubars that I can't eliminate.
> >
> >Is there an easy solution that I'm overlooking or does this require a
> >new widget ?
> 
> 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.

You could, of course, set up a spacer of the correct size when the window
is created, but it wouldn't do the right thing when you resized the
window. 

Raph



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