Use libconic to prompt for a network connection. We let the user
authorAndrew Flegg <andrew@bleb.org>
Wed, 9 Jun 2010 23:39:10 +0000 (00:39 +0100)
committerAndrew Flegg <andrew@bleb.org>
Wed, 9 Jun 2010 23:39:10 +0000 (00:39 +0100)
continue if there isn't one, but we might end up showing errors.

package/debian/control
package/src/org/maemo/hermes/gui/gtkui.py

index c9851c4..1e59e04 100644 (file)
@@ -10,7 +10,7 @@ Architecture: all
 Depends: ${shlibs:Depends}, ${misc:Depends}, python-imaging |
  python2.5-imaging, python-osso | python2.5-osso, python-hildon |
  python2.5-hildon, python-twitter, python-facebook, python-evolution,
- gnome-python, python-gobject
+ gnome-python, python-gobject, python-conic
 Description: Enrich contacts' information from social networks.
  Hermes, the Greek god of communication, will fill in the gaps in your
  contacts' address book. Photos and birthdays for your friends on
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)
 
   
     # -----------------------------------------------------------------------