Grabbing focus for a Gtk::ToolButton



Hi,

Is it possible to use set_can_focus() and grab_focus() with a
Gtk::ToolButton? I want a certain toolbar ToolButton to obtain focus
after it has been made sensitive, but now, it seems, calling
set_can_focus() on this ToolButton makes it not accept the focus at all
(I can press the button, but can't select it using arrow keys).
Subsequently, I don't even know what happens further, at the
grab_focus() call. Using grab_focus() alone doesn't set the focus also.
I tried calling set_can_focus() during window setup and after each
set_sensitive() call, but with no difference.

Thanks.

Attachment: signature.asc
Description: =?koi8-r?Q?=FC=D4=C1?= =?koi8-r?Q?_=DE=C1=D3=D4=D8?= =?koi8-r?Q?_=D3=CF=CF=C2=DD=C5=CE=C9=D1?= =?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=C1=CE=C1?= =?koi8-r?Q?_=C3=C9=C6=D2=CF=D7=CF=CA?= =?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=D8=C0?=



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