Re: Focus handling

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

 



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

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux