[gedit-plugins] Remove forgotten uses of old menu API
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] Remove forgotten uses of old menu API
- Date: Mon, 14 Apr 2014 19:24:44 +0000 (UTC)
commit 011c871e689bed9e36daf66696d31ec2578688af
Author: Sergej Chodarev <sergejx centrum sk>
Date: Mon Apr 14 19:52:24 2014 +0200
Remove forgotten uses of old menu API
http://bugzilla.gnome.org/show_bug.cgi?id=728201
plugins/synctex/synctex/synctex.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/synctex/synctex/synctex.py b/plugins/synctex/synctex/synctex.py
index bb7852f..01ee703 100644
--- a/plugins/synctex/synctex/synctex.py
+++ b/plugins/synctex/synctex/synctex.py
@@ -204,7 +204,7 @@ class SynctexViewHelper:
style = self._doc.get_style_scheme().get_style('search-match')
apply_style(style, self._highlight_tag)
- self._plugin._action_group.set_sensitive(True)
+ self._window.lookup_action("synctex").set_enabled(True)
self.window_proxy = self._plugin.ref_evince_proxy(self.out_gfile, self._window)
elif not self.active and self.window_proxy is not None:
@@ -214,7 +214,7 @@ class SynctexViewHelper:
for handler in self._view_active_handlers:
self._view.disconnect(handler)
- self._plugin._action_group.set_sensitive(False)
+ self._window.lookup_action("synctex").set_enabled(False)
self._plugin.unref_evince_proxy(self.out_gfile)
self.window_proxy = None
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]