[glade/composite-templates: 8/9] Replaced GLADE_XML_TAG_TEMPLATE with GLADE_XML_TAG_EXTERNAL_OBJECT



commit 18483ff464ae3d93971ad45d26cba30c97d9d9b1
Author: Juan Pablo Ugarte <juanpablougarte gmai com>
Date:   Thu Jan 31 17:19:34 2013 +0100

    Replaced GLADE_XML_TAG_TEMPLATE with GLADE_XML_TAG_EXTERNAL_OBJECT

 gladeui/glade-composite-template.c |    2 +-
 gladeui/glade-project.c            |    4 ++--
 gladeui/glade-property.c           |    2 +-
 gladeui/glade-widget.c             |    4 ++--
 gladeui/glade-xml-utils.h          |    2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gladeui/glade-composite-template.c b/gladeui/glade-composite-template.c
index 81ede79..6de6539 100644
--- a/gladeui/glade-composite-template.c
+++ b/gladeui/glade-composite-template.c
@@ -44,7 +44,7 @@ start_element (GMarkupParseContext  *context,
 {
   ParseData *state = user_data;
 
-  if (g_strcmp0 (element_name, "template") == 0)
+  if (g_strcmp0 (element_name, GLADE_XML_TAG_EXTERNAL_OBJECT) == 0)
     {
       gint i;
 
diff --git a/gladeui/glade-project.c b/gladeui/glade-project.c
index e9aa181..436f06c 100644
--- a/gladeui/glade-project.c
+++ b/gladeui/glade-project.c
@@ -1443,7 +1443,7 @@ glade_project_count_xml_objects (GladeProject *project,
        node; node = glade_xml_node_next (node))
     {
       if (glade_xml_node_verify_silent (node, GLADE_XML_TAG_WIDGET) ||
-          glade_xml_node_verify_silent (node, GLADE_XML_TAG_TEMPLATE))
+          glade_xml_node_verify_silent (node, GLADE_XML_TAG_EXTERNAL_OBJECT))
         count = glade_project_count_xml_objects (project, node, ++count);
       else if (glade_xml_node_verify_silent (node, GLADE_XML_TAG_CHILD))
         count = glade_project_count_xml_objects (project, node, count);
@@ -1625,7 +1625,7 @@ glade_project_load_internal (GladeProject *project)
     {
       /* Skip "requires" tags */
       if (!glade_xml_node_verify_silent (node, GLADE_XML_TAG_WIDGET) &&
-          !glade_xml_node_verify_silent (node, GLADE_XML_TAG_TEMPLATE))
+          !glade_xml_node_verify_silent (node, GLADE_XML_TAG_EXTERNAL_OBJECT))
         continue;
 
       if ((widget = glade_widget_read (project, NULL, node, NULL)) != NULL)
diff --git a/gladeui/glade-property.c b/gladeui/glade-property.c
index ccdf95f..4d6ee0b 100644
--- a/gladeui/glade-property.c
+++ b/gladeui/glade-property.c
@@ -1171,7 +1171,7 @@ glade_property_write (GladeProperty * property,
   /* This code should work the same for <packing>, <widget> and <template> */
   if (!(glade_xml_node_verify_silent (node, GLADE_XML_TAG_PACKING) ||
         glade_xml_node_verify_silent (node, GLADE_XML_TAG_WIDGET) ||
-        glade_xml_node_verify_silent (node, GLADE_XML_TAG_TEMPLATE)))
+        glade_xml_node_verify_silent (node, GLADE_XML_TAG_EXTERNAL_OBJECT)))
     return;
 
   /* Skip properties that are default by original pspec default
diff --git a/gladeui/glade-widget.c b/gladeui/glade-widget.c
index 405856c..9c64081 100644
--- a/gladeui/glade-widget.c
+++ b/gladeui/glade-widget.c
@@ -3788,7 +3788,7 @@ glade_widget_read (GladeProject * project,
   if (glade_project_load_cancelled (project))
     return NULL;
 
-  is_tmpl = (parent == NULL && glade_xml_node_verify_silent (node, GLADE_XML_TAG_TEMPLATE));
+  is_tmpl = (parent == NULL && glade_xml_node_verify_silent (node, GLADE_XML_TAG_EXTERNAL_OBJECT));
 
   if (!is_tmpl && !glade_xml_node_verify_silent (node, GLADE_XML_TAG_WIDGET))
     return NULL;
@@ -3997,7 +3997,7 @@ glade_widget_write (GladeWidget * widget,
       return;
     }
 
-  widget_node = glade_xml_node_new (context, (tmpl) ? GLADE_XML_TAG_TEMPLATE : GLADE_XML_TAG_WIDGET);
+  widget_node = glade_xml_node_new (context, (tmpl) ? GLADE_XML_TAG_EXTERNAL_OBJECT : GLADE_XML_TAG_WIDGET);
   glade_xml_node_append_child (node, widget_node);
 
   /* Set class and id */
diff --git a/gladeui/glade-xml-utils.h b/gladeui/glade-xml-utils.h
index ff9b676..33a0c99 100644
--- a/gladeui/glade-xml-utils.h
+++ b/gladeui/glade-xml-utils.h
@@ -36,7 +36,7 @@ typedef struct _GladeProject        GladeProject;
 /* Used for catalog tags and attributes */
 #define GLADE_XML_TAG_PROJECT                     "interface"
 #define GLADE_XML_TAG_WIDGET                      "object"
-#define GLADE_XML_TAG_TEMPLATE                    "template"
+#define GLADE_XML_TAG_EXTERNAL_OBJECT             "external-object"
 
 #define GLADE_XML_TAG_VERSION                     "version"
 #define GLADE_XML_TAG_REQUIRES                    "requires"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]