diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2006-11-09 22:45:34 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2006-11-09 22:45:34 (GMT) |
commit | f34a98ec9c95f219264700093bbd0a88b7cb17a0 (patch) | |
tree | c654a704233a40e32c39c3183cb7c7bd4cc6281f | |
parent | ab4b419a7de5729957b8d2631a317d1cca7bf326 (diff) |
Set a fixed scale factor by now. Need to change later once a performance issue in poppler/cairo is fixed.
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | XbookActivity.py | 5 | ||||
-rw-r--r-- | activity/activity.info | 2 |
3 files changed, 8 insertions, 1 deletions
@@ -9,3 +9,5 @@ install-sh missing py-compile *.pyc +*.xo +*~ diff --git a/XbookActivity.py b/XbookActivity.py index d4324de..5201428 100644 --- a/XbookActivity.py +++ b/XbookActivity.py @@ -35,4 +35,9 @@ class XbookActivity(Activity): if(command == 'open_document'): document = evince.factory_get_document('file://' + args[0]) self._evince_view.set_document(document) + + # FIXME: Hack for rendering in a fast way by having an integer scale factor. + self._evince_view.set_sizing_mode(2) + self._evince_view.set_zoom(2.0, False) + self._toolbar.set_document(document) diff --git a/activity/activity.info b/activity/activity.info index ef0299d..cc92390 100644 --- a/activity/activity.info +++ b/activity/activity.info @@ -4,4 +4,4 @@ service_name = org.laptop.sugar.Xbook icon = activity-xbook exec = sugar-activity-factory org.laptop.sugar.Xbook XbookActivity.XbookActivity show_launcher = no -activity_version = 2 +activity_version = 3 |