Add ImageView.get_zoom_mode method
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 29 Apr 2007 19:26:03 +0000 (21:26 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 29 Apr 2007 19:26:03 +0000 (21:26 +0200)
src/packages/kofoto/gkofoto/imageview.py

index a7f2fe0..aa35852 100644 (file)
@@ -208,6 +208,11 @@ class ImageView(gtk.Table):
                 float(self._displayed_pixbuf.get_width()) /
                 self._available_size.width)
 
+    def get_zoom_mode(self):
+        """Get current zoom mode."""
+
+        return self._zoom_mode
+
     def modify_bg(self, state, color):
         """Set the background color.