[pygobject] cairo: remove check for PycairoRegion_Type
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] cairo: remove check for PycairoRegion_Type
- Date: Tue, 20 Mar 2018 09:31:13 +0000 (UTC)
commit 115ccb71bc932491c1dcba28c4a03be277290dd4
Author: Christoph Reiter <reiter christoph gmail com>
Date: Tue Mar 20 09:30:43 2018 +0100
cairo: remove check for PycairoRegion_Type
we require a new enough pycairo now
gi/pygi-foreign-cairo.c | 5 -----
1 file changed, 5 deletions(-)
---
diff --git a/gi/pygi-foreign-cairo.c b/gi/pygi-foreign-cairo.c
index 01944f90..63a27433 100644
--- a/gi/pygi-foreign-cairo.c
+++ b/gi/pygi-foreign-cairo.c
@@ -387,8 +387,6 @@ cairo_pattern_from_gvalue (const GValue *value)
return PycairoPattern_FromPattern (pattern, NULL);
}
-#if defined(PycairoRegion_Type)
-
static PyObject *
cairo_region_to_arg (PyObject *value,
GIInterfaceInfo *interface_info,
@@ -430,7 +428,6 @@ cairo_region_release (GIBaseInfo *base_info,
cairo_region_destroy ( (cairo_region_t*) struct_);
Py_RETURN_NONE;
}
-#endif
static PyMethodDef _gi_cairo_functions[] = { {0,} };
PYGLIB_MODULE_START(_gi_cairo, "_gi_cairo")
@@ -470,13 +467,11 @@ PYGLIB_MODULE_START(_gi_cairo, "_gi_cairo")
cairo_font_options_from_arg,
cairo_font_options_release);
-#if defined(PycairoRegion_Type)
pygi_register_foreign_struct ("cairo",
"Region",
cairo_region_to_arg,
cairo_region_from_arg,
cairo_region_release);
-#endif
pyg_register_gtype_custom (CAIRO_GOBJECT_TYPE_CONTEXT,
cairo_context_from_gvalue,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]