[gedit-plugins/gnome-3-4] 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/gnome-3-4] synctex: Fix Forward Seach Action from Menu in Gnome 3.4
- Date: Thu, 27 Sep 2012 01:30:57 +0000 (UTC)
commit 3cf0fbd81751ba09a618d2b4a32e163747701cf7
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 a334782..082edad 100644
--- a/plugins/synctex/synctex/synctex.py
+++ b/plugins/synctex/synctex/synctex.py
@@ -313,7 +313,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.window.get_active_view().get_data(VIEW_DATA_KEY).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]