Re: gnome_app_create_menu hack



I've been lurking here for some time; finally something non-technical
enough for me to contribute. :)

Assumption: A mnemonic is just a label with an accellerator, ie. You
would never want to set both a label and a mnemonic. Correct?

From that viewpoint, a mnemonic really _is_ a label with a (correctly)
placed underscore. Combine that with the observation that 

1) you would just about never want to have a label containing an
underscore; 

2) if I remember correctly, the "underscore means a mnemonic" is already
used in the menu factory in gkt2; and 

3) Having an underscore to mean "I really want a mnemonic as well" is
very perlish, 

and I would come to the conclusion that interpreting it in this way
really is beneficial enough to dominate the risk of confusion. Don't
forget that the developer will immediately see what really happened (got
an underscored mnemonic instead of an underscore), so the confusion will
not be persistent anyway.

And, as #3 above states, it is a very neat way to do it (assuming my
initial assumption is correct, of course).


 


On Fri, 2003-04-18 at 16:02, Ross McFarland wrote:
last message for the whole weekend, i promise.

On Thu, 2003-04-17 at 18:00, Chas Owens wrote:
The mnemonic's work, I must be on drugs.

muppet and i were discussing a few days ago whether the new functions:

Gtk::Button->new("this is a label");

should use new_with_label or new_with_mnemonic. both muppet and myself
are somewhere in the middle on this we just require that whatever is
decided is uniform throughout the module. of course code wise it makes
no difference.

99 times out of a 100 it should make no difference, b/c not many people
who just want to use it as a label will put _ in the labels and then
people who want to use it as a mnemonic can go ahead and put the _. the
question is if mnemonic is the default then will people be able to
figure out what happened without thinking to much if they did put a _ in
the label and didn't get what they expect.

discussion, with logic and reasons desired...

-rm

_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
-- 

Trust the Computer. The Computer is your friend.

Tel.    +46-046 222 8588             Dr. Janne Morén (mr)
Home:   +46-046 211 4973             Dept. of Cognitive Science
Fax:    +46-046 222 9758             Kungshuset, Lund
                                     S-222 22 Lund, Sweden




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