Re: menubar alignment question



On Mon, 23 Jun 2008, Christian Dywan wrote:

> Am Mon, 23 Jun 2008 11:08:44 -0400 (EDT)
> schrieb Allin Cottrell <cottrell wfu edu>:
> 
> > Using GtkItemFactory one could push a certain menu to the 
> > right-hand end of a menubar (i.e. right-justify it) using the 
> > "<LastBranch>" tag.  This was useful, e.g., for making a "Help" 
> > menu stand out.
> > 
> > Is there any way to do this when creating a menubar with 
> > GtkUIManager?  I tried putting in a
> > 
> > <separator expand='true'/>
> > 
> > before the last item, but this didn't do anything useful (it 
> > inserted a minuscule horizontal line before the item).
> 
> I am not aware of any UIManager syntax for that. For the one case where
> I need that (a throbber) I just have a call to
> 
> gtk_menu_item_set_right_justified
> 
> in my code that inserts a widget there.

Thanks, that does the job.

> Incidentally right justified Help menus are not considered very 
> agreeable anymore since a long time, so it might be a chance to 
> think that menu over.

Why are they not condidered "agreeable"?

Allin Cottrell




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