summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2008-08-22 18:07:13 +0200
committerGuillaume Seguin <guillaume@segu.in>2008-08-22 18:07:13 +0200
commit4711c065af11d0e02f712b649ffd79d9c8bba436 (patch)
treebc981271807b821953960e0c54329a754611ad82
parent4f1c42056b26c8f13f5ddcc0e2f44213341a2e3b (diff)
downloadgmathlib-4711c065af11d0e02f712b649ffd79d9c8bba436.tar.gz
gmathlib-4711c065af11d0e02f712b649ffd79d9c8bba436.tar.bz2
* Add FIXME to pyGMathView.py
-rwxr-xr-xtest/test_pygmathview.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_pygmathview.py b/test/test_pygmathview.py
index cdcec92..a904efe 100755
--- a/test/test_pygmathview.py
+++ b/test/test_pygmathview.py
@@ -37,10 +37,15 @@ if __name__ == "__main__":
vbox = gtk.VBox ()
window.add (vbox)
+ contexts = []
+
for editor in [True, False]:
mathview = gmathview.MathView ()
mathview.set_editor_mode (editor)
context = mathview.get_context ()
+ # FIXME: context gets destroyed if it's not stored directly here,
+ # some refcounting stuff is probably missing in pygmathlib
+ contexts.append (context)
formula = make_test_formula (context)
mathview.set_formula (formula)
vbox.pack_start (mathview, False, False)