Difference between focus and focus-in(out)-event signals
Posted
by spajak
on Stack Overflow
See other posts from Stack Overflow
or by spajak
Published on 2010-04-13T18:57:11Z
Indexed on
2010/04/13
22:23 UTC
Read the original article
Hit count: 595
Hello
What's the difference between "focus" and "focus-in(out)-event" signals in GTK+? Which one is emitted firs? How are they related to keyboard(TAB) & mouse clicks. Do they depend on each other?
I'm asking this because I want to keep track of currently focused widget within toplevel window and I don't want to test HAS_FOCUS flag of every widget when I need it. The widgets I'm interested of are deep inside other containers, boxes etc. What would be the best way in this situation for keeping & updating focused widget pointer?
© Stack Overflow or respective owner