Use libconic to prompt for a network connection. We let the user
[hermes] / package / src / org / maemo / hermes / gui / gtkui.py
index 8936bd9..33dc4da 100644 (file)
@@ -5,6 +5,7 @@ import time
 import thread
 import urllib2
 import hildon
+import conic
 from org.bleb.wimpworks import WimpWorks
 from org.maemo.hermes.gui.contactview import ContactView
 from org.maemo.hermes.gui.mapcontact import MapContact
@@ -36,6 +37,8 @@ class HermesGUI(WimpWorks):
         
         self.providers = providers
         self.progressnote = None
+        connection = conic.Connection()
+        gobject.timeout_add(100, connection.request_connection, conic.CONNECT_FLAG_NONE)
 
   
     # -----------------------------------------------------------------------