Bug in ROX-Lib: OptionsBox crashes

Dennis Tomas <[email protected]> Tue, 17 Mar 2015 11:00:12 +0100
Newsgroups gmane.comp.desktop.rox.devel
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------020309000108020607000905
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

When selecting entries from the TreeView in the options box, the 
application crashes in OptionsBox.py:261 (change_page()). Fixed this by 
referencing the selection object as it seems to have already been 
garbage collected when the signal handler is called. See attached patch.
(BTW: Any plans on putting ROX-Lib on GitHub, so I could fork it?)

--------------020309000108020607000905
Content-Type: text/x-patch;
 name="OptionsBox-crash-fix.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="OptionsBox-crash-fix.patch"

diff -Nur ROX-Lib2.orig/python/rox/OptionsBox.py ROX-Lib2/python/rox/OptionsBox.py
--- ROX-Lib2.orig/python/rox/OptionsBox.py	2015-03-17 10:55:29.885576872 +0100
+++ ROX-Lib2/python/rox/OptionsBox.py	2015-03-17 10:56:11.781707827 +0100
@@ -254,6 +254,7 @@
 		notebook.set_show_border(False)
 		frame.add(notebook)
 		self.notebook = notebook
+		self.__sel = sel
 
 		# Flip pages
 		# (sel = sel; pygtk bug?)

--------------020309000108020607000905
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
--------------020309000108020607000905
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
rox-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rox-devel

--------------020309000108020607000905--