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

Re: Emitting a keypress event



Havoc Pennington wrote:

> 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
>

OK, this is good.  Any thoughts on how to have different types of activate?

My widgets minimally need to be able to bring up an assistant and force an update
to dependent widgets.  Both of these actions need to be invokable via menu-item,
toolbar-button, and keypress.

Wow, quick response.  Thanks,
Kent




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