Gtk::MessageDialog without parent window - window not focused?
- From: Christopher Lang <christopher lang acurana de>
- To: gtkmm-list <gtkmm-list gnome org>
- Subject: Gtk::MessageDialog without parent window - window not focused?
- Date: Thu, 18 Oct 2007 12:37:02 +0200
Hi,
I have a question with regard to Gtk::MessageDialog:
whenever I spawn a MessageDialog without handing over a parent window in the
constructor the window opens but it is not focused (window borders grey).
I have to click the window with the mouse to focus it.
Is there a way to open a MesageDialog *without* specifying a parent window and
have the window focussed right away?
Here is my current code:
Gtk::MessageDialog dialog (head, false, Gtk::MESSAGE_ERROR, Gtk::BUTTONS_OK,
true);
dialog.set_title (APPLICATION_NAME);
dialog.set_secondary_text ("some error message");
dialog.set_position (Gtk::WIN_POS_CENTER);
dialog.run ();
many thanks
Chris
http://www.acurana.de/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]