From 747cab741cf63f30aa6bc2b787fc13e7e7a2b859 Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Sat, 26 Mar 2016 22:18:05 +1030 Subject: Add CAIRO_STATUS_WIN32_GDI_ERROR for GDI errors --- util/cairo-gobject/cairo-gobject-enums.c | 1 + util/cairo-script/cairo-script-private.h | 2 +- util/cairo-trace/trace.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) (limited to 'util') diff --git a/util/cairo-gobject/cairo-gobject-enums.c b/util/cairo-gobject/cairo-gobject-enums.c index cd4a4be40..0c5069406 100644 --- a/util/cairo-gobject/cairo-gobject-enums.c +++ b/util/cairo-gobject/cairo-gobject-enums.c @@ -55,6 +55,7 @@ cairo_gobject_status_get_type (void) { CAIRO_STATUS_PNG_ERROR, "CAIRO_STATUS_PNG_ERROR", "png-error" }, { CAIRO_STATUS_FREETYPE_ERROR, "CAIRO_STATUS_FREETYPE_ERROR", "freetype-error" }, { CAIRO_STATUS_LAST_STATUS, "CAIRO_STATUS_LAST_STATUS", "last-status" }, + { CAIRO_STATUS_WIN32_GDI_ERROR, "CAIRO_STATUS_WIN32_GDI_ERROR", "win32-gdi-error" }, { 0, NULL, NULL } }; GType type = g_enum_register_static (g_intern_static_string ("cairo_status_t"), values); diff --git a/util/cairo-script/cairo-script-private.h b/util/cairo-script/cairo-script-private.h index a8e203b47..da846dcb2 100644 --- a/util/cairo-script/cairo-script-private.h +++ b/util/cairo-script/cairo-script-private.h @@ -228,7 +228,7 @@ typedef enum _csi_status { CSI_STATUS_JBIG2_GLOBAL_MISSING = CAIRO_STATUS_JBIG2_GLOBAL_MISSING, CSI_STATUS_PNG_ERROR = CAIRO_STATUS_PNG_ERROR, CSI_STATUS_FREETYPE_ERROR = CAIRO_STATUS_FREETYPE_ERROR, - + CSI_STATUS_WIN32_GDI_ERROR = CAIRO_STATUS_WIN32_GDI_ERROR, /* cairo-script-interpreter specific errors */ diff --git a/util/cairo-trace/trace.c b/util/cairo-trace/trace.c index 652e04ad0..e3c99331b 100644 --- a/util/cairo-trace/trace.c +++ b/util/cairo-trace/trace.c @@ -1584,6 +1584,7 @@ _status_to_string (cairo_status_t status) f(JBIG2_GLOBAL_MISSING); f(PNG_ERROR); f(FREETYPE_ERROR); + f(WIN32_GDI_ERROR); case CAIRO_STATUS_LAST_STATUS: break; } -- cgit v1.2.3