Re: focus



Hi

I don't think there is a way to find the focused widget other then walking
the widget tree and check for GTK_WIDGET_HAS_FOCUS().

Or connect every widget to a "focus-in-event" event, which stores the
current focused widget,

or as abive but easier gtk_signal_lookup( "focus-in-event", GTK_WIDGET )
and gtk_signal_add_emission_hook

HTH

Jan-Marek



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