Re: How a popup window receives input fous



On Mon, 2007-09-03 at 01:17 +0300, Vesselin Jeliazkov wrote:
> Hello,
> 
> I want to place a calendar (Gtk::Calendar) in a popup window. The
> popup window is made modal and is presented to the user with the
> Gtk::Window::present() call.
>  Dates from the calendar can be selected
> with the mouse but the calendar does not have the input focus - dates
> can not be choosen with the keyboard. The keyboard focus stays on the
> parent window.

Could you show this with a small test case, maybe modifying the
examples/calendar/ example?

Have you used set_transient_for()?

> How can I make the calendar to receive the input focus from the keyboard?
> 
> If the calendar is not modal (Gtk::Window::set_modal() has not been
> called) then no date from the calendar can be selected witrh the mouse
> as well.
> 
> I tried to activate the keyboard and mose events for the popup window
> but it doesn't work.

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com




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