diff options
author | Aneesh Dogra <lionaneesh@gmail.com> | 2012-12-18 04:57:04 (GMT) |
---|---|---|
committer | Aneesh Dogra <lionaneesh@gmail.com> | 2012-12-18 04:57:04 (GMT) |
commit | 65a83bf5df06f9f0c9cfe74e6ab8a65ac7d3c762 (patch) | |
tree | 5ee7e38d7dcc49a87bbe596a31fad2a7e296581e | |
parent | 2eb0de9d3e6733bb5a3c2fa8f8b45bb714c5ecda (diff) |
More fixes.
-rw-r--r-- | purk/widgets.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/purk/widgets.py b/purk/widgets.py index 367f918..9a415b3 100644 --- a/purk/widgets.py +++ b/purk/widgets.py @@ -474,7 +474,7 @@ class TextOutput(Gtk.TextView): indent_tag ) - def popup(self, menu): + def popup(self, menu, event): hover_iter = get_iter_at_coords(self, *self.hover_coords) menuitems = [] @@ -502,7 +502,7 @@ class TextOutput(Gtk.TextView): def mousedown(self, widget, event): if event.button == 3: - self.hover_coords = widget.get_coords() + self.hover_coords = event.get_coords() def mouseup(self, widget, event): if not self.get_buffer().get_selection_bounds(): |