def __init__(self):
# Init the windows
self.window = hildon.StackableWindow()
- self.window.set_title(__appname__)
hildon.hildon_gtk_window_set_progress_indicator(self.window, 1)
- self.mainVbox = gtk.VBox(False,10)
+
+ self.config = Config(self.window, CONFIGDIR+"config.ini")
+
+ try:
+ self.orientation = FremantleRotation(__appname__, main_window=self.window, app=self)
+ self.orientation.set_mode(self.config.getOrientation())
+ except Exception, e:
+ logger.warn("Could not start rotation manager: %s" % str(e))
+ self.window.set_title(__appname__)
+ self.mainVbox = gtk.VBox(False,10)
+
if isfile(CONFIGDIR+"/feeds.db"):
self.introLabel = gtk.Label("Loading...")
else:
self.window.add(self.mainVbox)
self.window.show_all()
- self.config = Config(self.window, CONFIGDIR+"config.ini")
gobject.idle_add(self.createWindow)
def createWindow(self):
self.listing = Listing(self.config, CONFIGDIR)
self.downloadDialog = False
- try:
- self.orientation = FremantleRotation(__appname__, main_window=self.window, app=self)
- self.orientation.set_mode(self.config.getOrientation())
- except Exception, e:
- logger.warn("Could not start rotation manager: %s" % str(e))
menu = hildon.AppMenu()
# Create a button and add it to the menu