Re: Focus handling



On Thu, Aug 18, 2005 at 02:24:52PM +0800, Calin Vatavu wrote:
> I have an entry in fixed widget contained by an event_box and the event box gets all the keystrokes until you click on the text entry. 
> 
> What I want is when I click back on the event box's background the keyboard focus to switch back to the event_box so that it gets all the keystrokes again. 
> 
> How can I do that? gtk_widget_grab_focus doesn't work on non-focusable widgets like event boxes.

You can use GTK_WIDGET_SET_FLAGS(eventbox, GTK_CAN_FOCUS) to
make it focusable.

Yeti


--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?



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