diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2011-11-03 19:52:20 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2011-12-08 16:48:44 (GMT) |
commit | 13cd62468db76758ecef0fa78fa77eef866b1db7 (patch) | |
tree | a0dfbd5f30e3b7ea62675fd7e1d329ddc6009bf1 /epubadapter.py | |
parent | 035bc9a388dc86e467b4767b8df1380bc8e8fdbd (diff) |
Initial port to Gtk3
Diffstat (limited to 'epubadapter.py')
-rw-r--r-- | epubadapter.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epubadapter.py b/epubadapter.py index 8def465..4583b94 100644 --- a/epubadapter.py +++ b/epubadapter.py @@ -1,4 +1,4 @@ -import gobject +from gi.repository 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, expand=True, fill=True) + activity._hbox.pack_start(self, True, True, 0) 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) |