Re: Life after the GNOME freeze



>  Are we supposed to be using gnome_stock_menu_accel() from gnome-stock.h or
>  the stuff in gnome-uidefs.h? The former is sort of the Right Thing but the
>  latter is way easier to add to apps. Probably we should have resolved this
>  before the freeze...

I would say we use the macros in gnome-uidefs.h for now.  The problem
with gnome_stock_menu_accel() is that you cannot call it from the
intializer lists for GnomeUIInfo arrays.

And if you wanted to really allow for user configuration of hotkeys,
you'd have to handle some ugly cases.  Do you want the keybindings to
change on the fly when the user hits "Ok" in the capplet to configure
keys, or do you want the user to restart the desktop first?  And
regardless of what you do, you have to solve for collisions between
user-defined keys and app-specific keys:  imagine the user chooses
"C-l" for a commonly-used menu item (because that key was never used
before in a standard fashion), but an application defined C-l itself
for a particular function.

It is not an easy problem, I think, so the easiest solution for now
may be to use the macros in gnome-uidefs.

  Federico



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