From e367f37f1f11aa374ae9cbd3b085162fe78acc66 Mon Sep 17 00:00:00 2001 From: Yves Date: Tue, 23 Mar 2010 07:55:43 -0700 Subject: [PATCH] 0.5.3-4 extras-devel version --- debian/changelog | 3 +-- src/FeedingIt.py | 5 ++++- src/feedingitdbus.py | 1 + src/portrait.py | 12 ++++++------ 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/debian/changelog b/debian/changelog index 1cd759d..15a9dde 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,9 +1,8 @@ feedingit (0.5.3-4) unstable; urgency=low * Fixed text selection when panning (#5103) - * Fixed re-layout of listing when orientation changes - -- Yves Mon, 22 Mar 2010 22:02:19 -0800 + -- Yves Tue, 23 Mar 2010 07:20:19 -0800 feedingit (0.5.3-2) unstable; urgency=low diff --git a/src/FeedingIt.py b/src/FeedingIt.py index 217faee..020d035 100644 --- a/src/FeedingIt.py +++ b/src/FeedingIt.py @@ -743,6 +743,10 @@ class FeedingIt: self.autoupdate = False self.checkAutoUpdate() hildon.hildon_gtk_window_set_progress_indicator(self.window, 0) + gobject.idle_add(self.enabelDbus) + + def enableDbus(self): + dbusHandler = ServerObject(self) def button_markAll(self, button): for key in self.listing.getListOfFeeds(): @@ -914,5 +918,4 @@ if __name__ == "__main__": print "Error: Can't create configuration directory" sys.exit(1) app = FeedingIt() - dbusHandler = ServerObject(app) app.run() diff --git a/src/feedingitdbus.py b/src/feedingitdbus.py index 048d5b3..6371939 100644 --- a/src/feedingitdbus.py +++ b/src/feedingitdbus.py @@ -44,6 +44,7 @@ class ServerObject(dbus.service.Object): def GetStatus(self): return self.app.getStatus() + @dbus.service.method('org.maemo.feedingit') def Update(self): self.app.button_update_clicked(None, None) return "Done" diff --git a/src/portrait.py b/src/portrait.py index 5fd1ec6..2af4e67 100644 --- a/src/portrait.py +++ b/src/portrait.py @@ -171,12 +171,12 @@ class FremantleRotation(object): hildon.hildon_gtk_window_set_portrait_flags(window, flags) self._orientation = orientation - if orientation == self._PORTRAIT: - try: - self.app.disp.clear() - self.app.disp.displayFeed() - except: - pass + #if orientation == self._PORTRAIT: + # try: + # self.app.disp.clear() + # self.app.disp.displayFeed() + # except: + # pass def _on_orientation_signal(self, orientation, stand, face, x, y, z): if orientation in (self._PORTRAIT, self._LANDSCAPE): -- 1.7.9.5