forked from AuroraMiddleware/gtk
Merge from 2.4:
2004-05-05 Matthias Clasen <mclasen@redhat.com> Merge from 2.4: * gtk/gtkuimanager.c (print_node): Make the output parseable. (#141929, Sven Neumann)
This commit is contained in:
parent
25f3824e61
commit
37374c6245
@ -1,3 +1,10 @@
|
||||
2004-05-05 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Merge from 2.4:
|
||||
|
||||
* gtk/gtkuimanager.c (print_node): Make the output
|
||||
parseable. (#141929, Sven Neumann)
|
||||
|
||||
2004-05-05 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdkdnd-win32.c (gdk_drag_find_window_for_screen): Add
|
||||
|
@ -1,3 +1,10 @@
|
||||
2004-05-05 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Merge from 2.4:
|
||||
|
||||
* gtk/gtkuimanager.c (print_node): Make the output
|
||||
parseable. (#141929, Sven Neumann)
|
||||
|
||||
2004-05-05 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdkdnd-win32.c (gdk_drag_find_window_for_screen): Add
|
||||
|
@ -1,3 +1,10 @@
|
||||
2004-05-05 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Merge from 2.4:
|
||||
|
||||
* gtk/gtkuimanager.c (print_node): Make the output
|
||||
parseable. (#141929, Sven Neumann)
|
||||
|
||||
2004-05-05 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdkdnd-win32.c (gdk_drag_find_window_for_screen): Add
|
||||
|
@ -1,3 +1,10 @@
|
||||
2004-05-05 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Merge from 2.4:
|
||||
|
||||
* gtk/gtkuimanager.c (print_node): Make the output
|
||||
parseable. (#141929, Sven Neumann)
|
||||
|
||||
2004-05-05 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdkdnd-win32.c (gdk_drag_find_window_for_screen): Add
|
||||
|
@ -2577,18 +2577,18 @@ dirty_all_nodes (GtkUIManager *self)
|
||||
}
|
||||
|
||||
static const gchar *open_tag_format[] = {
|
||||
"%*s<UNDECIDED>\n",
|
||||
"%*s<ui>\n",
|
||||
"%*s<menubar name=\"%s\">\n",
|
||||
"%*s<menu name=\"%s\" action=\"%s\">\n",
|
||||
"%*s<toolbar name=\"%s\">\n",
|
||||
"%*s<placeholder name=\"%s\">\n",
|
||||
"%*s<placeholder name=\"%s\">\n",
|
||||
"%*s<popup name=\"%s\">\n",
|
||||
"%*s<menuitem name=\"%s\" action=\"%s\"/>\n",
|
||||
"%*s<toolitem name=\"%s\" action=\"%s\"/>\n",
|
||||
"%*s<separator name=\"%s\"/>\n",
|
||||
"%*s<accelerator name=\"%s\" action=\"%s\"/>\n",
|
||||
"%*s<UNDECIDED",
|
||||
"%*s<ui",
|
||||
"%*s<menubar",
|
||||
"%*s<menu",
|
||||
"%*s<toolbar",
|
||||
"%*s<placeholder",
|
||||
"%*s<placeholder",
|
||||
"%*s<popup",
|
||||
"%*s<menuitem",
|
||||
"%*s<toolitem",
|
||||
"%*s<separator",
|
||||
"%*s<accelerator"
|
||||
};
|
||||
|
||||
static const gchar *close_tag_format[] = {
|
||||
@ -2600,10 +2600,10 @@ static const gchar *close_tag_format[] = {
|
||||
"%*s</placeholder>\n",
|
||||
"%*s</placeholder>\n",
|
||||
"%*s</popup>\n",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
static void
|
||||
@ -2618,16 +2618,24 @@ print_node (GtkUIManager *self,
|
||||
mnode = node->data;
|
||||
|
||||
g_string_append_printf (buffer, open_tag_format[mnode->type],
|
||||
indent_level, "",
|
||||
mnode->name,
|
||||
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));
|
||||
|
||||
g_string_append (buffer,
|
||||
close_tag_format[mnode->type] ? ">\n" : "/>\n");
|
||||
|
||||
for (child = node->children; child != NULL; child = child->next)
|
||||
print_node (self, child, indent_level + 2, buffer);
|
||||
|
||||
if (close_tag_format[mnode->type])
|
||||
g_string_append_printf (buffer, close_tag_format[mnode->type],
|
||||
indent_level, "");
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user