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

Keeping the focus widget visible



I have a bunch of widget in a scroll window.  When the user traverses the
focusable widgets using the keyboard, it is possible that the focus will
move off the visible screen.

I would like to keep the focused widget on the screen.  I am going to
catch the gtk_widget draw focus signal, extract the x, y, width, height
from the allocation structure, and adjust the scroll bar adjustments to
bring the widget to the visible portion of the screen.

Can anyone comment on the correctness of this approach (and likelihood
of success).  Is there a better way?

Thanks,
Kent




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