[gedit-plugins/sessionsaver] Fix remove actions
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins/sessionsaver] Fix remove actions
- Date: Thu, 27 Jun 2019 19:41:53 +0000 (UTC)
commit 856927798e19223e894aa94ee8146311c9e867e4
Author: Jordi Mas <jmas softcatala org>
Date: Thu Jun 27 20:57:21 2019 +0200
Fix remove actions
plugins/sessionsaver/sessionsaver/__init__.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/sessionsaver/sessionsaver/__init__.py b/plugins/sessionsaver/sessionsaver/__init__.py
index 046b1a9..2fa2ff8 100644
--- a/plugins/sessionsaver/sessionsaver/__init__.py
+++ b/plugins/sessionsaver/sessionsaver/__init__.py
@@ -117,13 +117,13 @@ class SessionSaverWindowActivatable(GObject.Object, Gedit.WindowActivatable, Pea
def _remove_menus(self):
print("SessionSaverWindowActivatable._remove_menus")
- self.app.remove_action("managedsession")
- self.app.remove_action("savesession")
+ self.window.remove_action("managedsession")
+ self.window.remove_action("savesession")
for i in range(self.n_sessions):
session_id = 'session_{0}'.format(i)
print("SessionSaverWindowActivatable._remove_session_menu. remove {0}".format(session_id))
- self.app.remove_action(session_id)
+ self.window.remove_action(session_id)
def _session_menu_action(self, action, parameter, session):
name = session.name
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]