Imported Upstream version 3.3.1
[platform/upstream/pygobject2.git] / gi / pygi-type.c
index 06d773a..129ea98 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
+ * USA
  */
 
-#include "pygtype.h"
-#include "pygi-type.h"
-
-#include <pyglib-python-compat.h>
+#include "pygi-private.h"
 
 
 PyObject *
@@ -51,7 +50,7 @@ _pygi_type_import_by_name (const char *namespace_,
 }
 
 PyObject *
-pygi_type_import_by_g_type (GType g_type)
+pygi_type_import_by_g_type_real (GType g_type)
 {
     GIRepository *repository;
     GIBaseInfo *info;
@@ -90,7 +89,7 @@ _pygi_type_get_from_g_type (GType g_type)
 
     py_type = PyObject_GetAttrString (py_g_type, "pytype");
     if (py_type == Py_None) {
-        py_type = pygi_type_import_by_g_type (g_type);
+        py_type = pygi_type_import_by_g_type_real (g_type);
     }
 
     Py_DECREF (py_g_type);