[Galago-commits] r2671 - in trunk/galago-python: . src tests

galago-commits at freedesktop.org galago-commits at freedesktop.org
Tue Apr 4 23:08:25 PDT 2006


Author: chipx86
Date: 2006-04-04 23:08:22 -0700 (Tue, 04 Apr 2006)
New Revision: 2671

Modified:
   trunk/galago-python/ChangeLog
   trunk/galago-python/src/galago.override
   trunk/galago-python/tests/Makefile.am
   trunk/galago-python/tests/unittests.py
Log:
Remove the hack for galago_uninit() to double-unref the core, now that libgalago keeps a separate init count.


Modified: trunk/galago-python/ChangeLog
===================================================================
--- trunk/galago-python/ChangeLog	2006-04-05 06:07:15 UTC (rev 2670)
+++ trunk/galago-python/ChangeLog	2006-04-05 06:08:22 UTC (rev 2671)
@@ -1,3 +1,11 @@
+Tue Apr 04 23:06:43 PDT 2006  Christian Hammond <chipx86 at chipx86.com>
+
+	* src/galago.override:
+	* tests/Makefile.am:
+	* tests/unittests.py:
+	  - Remove the hack for galago_uninit() to double-unref the core, now
+	    that libgalago keeps a separate init count.
+
 Mon Apr 03 21:25:31 PDT 2006  Christian Hammond <chipx86 at chipx86.com>
 
 	* src/galago.defs:

Modified: trunk/galago-python/src/galago.override
===================================================================
--- trunk/galago-python/src/galago.override	2006-04-05 06:07:15 UTC (rev 2670)
+++ trunk/galago-python/src/galago.override	2006-04-05 06:08:22 UTC (rev 2671)
@@ -79,22 +79,6 @@
 	GalagoValue
 	GALAGO_VALUE_*
 %%
-override galago_uninit
-static PyObject *
-_wrap_galago_uninit(PyObject *self)
-{
-	PyObject *core;
-
-	/* XXX This is a hack. */
-    core = pygobject_new((GObject *)galago_get_core());
-	Py_DECREF(core); /* The new reference.. */
-	Py_DECREF(core); /* The previous reference.. */
-
-    galago_uninit();
-    Py_INCREF(Py_None);
-    return Py_None;
-}
-%%
 override galago_account_get_contacts kwargs
 static PyObject *
 _wrap_galago_account_get_contacts(PyGObject *self, PyObject *args,

Modified: trunk/galago-python/tests/Makefile.am
===================================================================
--- trunk/galago-python/tests/Makefile.am	2006-04-05 06:07:15 UTC (rev 2670)
+++ trunk/galago-python/tests/Makefile.am	2006-04-05 06:08:22 UTC (rev 2671)
@@ -1,4 +1,5 @@
 EXTRA_DIST = \
 	avatar.png \
 	get-presence.py \
-	presence-feed.py
+	presence-feed.py \
+	unittests.py

Modified: trunk/galago-python/tests/unittests.py
===================================================================
--- trunk/galago-python/tests/unittests.py	2006-04-05 06:07:15 UTC (rev 2670)
+++ trunk/galago-python/tests/unittests.py	2006-04-05 06:08:22 UTC (rev 2671)
@@ -24,7 +24,7 @@
 
     def tearDown(self):
         galago.uninit()
-        #self.failIf(galago.is_initted())
+        self.failIf(galago.is_initted())
 
 
 class InitTestCase(BaseTestCase):



More information about the galago-commits mailing list