Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/epubadapter.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2011-12-08 16:43:12 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2011-12-08 16:43:12 (GMT)
commit04c79b3723f0735e4b79ab20fccfc9d63288d86d (patch)
tree3ff20ecd88c040f2d1eb4f4330860e50de3d6b1a /epubadapter.py
parentd84d092a015022cc3bb43c7f355bc24fb6b7250a (diff)
Revert "Initial port to Gtk3"
This reverts commit 996d542fd7d2d464edd572b165e80f9cb2c20ec7.
Diffstat (limited to 'epubadapter.py')
-rw-r--r--epubadapter.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/epubadapter.py b/epubadapter.py
index 4583b94..8def465 100644
--- a/epubadapter.py
+++ b/epubadapter.py
@@ -1,4 +1,4 @@
-from gi.repository import GObject
+import gobject
import logging
import epubview
@@ -19,7 +19,7 @@ class EpubViewer(epubview.EpubView):
self.connect('selection-changed',
activity._view_selection_changed_cb)
- activity._hbox.pack_start(self, True, True, 0)
+ activity._hbox.pack_start(self, expand=True, fill=True)
self.show_all()
# text to speech initialization
self.current_word = 0
@@ -122,7 +122,7 @@ class EpubViewer(epubview.EpubView):
if self._ready:
self._load_page(n)
else:
- GObject.timeout_add(200, self._try_load_page, n)
+ gobject.timeout_add(200, self._try_load_page, n)
def get_current_page(self):
return int(self._loaded_page - 1)