From: Jim Evins Date: Sun, 8 Nov 2009 01:54:58 +0000 (-0500) Subject: Added support for Code93 barcode. X-Git-Tag: glabels-2_3_0~136 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=06b2f56f9594ec0bde746aab774ccb4aa33b9dbf;p=glabels Added support for Code93 barcode. Added glue to support for Code93 barcode, which is already supported by the GNU Barcode Library. --- diff --git a/src/bc-gnubarcode.c b/src/bc-gnubarcode.c index 060fc613..3e0ba437 100644 --- a/src/bc-gnubarcode.c +++ b/src/bc-gnubarcode.c @@ -164,6 +164,8 @@ gl_barcode_gnubarcode_new (const gchar *id, flags = BARCODE_MSI; } else if (g_ascii_strcasecmp (id, "PLS") == 0) { flags = BARCODE_PLS; + } else if (g_ascii_strcasecmp (id, "Code93") == 0) { + flags = BARCODE_93; } else { g_message( "Illegal barcode id %s", id ); flags = BARCODE_ANY; diff --git a/src/bc.c b/src/bc.c index 569d0d6e..5a1d6bc2 100644 --- a/src/bc.c +++ b/src/bc.c @@ -151,6 +151,9 @@ static const Backend backends[] = { { "PLS", N_("Plessey"), gl_barcode_gnubarcode_new, TRUE, TRUE, TRUE, TRUE, "0000000000", TRUE, 10}, + { "Code93", N_("Code 93"), gl_barcode_gnubarcode_new, + TRUE, TRUE, TRUE, FALSE, "0000000000", TRUE, 10}, + #endif /* HAVE_LIBBARCODE */ #ifdef HAVE_LIBIEC16022