]> Pileus Git - ~andy/gtk/commitdiff
Don't print out attributes for the <ui> root node. (#151752, Lorenzo Gil
authorMatthias Clasen <maclas@gmx.de>
Sat, 4 Sep 2004 02:55:13 +0000 (02:55 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sat, 4 Sep 2004 02:55:13 +0000 (02:55 +0000)
Fri Sep  3 22:45:03 2004  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkuimanager.c (print_node): Don't print out attributes
for the <ui> root node.  (#151752, Lorenzo Gil Sánchez)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkuimanager.c

index 93a8896317b8f6754d3837ed2c8622d4de3e4b37..eaa86b3cbda947348aae8ce8fbe24ac3652ba154 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Sep  3 22:45:03 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkuimanager.c (print_node): Don't print out attributes
+       for the <ui> root node.  (#151752, Lorenzo Gil Sánchez)
+
 Sat Sep  4 02:38:57 2004  Søren Sandmann  <sandmann@redhat.com>
 
        * gtk/gtktoolbar.c (position): Accelerate the animation when it
index 93a8896317b8f6754d3837ed2c8622d4de3e4b37..eaa86b3cbda947348aae8ce8fbe24ac3652ba154 100644 (file)
@@ -1,3 +1,8 @@
+Fri Sep  3 22:45:03 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkuimanager.c (print_node): Don't print out attributes
+       for the <ui> root node.  (#151752, Lorenzo Gil Sánchez)
+
 Sat Sep  4 02:38:57 2004  Søren Sandmann  <sandmann@redhat.com>
 
        * gtk/gtktoolbar.c (position): Accelerate the animation when it
index 93a8896317b8f6754d3837ed2c8622d4de3e4b37..eaa86b3cbda947348aae8ce8fbe24ac3652ba154 100644 (file)
@@ -1,3 +1,8 @@
+Fri Sep  3 22:45:03 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkuimanager.c (print_node): Don't print out attributes
+       for the <ui> root node.  (#151752, Lorenzo Gil Sánchez)
+
 Sat Sep  4 02:38:57 2004  Søren Sandmann  <sandmann@redhat.com>
 
        * gtk/gtktoolbar.c (position): Accelerate the animation when it
index 93a8896317b8f6754d3837ed2c8622d4de3e4b37..eaa86b3cbda947348aae8ce8fbe24ac3652ba154 100644 (file)
@@ -1,3 +1,8 @@
+Fri Sep  3 22:45:03 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkuimanager.c (print_node): Don't print out attributes
+       for the <ui> root node.  (#151752, Lorenzo Gil Sánchez)
+
 Sat Sep  4 02:38:57 2004  Søren Sandmann  <sandmann@redhat.com>
 
        * gtk/gtktoolbar.c (position): Accelerate the animation when it
index 7133be1f0ed80b5c626b78e2cb2c89c83c804e12..459f97102c6e7d5296e29233b7598502394efb8b 100644 (file)
@@ -2673,12 +2673,15 @@ print_node (GtkUIManager *self,
   g_string_append_printf (buffer, open_tag_format[mnode->type],
                          indent_level, "");
 
-  if (mnode->name)
-    g_string_append_printf (buffer, " name=\"%s\"", mnode->name);
-
-  if (mnode->action_name)
-    g_string_append_printf (buffer, " action=\"%s\"",
-                            g_quark_to_string (mnode->action_name));
+  if (mnode->type != NODE_TYPE_ROOT)
+    {
+      if (mnode->name)
+       g_string_append_printf (buffer, " name=\"%s\"", mnode->name);
+      
+      if (mnode->action_name)
+       g_string_append_printf (buffer, " action=\"%s\"",
+                               g_quark_to_string (mnode->action_name));
+    }
 
   g_string_append (buffer,
                    close_tag_format[mnode->type] ? ">\n" : "/>\n");