Re: Accelerator-only actions
- From: Owen Taylor <otaylor redhat com>
- To: Matthias Clasen <maclas gmx de>
- Cc: gtk-devel-list gnome org
- Subject: Re: Accelerator-only actions
- Date: Fri, 05 Sep 2003 12:08:59 -0400
On Fri, 2003-09-05 at 05:16, Matthias Clasen wrote:
> This is the last major API change which I want to get into the action
> menu code to make it ready for 2.4: Switch back to installing
> accelerators on the actions, instead of the proxies.
Question here - how does this work when overriding happens when
merging? if Edit/Copy is overriden by another Edit/Copy, how does
<Control>C go to the right place?
Also, imagine an editing UI for an applications toolbars
and menus; if someone removes an item from their toolbars and menus
entirely, isn't it weird and unexpected if the accelerator
continues to work?
> This is relatively
> straightforward except for a little problem with editing of
> accelerators. I'd be most interested in feedback on the way I solved
> this in gtkmenu.c.
Blech. :-) If you need to make GtkMenu know about GtkAction,
you should add gtk_menu_item_set_action().
IMO, object data should never be used for inter-module API within
GTK+.
But maybe a gtk_menu_item_set_edit_accel_path() or something would be
better?
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]