vte r2230 - in trunk: . python
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: vte r2230 - in trunk: . python
- Date: Sat, 29 Nov 2008 21:56:33 +0000 (UTC)
Author: chpe
Date: Sat Nov 29 21:56:32 2008
New Revision: 2230
URL: http://svn.gnome.org/viewvc/vte?rev=2230&view=rev
Log:
* python/vtemodule.c: (initvte): Register the constants too!
Modified:
trunk/ChangeLog
trunk/python/vtemodule.c
Modified: trunk/python/vtemodule.c
==============================================================================
--- trunk/python/vtemodule.c (original)
+++ trunk/python/vtemodule.c Sat Nov 29 21:56:32 2008
@@ -27,6 +27,7 @@
#include "../src/vte.h"
extern void pyvte_register_classes(PyObject * d);
+extern void pyvte_add_constants(PyObject *module, const gchar *strip_prefix);
extern PyMethodDef pyvte_functions[];
extern DL_EXPORT(void) initvte(void);
extern PyTypeObject PyVteTerminal_Type;
@@ -43,6 +44,7 @@
d = PyModule_GetDict(m);
pyvte_register_classes(d);
+ pyvte_add_constants(m, "VTE_");
if (PyErr_Occurred()) {
Py_FatalError("can't initialise module vte");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]