From 23f5773903d64a554d977ae7d0ebbaca73528f1f Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 30 Nov 2011 20:53:20 -0600 Subject: Coding style and whitespace cleanup. --- modules/plugin-python/e-plugin-python.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules/plugin-python') diff --git a/modules/plugin-python/e-plugin-python.c b/modules/plugin-python/e-plugin-python.c index a00e629068..fc13ade627 100644 --- a/modules/plugin-python/e-plugin-python.c +++ b/modules/plugin-python/e-plugin-python.c @@ -32,6 +32,10 @@ #include #include +#define E_PLUGIN_PYTHON_GET_PRIVATE(obj) \ + (G_TYPE_INSTANCE_GET_PRIVATE \ + ((obj), E_TYPE_PLUGIN_PYTHON, EPluginPythonPrivate)) + struct _EPluginPythonPrivate { PyObject *pModule; PyObject *pClass; @@ -199,8 +203,7 @@ plugin_python_init (EPluginPython *plugin_python) (GDestroyNotify) g_free, (GDestroyNotify) NULL); - plugin_python->priv = G_TYPE_INSTANCE_GET_PRIVATE ( - plugin_python, E_TYPE_PLUGIN_PYTHON, EPluginPythonPrivate); + plugin_python->priv = E_PLUGIN_PYTHON_GET_PRIVATE (plugin_python); plugin_python->priv->methods = methods; } -- cgit v1.2.3