Re: Accessing the accel_path of widgets
- From: Owen Taylor <otaylor redhat com>
- To: Emmanuel Briot <briot act-europe fr>
- Cc: gtk-devel-list gnome org
- Subject: Re: Accessing the accel_path of widgets
- Date: 29 Apr 2003 16:39:01 -0400
On Tue, 2003-04-29 at 04:17, Emmanuel Briot wrote:
> In the context of an IDE we are developing, we would like to have a
> window that summarizes all key bindings, including the menu shortcuts.
> This window should allow the user to easily modify all of those.
You probably should look at the gnome-terminal sources; Havoc
managed to make this work with the current API (with much cursing
and tearing of hair, it must be said.)
> One of the difficulties we have is that there doesn't seem to be a
> function to get the accel_path that was set for a menu_item.
> _gtk_widget_get_accel_path is not a public function, and thus shouldn't
> be used by applications, even if on linux libtool authorizes this. It
> doesn't work on Solaris for instance.
(It's not available on Linux builds from the distributed sources either,
actually.)
> Is there any reason why this function isn't public ?
Basically, because we weren't sure that it made sense as a sensible
public API that we wanted to maintain in the future. We generally
go with a policy these days of not exporting anything we don't
have a good reason to export.
Other notes:
- menu_item->accel_path will actually most likely be the same for
your usage; the path is only ever determined on the fly only
in odd cases.
- The advent of action based menus in 2.4 will make this entirely
different; since bindings are then attached to action objects, not to
menu items.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]