[Inteproxy-commits] r115 - in trunk: . inteproxy

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Feb 26 20:49:14 CET 2008


Author: bh
Date: 2008-02-26 20:49:13 +0100 (Tue, 26 Feb 2008)
New Revision: 115

Modified:
   trunk/ChangeLog
   trunk/inteproxy/gtkapp.py
Log:
* inteproxy/gtkapp.py (run_password_dialog): Make sure the dialog
is always on top on windows.  Fixes bug #243.


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2008-02-22 20:27:29 UTC (rev 114)
+++ trunk/ChangeLog	2008-02-26 19:49:13 UTC (rev 115)
@@ -1,3 +1,8 @@
+2008-02-26  Bernhard Herzog  <bh at intevation.de>
+
+	* inteproxy/gtkapp.py (run_password_dialog): Make sure the dialog
+	is always on top on windows.  Fixes bug #243.
+
 2008-02-22  Bernhard Herzog  <bh at intevation.de>
 
 	* inteproxy/transcoder.py (OWSProxyGETTranscoder.convert_request):

Modified: trunk/inteproxy/gtkapp.py
===================================================================
--- trunk/inteproxy/gtkapp.py	2008-02-22 20:27:29 UTC (rev 114)
+++ trunk/inteproxy/gtkapp.py	2008-02-26 19:49:13 UTC (rev 115)
@@ -1,4 +1,4 @@
-# Copyright (C) 2007 by Intevation GmbH
+# Copyright (C) 2007, 2008 by Intevation GmbH
 # Authors:
 # Bernhard Herzog <bh at intevation.de>
 #
@@ -55,6 +55,17 @@
 
     table.show_all()
 
+    # Make sure the dialog is visible.
+    # Using set_keep_above(True) makes the dialog perhaps a bit too
+    # annoying, because the dialog will be kept in front of all windows
+    # on the screen.  However, for some reason, a simle dialog.present()
+    # doesn't always work on Windows XP.  At least when the dialog is
+    # shown for the first time after InteProxy has been started, the
+    # set_keep_above(True) is necessary and has to be called after the
+    # dialog has been shown by either show() or present().
+    dialog.show()
+    dialog.set_keep_above(True)
+
     if dialog.run() == gtk.RESPONSE_ACCEPT:
         result = (username_entry.get_text(),
                   password_entry.get_text())



More information about the Inteproxy-commits mailing list