diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2010-12-09 10:34:31 +0100 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2011-01-01 13:05:12 +0100 |
commit | ed24deaa2eaefb5e11ff900d4466474592f66d33 (patch) | |
tree | 37a394fe616b2f2241268bfaf0fda370b6c8d2f1 /util | |
parent | 19b840a9044f873657f0c0dbb3ccf82a13d43888 (diff) |
mesh: Add mesh pattern type and enum values
Add the mesh pattern type and an error status to be used to report an
incorrect construction of the pattern.
Update the backends to make them ready to handle the new pattern type,
even if it cannot be created yet.
Diffstat (limited to 'util')
-rw-r--r-- | util/cairo-gobject/cairo-gobject-enums.c | 2 | ||||
-rw-r--r-- | util/cairo-trace/trace.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/util/cairo-gobject/cairo-gobject-enums.c b/util/cairo-gobject/cairo-gobject-enums.c index 1fcd3d03..152bfd77 100644 --- a/util/cairo-gobject/cairo-gobject-enums.c +++ b/util/cairo-gobject/cairo-gobject-enums.c @@ -49,6 +49,7 @@ cairo_gobject_status_get_type (void) { CAIRO_STATUS_USER_FONT_NOT_IMPLEMENTED, "CAIRO_STATUS_USER_FONT_NOT_IMPLEMENTED", "user-font-not-implemented" }, { CAIRO_STATUS_DEVICE_TYPE_MISMATCH, "CAIRO_STATUS_DEVICE_TYPE_MISMATCH", "device-type-mismatch" }, { CAIRO_STATUS_DEVICE_ERROR, "CAIRO_STATUS_DEVICE_ERROR", "device-error" }, + { CAIRO_STATUS_INVALID_MESH_CONSTRUCTION, "CAIRO_STATUS_INVALID_MESH_CONSTRUCTION", "invalid-mesh-construction" }, { CAIRO_STATUS_LAST_STATUS, "CAIRO_STATUS_LAST_STATUS", "last-status" }, { 0, NULL, NULL } }; @@ -431,6 +432,7 @@ cairo_gobject_pattern_type_get_type (void) { CAIRO_PATTERN_TYPE_SURFACE, "CAIRO_PATTERN_TYPE_SURFACE", "surface" }, { CAIRO_PATTERN_TYPE_LINEAR, "CAIRO_PATTERN_TYPE_LINEAR", "linear" }, { CAIRO_PATTERN_TYPE_RADIAL, "CAIRO_PATTERN_TYPE_RADIAL", "radial" }, + { CAIRO_PATTERN_TYPE_MESH, "CAIRO_PATTERN_TYPE_MESH", "mesh" }, { 0, NULL, NULL } }; GType type = g_enum_register_static (g_intern_static_string ("cairo_pattern_type_t"), values); diff --git a/util/cairo-trace/trace.c b/util/cairo-trace/trace.c index acdde937..b9305060 100644 --- a/util/cairo-trace/trace.c +++ b/util/cairo-trace/trace.c @@ -1501,6 +1501,7 @@ _status_to_string (cairo_status_t status) f(USER_FONT_NOT_IMPLEMENTED); f(DEVICE_TYPE_MISMATCH); f(DEVICE_ERROR); + f(INVALID_MESH_CONSTRUCTION); case CAIRO_STATUS_LAST_STATUS: break; } |