Fix left click in full screen mode
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)
Left mouse click now goes to the next image in full screen mode only
if the image is in best fit mode.

src/packages/kofoto/gkofoto/fullscreenwindow.py

index d0caccb..467ed32 100644 (file)
@@ -76,7 +76,8 @@ class FullScreenWindow(gtk.Window):
         self._goto(self._current_index)
 
     def _button_press_event_cb(self, widget, event):
-        if event.button == 1:
+        iv = self._image_view
+        if event.button == 1 and iv.get_zoom_mode() == iv.ZoomMode.BestFit:
             self._goto(self._current_index + 1)
 
     def _display_end_screen(self):