[gedit-plugins] codecomment: delattr instead of setting it to None
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] codecomment: delattr instead of setting it to None
- Date: Sat, 11 Jan 2014 11:48:31 +0000 (UTC)
commit a5aad89da1c79a6a6bb7568caee97bf08a0c90b2
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sat Jan 11 12:48:10 2014 +0100
codecomment: delattr instead of setting it to None
plugins/codecomment/codecomment.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/codecomment/codecomment.py b/plugins/codecomment/codecomment.py
index 0238a2f..b2027ce 100644
--- a/plugins/codecomment/codecomment.py
+++ b/plugins/codecomment/codecomment.py
@@ -105,7 +105,7 @@ class CodeCommentViewActivatable(GObject.Object, Gedit.ViewActivatable):
self.view.connect('populate-popup', self.populate_popup)
def do_deactivate(self):
- self.view.code_comment_view_activatable = None
+ delattr(self.view, "code_comment_view_activatable")
def populate_popup(self, view, popup):
if not isinstance(popup, Gtk.MenuShell):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]