GNOME Bugzilla – Bug 690510
share code for setting view scale limits
Last modified: 2012-12-20 21:43:44 UTC
Currently the code for setting the scale/zoom limits on the document in the view is in the EvWindow class. This means that users of the library will have to duplicate this code and handle all the different cases on their own. It also means that the limits aren't correctly updating when the page cache size changes. I'll attach a patch to move this code into the view.
Created attachment 231913 [details] [review] Move setting limits on zoom into the view This allows the policy to be shared by all users of the view from the library and makes it adapt correctly to changes in the pixbuf cache.
Created attachment 231933 [details] [review] Use properties for can-zoom-in and -out This simplifies the logic required to enable zoom actions for consumers of the view.
Review of attachment 231913 [details] [review]: Looks great, thanks!
Review of attachment 231933 [details] [review]: Looks good too.
Attachment 231913 [details] pushed as 27a4b3e - Move setting limits on zoom into the view Attachment 231933 [details] pushed as bbfbf91 - Use properties for can-zoom-in and -out