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

Re: Emitting a keypress event




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]