[gtksourceview] Use the right event attribute.



commit 5f2f2da5e4d4b8049362961defa9928fb2b61b8a
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Thu Jun 24 15:51:42 2010 +0200

    Use the right event attribute.

 tests/test-widget.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/tests/test-widget.py b/tests/test-widget.py
index 5909dd5..bea2ff7 100644
--- a/tests/test-widget.py
+++ b/tests/test-widget.py
@@ -487,8 +487,7 @@ class Window(Gtk.Window):
         self.update_cursor_position()
 
     def line_mark_activated(self, gutter, place, ev, user_data):
-        #FIXME: this check doesn't work for some reason.
-        if ev.button == 1:
+        if ev.button.button == 1:
             mark_type = self.MARK_TYPE_1
         else:
             mark_type = self.MARK_TYPE_2



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]