diff options
author | Sascha Silbe <sascha-pgp@silbe.org> | 2010-12-05 17:00:22 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@sugarlabs.org> | 2011-01-20 16:55:18 (GMT) |
commit | 09a7e07c1d49bb6d4df3920fdb92a0169efe24d6 (patch) | |
tree | ffb32650b5629d2c086d45345fe93763ce4bfab4 /readtoolbar.py | |
parent | 563347fd1ae1352a1c518d4ae12c5accf0a534bc (diff) |
pep8 cleanup: fix whitespace
Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org>
Diffstat (limited to 'readtoolbar.py')
-rw-r--r-- | readtoolbar.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/readtoolbar.py b/readtoolbar.py index 4d5bcb8..acd459f 100644 --- a/readtoolbar.py +++ b/readtoolbar.py @@ -30,7 +30,9 @@ from sugar.graphics.menuitem import MenuItem from sugar.graphics import iconentry from sugar.activity import activity + class EditToolbar(activity.EditToolbar): + __gtype_name__ = 'EditToolbar' def __init__(self): @@ -133,7 +135,7 @@ class EditToolbar(activity.EditToolbar): def _find_changed_cb(self, page, spec): self._update_find_buttons() - def _find_updated_cb(self, job, page = None): + def _find_updated_cb(self, job, page=None): self._evince_view.find_changed(job, page) def _find_prev_cb(self, button): @@ -169,12 +171,9 @@ class ViewToolbar(gtk.Toolbar): __gtype_name__ = 'ViewToolbar' __gsignals__ = { - 'needs-update-size': (gobject.SIGNAL_RUN_FIRST, - gobject.TYPE_NONE, + 'needs-update-size': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, ([])), - 'go-fullscreen': (gobject.SIGNAL_RUN_FIRST, - gobject.TYPE_NONE, - ([])) + 'go-fullscreen': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, ([])), } def __init__(self): @@ -252,7 +251,6 @@ class ViewToolbar(gtk.Toolbar): self._update_zoom_buttons() - def _zoom_spin_notify_value_cb(self, zoom_spin, pspec): if not self._view_notify_zoom_handler: return |