diff options
author | adamw <adamw@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-04-21 04:16:01 +0800 |
---|---|---|
committer | adamw <adamw@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-04-21 04:16:01 +0800 |
commit | c1dc29eb01fe45feb6653b9da2a490faa106c886 (patch) | |
tree | f83e2983b0831b1a7b3d990d79464aa4e09d7533 /x11-toolkits/py-gnome-extras/files | |
parent | 304c6a1311a27de2bf356c2bbf2cf8ec6d25cad1 (diff) | |
download | marcuscom-ports-c1dc29eb01fe45feb6653b9da2a490faa106c886.tar marcuscom-ports-c1dc29eb01fe45feb6653b9da2a490faa106c886.tar.gz marcuscom-ports-c1dc29eb01fe45feb6653b9da2a490faa106c886.tar.bz2 marcuscom-ports-c1dc29eb01fe45feb6653b9da2a490faa106c886.tar.lz marcuscom-ports-c1dc29eb01fe45feb6653b9da2a490faa106c886.tar.xz marcuscom-ports-c1dc29eb01fe45feb6653b9da2a490faa106c886.tar.zst marcuscom-ports-c1dc29eb01fe45feb6653b9da2a490faa106c886.zip |
Fix build on 4.x.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3945 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11-toolkits/py-gnome-extras/files')
-rw-r--r-- | x11-toolkits/py-gnome-extras/files/patch-gda_gda.override | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/x11-toolkits/py-gnome-extras/files/patch-gda_gda.override b/x11-toolkits/py-gnome-extras/files/patch-gda_gda.override new file mode 100644 index 000000000..1fa283a57 --- /dev/null +++ b/x11-toolkits/py-gnome-extras/files/patch-gda_gda.override @@ -0,0 +1,102 @@ +--- gda/gda.override.orig Wed Apr 20 16:10:31 2005 ++++ gda/gda.override Wed Apr 20 16:12:56 2005 +@@ -59,13 +59,14 @@ override gda_config_get_data_source_list + static PyObject* + _wrap_gda_config_get_data_source_list (PyObject* self) { + PyObject* plist = PyList_New (0); ++ GList *tmp, *list; + + if (!plist) { + Py_INCREF (Py_None); + return Py_None; + } + +- GList *tmp, *list = gda_config_get_data_source_list(); ++ list = gda_config_get_data_source_list(); + + for (tmp = list; tmp != NULL; tmp = tmp->next) { + PyObject* obj = pyg_boxed_new (GDA_TYPE_DATA_SOURCE_INFO, tmp->data, FALSE, FALSE); +@@ -81,13 +82,14 @@ override gda_config_get_provider_list kw + static PyObject* + _wrap_gda_config_get_provider_list (PyObject* self) { + PyObject* plist = PyList_New (0); ++ GList *tmp, *list; + + if (!plist) { + Py_INCREF (Py_None); + return Py_None; + } + +- GList *tmp, *list = gda_config_get_provider_list(); ++ list = gda_config_get_provider_list(); + + for (tmp = list; tmp != NULL; tmp = tmp->next) { + PyObject* obj = pyg_boxed_new (GDA_TYPE_PROVIDER_INFO, tmp->data, FALSE, FALSE); +@@ -174,20 +176,22 @@ static PyObject* + _wrap_gda_config_list_keys (PyObject* self, PyObject* fargs, PyObject* kwargs) { + static char* kwlist[] = { "path", NULL }; + gchar* path = "/"; ++ PyObject *plist; ++ GList *tmp, *list; + + if (!PyArg_ParseTupleAndKeywords (fargs, kwargs, "|s:config_list_keys", kwlist, &path)) { + Py_INCREF (Py_None); + return Py_None; + } + +- PyObject* plist = PyList_New (0); ++ plist = PyList_New (0); + + if (!plist) { + Py_INCREF (Py_None); + return Py_None; + } + +- GList *tmp, *list = gda_config_list_keys (path); ++ list = gda_config_list_keys (path); + + for (tmp = list; tmp != NULL; tmp = tmp->next) { + PyList_Append (plist, PyString_FromString (tmp->data)); +@@ -201,7 +205,8 @@ override gda_connection_execute_command + static PyObject* + _wrap_gda_connection_execute_command (PyGObject* self, PyObject* fargs, PyObject* kwargs) { + static char* kwlist[] = { "cmd", "params", NULL }; +- PyGObject *cmd, *params; ++ PyGObject *cmd, *params, *plist; ++ GList *tmp, *list; + + /* TODO: + if (!PyArg_ParseTupleAndKeywords (fargs, kwargs, "O!O!:GdaConnection.execute_command", +@@ -211,14 +216,14 @@ _wrap_gda_connection_execute_command (Py + } + */ + +- PyObject* plist = PyList_New (0); ++ plist = PyList_New (0); + + if (!plist) { + Py_INCREF (Py_None); + return Py_None; + } + +- GList *tmp, *list = gda_connection_execute_command (GDA_CONNECTION (self->obj), ++ list = gda_connection_execute_command (GDA_CONNECTION (self->obj), + GDA_COMMAND (cmd->obj), GDA_PARAMETER_LIST (params->obj)); + + for (tmp = list; tmp != NULL; tmp = tmp->next) { +@@ -235,13 +240,14 @@ override gda_connection_get_errors kwarg + static PyObject* + _wrap_gda_connection_get_errors (PyGObject* self) { + PyObject* plist = PyList_New (0); ++ GList *tmp, *list; + + if (!plist) { + Py_INCREF (Py_None); + return Py_None; + } + +- GList *tmp, *list = (GList*) gda_connection_get_errors (GDA_CONNECTION (self->obj)); ++ list = (GList*) gda_connection_get_errors (GDA_CONNECTION (self->obj)); + + for (tmp = list; tmp != NULL; tmp = tmp->next) { + PyObject* obj = pygobject_new (G_OBJECT (tmp->data)); |