[Slad] sladinstaller patch: fix untolerable timeouts on windows
Jan-Oliver Wagner
jan at intevation.de
Thu Mar 2 00:34:56 UTC 2006
Hi,
attached a patch for sladinstaller that works around
a untolerable timout due to trying to resolve non-existing
hostnames each time a letter is typed into the corresponding
entry field.
The problems occurs only for Windows with Cygnus, not for
GNU/Linux.
Best
Jan
--
Jan-Oliver Wagner: www.intevation.de/~jan | GISpatcher: www.gispatcher.de
Kolab Konsortium : www.kolab-konsortium.de | Thuban : thuban.intevation.org
Intevation GmbH : www.intevation.de | Kolab : www.kolab.org
FreeGIS : www.freegis.org | GAV : www.grass-verein.de
-------------- next part --------------
--- gtk.cpp.orig 2006-03-02 01:31:19.000000000 +0100
+++ gtk.cpp 2006-03-01 13:29:15.000000000 +0100
@@ -779,7 +779,13 @@
gtk_widget_show(hostname);
if(defaultHostname)
gtk_entry_set_text(GTK_ENTRY(hostname), defaultHostname);
+#ifdef CYGWIN
+ // on Cygwin there occur untolerable timeouts for trying to
+ // resolve non-existing hostnames
+ g_signal_connect (G_OBJECT (hostname), "focus-out-event",
+#else
g_signal_connect (G_OBJECT (hostname), "key-release-event",
+#endif
G_CALLBACK (hostname_changed), NULL);
gtk_tooltips_set_tip(tt, hostname,
_("Hostname of target computer onto which SLAD will be installed."),
More information about the Slad
mailing list