[gedit-plugins] synctex: Fix Forward Seach Action from Menu in Gnome 3.4
- From: Jose Aliste <jaliste src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] synctex: Fix Forward Seach Action from Menu in Gnome 3.4
- Date: Thu, 27 Sep 2012 01:24:40 +0000 (UTC)
commit 5ed3bf11e906ce18b7cb50ea0b89ec49aa1974a5
Author: Josà Aliste <jaliste src gnome org>
Date: Wed Sep 26 22:21:46 2012 -0300
synctex: Fix Forward Seach Action from Menu in Gnome 3.4
Previously, the action callbacks used to have three arguments in pygi.
Now, the action callbacks have only two as should be. The fix should be
compatible with both versions.
See https://bugzilla.gnome.org/show_bug.cgi?id=684871
plugins/synctex/synctex/synctex.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/synctex/synctex/synctex.py b/plugins/synctex/synctex/synctex.py
index adb6afa..ec130ef 100644
--- a/plugins/synctex/synctex/synctex.py
+++ b/plugins/synctex/synctex/synctex.py
@@ -316,7 +316,7 @@ class SynctexWindowActivatable(GObject.Object, Gedit.WindowActivatable):
# Merge the UI
self._ui_id = manager.add_ui_from_string(ui_str)
- def forward_search_cb(self, action, what):
+ def forward_search_cb(self, action, what=None):
self.get_helper(self.window.get_active_view()).sync_view(Gtk.get_current_event_time())
def source_view_handler(self, out_gfile, uri_input, source_link, time):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]