Commit db2da1de authored by Matthias Clasen's avatar Matthias Clasen

Sort text attributes alphabetically in dumps

parent 889b2714
This diff is collapsed.
......@@ -232,6 +232,15 @@ dump_attribute_set (GString *string,
}
}
static gint
compare_attr (gconstpointer a, gconstpointer b)
{
AtkAttribute *aattr = a;
AtkAttribute *battr = b;
return strcmp (aattr->name, battr->name);
}
static void
dump_text_attributes (GString *string,
gint depth,
......@@ -245,6 +254,8 @@ dump_text_attributes (GString *string,
if (attributes == NULL)
return;
attributes = g_slist_sort (attributes, compare_attr);
for (l = attributes; l; l = l->next)
{
attr = l->data;
......
......@@ -20,33 +20,33 @@ window1
text: Hello World!
character count: 12
caret offset: 0
default attributes: left-margin: 0
right-margin: 0
default attributes: bg-color: <omitted>
bg-full-height: 0
bg-stipple: false
direction: <omitted>
editable: false
family-name: <omitted>
fg-color: <omitted>
fg-stipple: false
indent: 0
invisible: false
editable: false
justification: left
language: <omitted>
left-margin: 0
pixels-above-lines: 0
pixels-below-lines: 0
pixels-inside-wrap: 0
bg-full-height: 0
scale: 1
right-margin: 0
rise: 0
underline: none
strikethrough: false
bg-stipple: false
fg-stipple: false
fg-color: <omitted>
bg-color: <omitted>
wrap-mode: word
justification: left
scale: 1
size: <omitted>
weight: <omitted>
family-name: <omitted>
stretch: <omitted>
variant: <omitted>
strikethrough: false
style: <omitted>
language: <omitted>
direction: <omitted>
underline: none
variant: <omitted>
weight: <omitted>
wrap-mode: word
<AtkImage>
image size: -1 x -1
image description: (null)
......
This diff is collapsed.
......@@ -19,33 +19,33 @@ window1
text: Button 1
character count: 8
caret offset: 0
default attributes: left-margin: 0
right-margin: 0
default attributes: bg-color: <omitted>
bg-full-height: 0
bg-stipple: false
direction: <omitted>
editable: false
family-name: <omitted>
fg-color: <omitted>
fg-stipple: false
indent: 0
invisible: false
editable: false
justification: left
language: <omitted>
left-margin: 0
pixels-above-lines: 0
pixels-below-lines: 0
pixels-inside-wrap: 0
bg-full-height: 0
scale: 1
right-margin: 0
rise: 0
underline: none
strikethrough: false
bg-stipple: false
fg-stipple: false
fg-color: <omitted>
bg-color: <omitted>
wrap-mode: word
justification: left
scale: 1
size: <omitted>
weight: <omitted>
family-name: <omitted>
stretch: <omitted>
variant: <omitted>
strikethrough: false
style: <omitted>
language: <omitted>
direction: <omitted>
underline: none
variant: <omitted>
weight: <omitted>
wrap-mode: word
<AtkImage>
image size: -1 x -1
image description: (null)
......@@ -66,33 +66,33 @@ window1
text: Button 2
character count: 8
caret offset: 0
default attributes: left-margin: 0
right-margin: 0
default attributes: bg-color: <omitted>
bg-full-height: 0
bg-stipple: false
direction: <omitted>
editable: false
family-name: <omitted>
fg-color: <omitted>
fg-stipple: false
indent: 0
invisible: false
editable: false
justification: left
language: <omitted>
left-margin: 0
pixels-above-lines: 0
pixels-below-lines: 0
pixels-inside-wrap: 0
bg-full-height: 0
scale: 1
right-margin: 0
rise: 0
underline: none
strikethrough: false
bg-stipple: false
fg-stipple: false
fg-color: <omitted>
bg-color: <omitted>
wrap-mode: word
justification: left
scale: 1
size: <omitted>
weight: <omitted>
family-name: <omitted>
stretch: <omitted>
variant: <omitted>
strikethrough: false
style: <omitted>
language: <omitted>
direction: <omitted>
underline: none
variant: <omitted>
weight: <omitted>
wrap-mode: word
<AtkImage>
image size: -1 x -1
image description: (null)
......@@ -123,33 +123,33 @@ window1
text: Close
character count: 5
caret offset: 0
default attributes: left-margin: 0
right-margin: 0
default attributes: bg-color: <omitted>
bg-full-height: 0
bg-stipple: false
direction: <omitted>
editable: false
family-name: <omitted>
fg-color: <omitted>
fg-stipple: false
indent: 0
invisible: false
editable: false
justification: left
language: <omitted>
left-margin: 0
pixels-above-lines: 0
pixels-below-lines: 0
pixels-inside-wrap: 0
bg-full-height: 0
scale: 1
right-margin: 0
rise: 0
underline: none
strikethrough: false
bg-stipple: false
fg-stipple: false
fg-color: <omitted>
bg-color: <omitted>
wrap-mode: word
justification: left
scale: 1
size: <omitted>
weight: <omitted>
family-name: <omitted>
stretch: <omitted>
variant: <omitted>
strikethrough: false
style: <omitted>
language: <omitted>
direction: <omitted>
underline: none
variant: <omitted>
weight: <omitted>
wrap-mode: word
<AtkImage>
image size: 20 x 20
image description: (null)
......@@ -172,33 +172,33 @@ window1
text: Cancel
character count: 6
caret offset: 0
default attributes: left-margin: 0
right-margin: 0
default attributes: bg-color: <omitted>
bg-full-height: 0
bg-stipple: false
direction: <omitted>
editable: false
family-name: <omitted>
fg-color: <omitted>
fg-stipple: false
indent: 0
invisible: false
editable: false
justification: left
language: <omitted>
left-margin: 0
pixels-above-lines: 0
pixels-below-lines: 0
pixels-inside-wrap: 0
bg-full-height: 0
scale: 1
right-margin: 0
rise: 0
underline: none
strikethrough: false
bg-stipple: false
fg-stipple: false
fg-color: <omitted>
bg-color: <omitted>
wrap-mode: word
justification: left
scale: 1
size: <omitted>
weight: <omitted>
family-name: <omitted>
stretch: <omitted>
variant: <omitted>
strikethrough: false
style: <omitted>
language: <omitted>
direction: <omitted>
underline: none
variant: <omitted>
weight: <omitted>
wrap-mode: word
<AtkImage>
image size: 20 x 20
image description: (null)
......@@ -221,33 +221,33 @@ window1
text: Finish
character count: 6
caret offset: 0
default attributes: left-margin: 0
right-margin: 0
default attributes: bg-color: <omitted>
bg-full-height: 0
bg-stipple: false
direction: <omitted>
editable: false
family-name: <omitted>
fg-color: <omitted>
fg-stipple: false
indent: 0
invisible: false
editable: false
justification: left
language: <omitted>
left-margin: 0
pixels-above-lines: 0
pixels-below-lines: 0
pixels-inside-wrap: 0
bg-full-height: 0
scale: 1
right-margin: 0
rise: 0
underline: none
strikethrough: false
bg-stipple: false
fg-stipple: false
fg-color: <omitted>
bg-color: <omitted>
wrap-mode: word
justification: left
scale: 1
size: <omitted>
weight: <omitted>
family-name: <omitted>
stretch: <omitted>
variant: <omitted>
strikethrough: false
style: <omitted>
language: <omitted>
direction: <omitted>
underline: none
variant: <omitted>
weight: <omitted>
wrap-mode: word
<AtkImage>
image size: -1 x -1
image description: (null)
......@@ -270,33 +270,33 @@ window1
text: Go Back
character count: 7
caret offset: 0
default attributes: left-margin: 0
right-margin: 0
default attributes: bg-color: <omitted>
bg-full-height: 0
bg-stipple: false
direction: <omitted>
editable: false
family-name: <omitted>
fg-color: <omitted>
fg-stipple: false
indent: 0
invisible: false
editable: false
justification: left
language: <omitted>
left-margin: 0
pixels-above-lines: 0
pixels-below-lines: 0
pixels-inside-wrap: 0
bg-full-height: 0
scale: 1
right-margin: 0
rise: 0
underline: none
strikethrough: false
bg-stipple: false
fg-stipple: false
fg-color: <omitted>
bg-color: <omitted>
wrap-mode: word
justification: left
scale: 1
size: <omitted>
weight: <omitted>
family-name: <omitted>
stretch: <omitted>
variant: <omitted>
strikethrough: false
style: <omitted>
language: <omitted>
direction: <omitted>
underline: none
variant: <omitted>
weight: <omitted>
wrap-mode: word
<AtkImage>
image size: -1 x -1
image description: (null)
......@@ -319,33 +319,33 @@ window1
text: Continue
character count: 8
caret offset: 0
default attributes: left-margin: 0
right-margin: 0
default attributes: bg-color: <omitted>
bg-full-height: 0
bg-stipple: false
direction: <omitted>
editable: false
family-name: <omitted>
fg-color: <omitted>
fg-stipple: false
indent: 0
invisible: false
editable: false
justification: left
language: <omitted>
left-margin: 0
pixels-above-lines: 0
pixels-below-lines: 0
pixels-inside-wrap: 0
bg-full-height: 0
scale: 1
right-margin: 0
rise: 0
underline: none
strikethrough: false
bg-stipple: false
fg-stipple: false
fg-color: <omitted>
bg-color: <omitted>
wrap-mode: word
justification: left
scale: 1
size: <omitted>
weight: <omitted>
family-name: <omitted>
stretch: <omitted>
variant: <omitted>
strikethrough: false
style: <omitted>
language: <omitted>
direction: <omitted>
underline: none
variant: <omitted>
weight: <omitted>
wrap-mode: word
<AtkImage>
image size: 20 x 20
image description: (null)
......@@ -368,33 +368,33 @@ window1
text: Apply
character count: 5
caret offset: 0
default attributes: left-margin: 0
right-margin: 0
default attributes: bg-color: <omitted>
bg-full-height: 0
bg-stipple: false
direction: <omitted>
editable: false
family-name: <omitted>
fg-color: <omitted>
fg-stipple: false
indent: 0
invisible: false
editable: false
justification: left
language: <omitted>
left-margin: 0
pixels-above-lines: 0
pixels-below-lines: 0
pixels-inside-wrap: 0
bg-full-height: 0
scale: 1
right-margin: 0
rise: 0
underline: none
strikethrough: false
bg-stipple: false
fg-stipple: false
fg-color: <omitted>
bg-color: <omitted>
wrap-mode: word
justification: left
scale: 1
size: <omitted>
weight: <omitted>
family-name: <omitted>
stretch: <omitted>
variant: <omitted>
strikethrough: false
style: <omitted>
language: <omitted>
direction: <omitted>
underline: none
variant: <omitted>
weight: <omitted>
wrap-mode: word
<AtkImage>
image size: 20 x 20
image description: (null)
......
......@@ -44,33 +44,33 @@ window1
text: Hello World!
character count: 12
caret offset: 0
default attributes: left-margin: 0
right-margin: 0
default attributes: bg-color: <omitted>
bg-full-height: 0
bg-stipple: false
direction: <omitted>
editable: false
family-name: <omitted>
fg-color: <omitted>
fg-stipple: false
indent: 0
invisible: false
editable: false
justification: left
language: <omitted>
left-margin: 0
pixels-above-lines: 0
pixels-below-lines: 0
pixels-inside-wrap: 0
bg-full-height: 0
scale: 1
right-margin: 0
rise: 0
underline: none
strikethrough: false
bg-stipple: false
fg-stipple: false
fg-color: <omitted>
bg-color: <omitted>
wrap-mode: word
justification: left
scale: 1
size: <omitted>
weight: <omitted>
family-name: <omitted>
stretch: <omitted>
variant: <omitted>
strikethrough: false
style: <omitted>
language: <omitted>
direction: <omitted>
underline: none
variant: <omitted>
weight: <omitted>
wrap-mode: word
<AtkImage>
image size: -1 x -1
image description: (null)
......@@ -94,33 +94,33 @@ window1
text: Hello World!
character count: 12
caret offset: 0
default attributes: left-margin: 0
right-margin: 0
default attributes: bg-color: <omitted>
bg-full-height: 0
bg-stipple: false
direction: <omitted>
editable: false
family-name: <omitted>
fg-color: <omitted>
fg-stipple: false
indent: 0
invisible: false
editable: false
justification: left
language: <omitted>
left-margin: 0
pixels-above-lines: 0
pixels-below-lines: 0
pixels-inside-wrap: 0
bg-full-height: 0
scale: 1
right-margin: 0
rise: 0
underline: none
strikethrough: false
bg-stipple: false
fg-stipple: false
fg-color: <omitted>
bg-color: <omitted>
wrap-mode: word
justification: left
scale: 1
size: <omitted>
weight: <omitted>
family-name: <omitted>
stretch: <omitted>
variant: <omitted>
strikethrough: false
style: <omitted>
language: <omitted>
direction: <omitted>
underline: none
variant: <omitted>
weight: <omitted>
wrap-mode: word
<AtkImage>
image size: -1 x -1
image description: (null)
......@@ -142,33 +142,33 @@ window1
text: Hello World!
character count: 12
caret offset: 0
default attributes: left-margin: 0
right-margin: 0
default attributes: bg-color: <omitted>
bg-full-height: 0
bg-stipple: false
direction: <omitted>
editable: false
family-name: <omitted>
fg-color: <omitted>
fg-stipple: false
indent: 0
invisible: false
editable: false
justification: left
language: <omitted>
left-margin: 0
pixels-above-lines: 0
pixels-below-lines: 0
pixels-inside-wrap: 0
bg-full-height: 0
scale: 1
right-margin: 0
rise: 0
underline: none
strikethrough: false
bg-stipple: false
fg-stipple: false
fg-color: <omitted>
bg-color: <omitted>
wrap-mode: word
justification: left
scale: 1
size: <omitted>
weight: <omitted>
family-name: <omitted>
stretch: <omitted>
variant: <omitted>
strikethrough: false
style: <omitted>
language: <omitted>
direction: <omitted>
underline: none
variant: <omitted>
weight: <omitted>
wrap-mode: word
<AtkImage>
image size: -1 x -1
image description: (null)
......@@ -190,33 +190,33 @@ window1
text: Hello World!
character count: 12
caret offset: 0
default attributes: left-margin: 0
right-margin: 0
default attributes: bg-color: <omitted>
bg-full-height: 0
bg-stipple: false
direction: <omitted>
editable: false
family-name: <omitted>
fg-color: <omitted>
fg-stipple: false
indent: 0
invisible: false
editable: false
justification: left
language: <omitted>
left-margin: 0
pixels-above-lines: 0
pixels-below-lines: 0
pixels-inside-wrap: 0
bg-full-height: 0
scale: 1
right-margin: 0
rise: 0
underline: none
strikethrough: false
bg-stipple: false
fg-stipple: false
fg-color: <omitted>
bg-color: <omitted>
wrap-mode: word
justification: left
scale: 1
size: <omitted>
weight: <omitted>
family-name: <omitted>
stretch: <omitted>
variant: <omitted>
strikethrough: false
style: <omitted>
language: <omitted>
direction: <omitted>
underline: none
variant: <omitted>
weight: <omitted>
wrap-mode: word
<AtkImage>
image size: -1 x -1
image description: (null)
......
This diff is collapsed.
......@@ -28,33 +28,33 @@ window1
text: text
character count: 4
caret offset: 0
default attributes: left-margin: 0
right-margin: 0
default attributes: bg-color: <omitted>
bg-full-height: 0
bg-stipple: false
direction: <omitted>
editable: false
family-name: <omitted>
fg-color: <omitted>
fg-stipple: false
indent: 0
invisible: false
editable: false
justification: left
language: <omitted>
left-margin: 0
pixels-above-lines: 0
pixels-below-lines: 0
pixels-inside-wrap: 0
bg-full-height: 0
scale: 1
right-margin: 0
rise: 0
underline: none
strikethrough: false
bg-stipple: false
fg-stipple: false
fg-color: <omitted>
bg-color: <omitted>
wrap-mode: word
justification: left
scale: 1
size: <omitted>
weight: <omitted>
family-name: <omitted>
stretch: <omitted>
variant: <omitted>
strikethrough: false
style: <omitted>
language: <omitted>
direction: <omitted>
underline: none
variant: <omitted>
weight: <omitted>
wrap-mode: word
<AtkAction>
action 0 name: activate
spinbutton1
......@@ -70,33 +70,33 @@ window1
text:
character count: 0
caret offset: 0
default attributes: left-margin: 0
right-margin: 0
default attributes: bg-color: <omitted>
bg-full-height: 0
bg-stipple: false
direction: <omitted>
editable: false
family-name: <omitted>
fg-color: <omitted>
fg-stipple: false
indent: 0
invisible: false
editable: false
justification: left
language: <omitted>
left-margin: 0
pixels-above-lines: 0
pixels-below-lines: 0