[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Emitting a keypress event
- From: Havoc Pennington <hp redhat com>
- To: gtk-app-devel-list redhat com
- Subject: Re: Emitting a keypress event
- Date: 28 Feb 2000 11:49:14 -0500
Kent Schumacher <kent@structural-wood.com> writes:
> A solution that occurs to me would be to add a new signal to GtkWidget -
> something like "user-action". This would need to be a programatically
> emittable signal. I would think that the handler would need a prototype
> something like.
>
Oh, I should mention gtk_widget_activate(). This is the function
that's invoked in response to an accelerator; so it clicks buttons,
activates menu items, etc. Perhaps that's what you are after.
Actually, even better: gtk_window_activate_focus() exists, which
simply activates the currently focused widget. Space bar does this by
default, BTW.
Havoc
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]