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

Re: Added menu -> compile time increased with 1 min



Kasper Peeters <K.Peeters@damtp.cam.ac.uk> writes:

| > Should I put the menu stuff in a separate file to cut down on compile
| > time ? 
| 
| If you want. I don't mind having to wait a little, but if it's heavy
| on memory you might want to split it.

My problem is it takes so long if I'm trying to get something right
and compile 5 times in a row => 10 min + editing time...

| By the way, I tried to add
| 
|    itemfac_->get_menuitem_widget("/Help")->right_justify();
| 
| to make the Help menu flush right, but that doesn't seem to work.

No No we don't want to right justify Help belive me!

Reasons:

	1. Help gets _very_ hard to find. This is based on not only my
           personal experience, but also of several others. And this
           is something we definitely don't want.
	2. Gnome and now also M$ (not that the last matters so much)
           have gone from right-justified to left due to Reason #1

	3. We can make this configurable though. But I think Help
           should be left-justified by default.

To make it right justify. You put LastBranch instead of Branch in the
definition. 

But I just noticed that if one defines the itemfactory-items a little
bit different one get a underscore under the letter which I used as a
shotcut. E.g. Open Ctl-O will have an underlined O. Also Alt-F will
open the File menu for you if defined so. Have a look at :

http://www.gtk.org/tutorial/gtk_tut-13.html#ss13.3

We definitely want this. Cutting down on mouse usage is _always_ a
Good Thing.

-- 
Preben Randhol              "You will find me if you want me in the garden,
[randhol@pvv.org] 	               unless it's pouring down with rain."
[http://www.pvv.org/~randhol/]                    -- Einstürzende Neubauten
-

         -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
         Mnemonic Browser Project - http://www.mnemonic.browser.org/
                           Developers Mailinglist
             Archive: http://www.mnemonic.browser.org/list/dev/
         -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-