[Xfce4-commits] <thunarx-python:master> Fix indentation from previous commit
Adam Plumb
noreply at xfce.org
Wed Mar 23 20:24:01 CET 2011
Updating branch refs/heads/master
to a80bb9ae1fd905420c985f7831693b00923916e1 (commit)
from 6485b36d34928a67cb4ce1427cdb0d7bbe687423 (commit)
commit a80bb9ae1fd905420c985f7831693b00923916e1
Author: Adam Plumb <adamplumb at gmail.com>
Date: Wed Mar 23 15:22:14 2011 -0400
Fix indentation from previous commit
src/thunarx-python.c | 54 +++++++++++++++++++++++++-------------------------
1 files changed, 27 insertions(+), 27 deletions(-)
diff --git a/src/thunarx-python.c b/src/thunarx-python.c
index 5adae02..f725750 100644
--- a/src/thunarx-python.c
+++ b/src/thunarx-python.c
@@ -49,12 +49,12 @@ static inline gboolean
thunarx_python_init_pygobject(void)
{
#ifdef Py_CAPSULE_H
- void *capsule = PyCapsule_Import("gobject._PyGObject_API", 1);
- if (capsule)
- {
- _PyGObject_API = (struct _PyGObject_Functions *)capsule;
+ void *capsule = PyCapsule_Import("gobject._PyGObject_API", 1);
+ if (capsule)
+ {
+ _PyGObject_API = (struct _PyGObject_Functions *)capsule;
return TRUE;
- }
+ }
#endif
PyObject *gobject = PyImport_ImportModule("gobject");
@@ -70,8 +70,8 @@ thunarx_python_init_pygobject(void)
{
PyErr_SetString(PyExc_RuntimeError,
"could not find _PyGObject_API object");
- PyErr_Print();
- return FALSE;
+ PyErr_Print();
+ return FALSE;
}
}
else
@@ -89,31 +89,31 @@ static inline gboolean
thunarx_python_init_pygtk(void)
{
#ifdef Py_CAPSULE_H
- void *capsule = PyCapsule_Import("gtk._gtk._PyGtk_API", 0);
- if (capsule)
- {
- _PyGtk_API = (struct _PyGtk_FunctionStruct*)capsule;
- return TRUE;
- }
+ void *capsule = PyCapsule_Import("gtk._gtk._PyGtk_API", 0);
+ if (capsule)
+ {
+ _PyGtk_API = (struct _PyGtk_FunctionStruct*)capsule;
+ return TRUE;
+ }
#endif
PyObject *pygtk = PyImport_ImportModule("gtk._gtk");
if (pygtk != NULL)
{
- PyObject *module_dict = PyModule_GetDict(pygtk);
- PyObject *cobject = PyDict_GetItemString(module_dict, "_PyGtk_API");
- if (PyCObject_Check(cobject))
- {
- _PyGtk_API = (struct _PyGtk_FunctionStruct*)
- PyCObject_AsVoidPtr(cobject);
- }
- else
- {
- PyErr_SetString(PyExc_RuntimeError,
- "could not find _PyGtk_API object");
- PyErr_Print();
- return FALSE;
- }
+ PyObject *module_dict = PyModule_GetDict(pygtk);
+ PyObject *cobject = PyDict_GetItemString(module_dict, "_PyGtk_API");
+ if (PyCObject_Check(cobject))
+ {
+ _PyGtk_API = (struct _PyGtk_FunctionStruct*)
+ PyCObject_AsVoidPtr(cobject);
+ }
+ else
+ {
+ PyErr_SetString(PyExc_RuntimeError,
+ "could not find _PyGtk_API object");
+ PyErr_Print();
+ return FALSE;
+ }
}
else
{
More information about the Xfce4-commits
mailing list