[pygobject/gsoc2009: 143/160] Add some casts and make trivial cosmetic changes



commit 13cf8ac3620ddc71365c86dc6275ee42615bbe41
Author: Simon van der Linden <svdlinden src gnome org>
Date:   Wed Aug 12 16:34:35 2009 +0200

    Add some casts and make trivial cosmetic changes

 gobject/pyginterface.c      |    2 +-
 gobject/pygobject-private.h |    2 +-
 gobject/pygobject.c         |    2 +-
 gobject/pygobject.h         |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gobject/pyginterface.c b/gobject/pyginterface.c
index 1c169e5..bf4131f 100644
--- a/gobject/pyginterface.c
+++ b/gobject/pyginterface.c
@@ -96,7 +96,7 @@ pyg_register_interface(PyObject *dict, const gchar *class_name,
 
     PyDict_SetItemString(dict, (char *)class_name, (PyObject *)type);
 
-	Py_DECREF(type);
+	Py_DECREF((PyObject *)type);
 }
 
 void
diff --git a/gobject/pygobject-private.h b/gobject/pygobject-private.h
index f8efcf6..eaf224f 100644
--- a/gobject/pygobject-private.h
+++ b/gobject/pygobject-private.h
@@ -157,7 +157,7 @@ void          pygobject_register_sinkfunc(GType type,
 					  void (* sinkfunc)(GObject *object));
 int           pyg_type_register          (PyTypeObject *class,
 					  const gchar *type_name);
-void          pyg_register_object_type   (GType g_type,
+void          pyg_register_object_type   (GType         g_type,
                                           PyTypeObject *type);
 
 /* from pygboxed.c */
diff --git a/gobject/pygobject.c b/gobject/pygobject.c
index 208e189..7f71ccc 100644
--- a/gobject/pygobject.c
+++ b/gobject/pygobject.c
@@ -652,7 +652,7 @@ void
 pyg_register_object_type (GType         g_type,
                           PyTypeObject *type)
 {
-    Py_INCREF(type);
+    Py_INCREF((PyObject *)type);
     g_type_set_qdata(g_type, pygobject_class_key, type);
 }
 
diff --git a/gobject/pygobject.h b/gobject/pygobject.h
index bad52ad..2ec96fb 100644
--- a/gobject/pygobject.h
+++ b/gobject/pygobject.h
@@ -209,7 +209,7 @@ struct _PyGObject_Functions {
                                        gboolean sink);
 
     PyTypeObject *interface_type;
-    void      (*register_interface_type) (GType        g_type,
+    void      (*register_interface_type) (GType         g_type,
                                           PyTypeObject *type);
 };
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]