Re: [gtkmm] focus to DialogWindow



Andreas B. Thun wrote:
Detlef, thanks for your reply.

Actually, I want to set the focus on a displayed Gtk::DialogWindow
which contains the button.
When the window pops up, it has no focus. I have to move the mouse
pointer in..

That is determined by your window manager and (should be) entirely out of the control of the application. Window managers are the things responsible for determining if new windows get the focus or not, and while one would normally expect them to, they don't always.

You might want to look at your window manager settings.

Oh, and in gtkmm the response ID for an OK button should really be Gtk::RESPONSE_OK, although I would expect the value is the same as GTK_RESPONSE_OK, so that might work.




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