Blame mirage-0.9.3-prevmouse-not-defined-with-click.patch
|
|
60982ea |
--- mirage-0.9.3/mirage.py.debug 2008-03-27 13:05:28.000000000 +0900
|
|
|
60982ea |
+++ mirage-0.9.3/mirage.py 2010-01-29 18:19:24.000000000 +0900
|
|
|
60982ea |
@@ -2946,10 +2946,11 @@
|
|
|
60982ea |
def button_pressed(self, widget, event):
|
|
|
60982ea |
if self.image_loaded:
|
|
|
60982ea |
# Changes the cursor to the 'resize' cursor, like GIMP, on a middle click:
|
|
|
60982ea |
- if (event.button == 2 or event.button == 1) and (self.hscroll.get_property('visible')==True or self.vscroll.get_property('visible')==True):
|
|
|
60982ea |
- self.change_cursor(gtk.gdk.Cursor(gtk.gdk.FLEUR))
|
|
|
60982ea |
+ if (event.button == 2 or event.button == 1) :
|
|
|
60982ea |
self.prevmousex = event.x_root
|
|
|
60982ea |
self.prevmousey = event.y_root
|
|
|
60982ea |
+ if (self.hscroll.get_property('visible')==True or self.vscroll.get_property('visible')==True) :
|
|
|
60982ea |
+ self.change_cursor(gtk.gdk.Cursor(gtk.gdk.FLEUR))
|
|
|
60982ea |
# Right-click popup:
|
|
|
60982ea |
elif self.image_loaded and event.button == 3:
|
|
|
60982ea |
self.UIManager.get_widget('/Popup').popup(None, None, None, event.button, event.time)
|