[gedit] Fix deactivation
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Fix deactivation
- Date: Wed, 5 Feb 2014 09:25:26 +0000 (UTC)
commit 682ed32ac2faf7964c1a44878ed0162e6aa45ae9
Author: Paolo Borelli <pborelli gnome org>
Date: Wed Feb 5 10:25:06 2014 +0100
Fix deactivation
plugins/snippets/snippets/appactivatable.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/snippets/snippets/appactivatable.py b/plugins/snippets/snippets/appactivatable.py
index 332daa7..71d80fc 100644
--- a/plugins/snippets/snippets/appactivatable.py
+++ b/plugins/snippets/snippets/appactivatable.py
@@ -54,7 +54,8 @@ class AppActivatable(GObject.Object, Gedit.AppActivatable):
self.menu.append_menu_item(item)
def do_deactivate(self):
- self.window.remove_action("snippets")
+ self.app.remove_action("snippets")
+ self.menu = None
def system_dirs(self):
if platform.system() != 'Windows':
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]