gedit r6502 - branches/new_plugins/plugins/pythonconsole/pythonconsole
- From: jessevdk svn gnome org
- To: svn-commits-list gnome org
- Subject: gedit r6502 - branches/new_plugins/plugins/pythonconsole/pythonconsole
- Date: Sun, 7 Sep 2008 15:13:39 +0000 (UTC)
Author: jessevdk
Date: Sun Sep 7 15:13:39 2008
New Revision: 6502
URL: http://svn.gnome.org/viewvc/gedit?rev=6502&view=rev
Log:
Fixed holding reference on GeditWindow
Modified:
branches/new_plugins/plugins/pythonconsole/pythonconsole/__init__.py
branches/new_plugins/plugins/pythonconsole/pythonconsole/console.py
Modified: branches/new_plugins/plugins/pythonconsole/pythonconsole/__init__.py
==============================================================================
--- branches/new_plugins/plugins/pythonconsole/pythonconsole/__init__.py (original)
+++ branches/new_plugins/plugins/pythonconsole/pythonconsole/__init__.py Sun Sep 7 15:13:39 2008
@@ -47,6 +47,8 @@
def deactivate(self, window):
console = window.get_data("PythonConsolePluginInfo")
+ console.stop()
+
window.set_data("PythonConsolePluginInfo", None)
bottom = window.get_bottom_panel()
bottom.remove_item(console)
Modified: branches/new_plugins/plugins/pythonconsole/pythonconsole/console.py
==============================================================================
--- branches/new_plugins/plugins/pythonconsole/pythonconsole/console.py (original)
+++ branches/new_plugins/plugins/pythonconsole/pythonconsole/console.py Sun Sep 7 15:13:39 2008
@@ -77,7 +77,9 @@
# Signals
self.view.connect("key-press-event", self.__key_press_event_cb)
buffer.connect("mark-set", self.__mark_set_cb)
-
+
+ def stop(self):
+ self.namespace = None
def __key_press_event_cb(self, view, event):
if event.keyval == gtk.keysyms.d and event.state == gtk.gdk.CONTROL_MASK:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]