]> git.sur5r.net Git - glabels/blobdiff - glabels2/libglabels/xml-template.c
2009-09-22 Jim Evins <evins@snaught.com>
[glabels] / glabels2 / libglabels / xml-template.c
index e4442bec532fbb56139f5e965d92a677be79625d..9a880c3c62a70e08bd93fa82468b588207910b44 100644 (file)
@@ -1,35 +1,29 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
 /*
- *  (LIBGLABELS) Template library for GLABELS
- *
- *  xml-template.c:  template xml module
+ *  xml-template.c
+ *  Copyright (C) 2001-2009  Jim Evins <evins@snaught.com>.
  *
- *  Copyright (C) 2001-2006  Jim Evins <evins@snaught.com>.
+ *  This file is part of libglabels.
  *
- *  This file is part of the LIBGLABELS library.
+ *  libglabels is free software: you can redistribute it and/or modify
+ *  it under the terms of the GNU Lesser General Public License as published by
+ *  the Free Software Foundation, either version 3 of the License, or
+ *  (at your option) any later version.
  *
- *  This library is free software; you can redistribute it and/or
- *  modify it under the terms of the GNU Library General Public
- *  License as published by the Free Software Foundation; either
- *  version 2 of the License, or (at your option) any later version.
- *
- *  This library is distributed in the hope that it will be useful,
+ *  libglabels is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- *  Library General Public License for more details.
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU Lesser General Public License for more details.
  *
- *  You should have received a copy of the GNU Library General Public
- *  License along with this library; if not, write to the Free
- *  Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
- *  MA 02111-1307, USA
+ *  You should have received a copy of the GNU Lesser General Public License
+ *  along with libglabels.  If not, see <http://www.gnu.org/licenses/>.
  */
+
 #include <config.h>
 
 #include "xml-template.h"
 
 #include <glib/gi18n.h>
-#include <glib/gmessages.h>
+#include <glib.h>
 #include <string.h>
 #include <libintl.h>
 
@@ -251,6 +245,8 @@ lgl_xml_template_parse_template_node (const xmlNodePtr template_node)
                        page_width  = paper->width;
                        page_height = paper->height;
                } else {
+                       page_width  = 612;
+                       page_height = 792;
                        g_message (_("Unknown page size id or name \"%s\""),
                                   paper_id);
                }
@@ -968,3 +964,13 @@ xml_create_alias_node (const lglTemplateAlias *alias,
 
 }
 
+
+
+/*
+ * Local Variables:       -- emacs
+ * mode: C                -- emacs
+ * c-basic-offset: 8      -- emacs
+ * tab-width: 8           -- emacs
+ * indent-tabs-mode: nil  -- emacs
+ * End:                   -- emacs
+ */