From 09a7e07c1d49bb6d4df3920fdb92a0169efe24d6 Mon Sep 17 00:00:00 2001 From: Sascha Silbe Date: Sun, 05 Dec 2010 17:00:22 +0000 Subject: pep8 cleanup: fix whitespace Signed-off-by: Sascha Silbe --- (limited to 'readtoolbar.py') 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 -- cgit v0.9.1