forked from AuroraMiddleware/gtk
Dump AtkStreamableContent properties
Also, simplify the format for links slightly.
This commit is contained in:
parent
bdab7cc8ff
commit
901395db67
@ -370,20 +370,34 @@ dump_atk_hyperlink_impl (AtkHyperlinkImpl *impl,
|
|||||||
|
|
||||||
atk_link = atk_hyperlink_impl_get_hyperlink (impl);
|
atk_link = atk_hyperlink_impl_get_hyperlink (impl);
|
||||||
|
|
||||||
g_string_append_printf (string, "%*sanchors: %d\n", depth, "", atk_hyperlink_get_n_anchors (atk_link));
|
g_string_append_printf (string, "%*sanchors:", depth, "");
|
||||||
|
|
||||||
for (i = 0; i < atk_hyperlink_get_n_anchors (atk_link); i++)
|
for (i = 0; i < atk_hyperlink_get_n_anchors (atk_link); i++)
|
||||||
{
|
{
|
||||||
gchar *uri;
|
gchar *uri;
|
||||||
|
|
||||||
uri = atk_hyperlink_get_uri (atk_link, i);
|
uri = atk_hyperlink_get_uri (atk_link, i);
|
||||||
g_string_append_printf (string, "%*suri %d: %s\n", depth, "", i, uri);
|
g_string_append_printf (string, " %s", uri);
|
||||||
g_free (uri);
|
g_free (uri);
|
||||||
}
|
}
|
||||||
|
g_string_append_c (string, '\n');
|
||||||
|
|
||||||
g_object_unref (atk_link);
|
g_object_unref (atk_link);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
dump_atk_streamable_content (AtkStreamableContent *content,
|
||||||
|
guint depth,
|
||||||
|
GString *string)
|
||||||
|
{
|
||||||
|
gint i;
|
||||||
|
|
||||||
|
g_string_append_printf (string, "%*smime types:", depth, "");
|
||||||
|
for (i = 0; i < atk_streamable_content_get_n_mime_types (content); i++)
|
||||||
|
g_string_append_printf (string, " %s", atk_streamable_content_get_mime_type (content, i));
|
||||||
|
g_string_append_c (string, '\n');
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
dump_accessible (AtkObject *accessible,
|
dump_accessible (AtkObject *accessible,
|
||||||
guint depth,
|
guint depth,
|
||||||
@ -425,6 +439,9 @@ dump_accessible (AtkObject *accessible,
|
|||||||
if (ATK_IS_HYPERLINK_IMPL (accessible))
|
if (ATK_IS_HYPERLINK_IMPL (accessible))
|
||||||
dump_atk_hyperlink_impl (ATK_HYPERLINK_IMPL (accessible), depth, string);
|
dump_atk_hyperlink_impl (ATK_HYPERLINK_IMPL (accessible), depth, string);
|
||||||
|
|
||||||
|
if (ATK_IS_STREAMABLE_CONTENT (accessible))
|
||||||
|
dump_atk_streamable_content (ATK_STREAMABLE_CONTENT (accessible), depth, string);
|
||||||
|
|
||||||
for (i = 0; i < atk_object_get_n_accessible_children (accessible); i++)
|
for (i = 0; i < atk_object_get_n_accessible_children (accessible); i++)
|
||||||
{
|
{
|
||||||
AtkObject *child = atk_object_ref_accessible_child (accessible, i);
|
AtkObject *child = atk_object_ref_accessible_child (accessible, i);
|
||||||
|
@ -19,5 +19,4 @@ window1
|
|||||||
action 0 name: click
|
action 0 name: click
|
||||||
action 1 name: press
|
action 1 name: press
|
||||||
action 2 name: release
|
action 2 name: release
|
||||||
anchors: 1
|
anchors: http://www.gtk.org
|
||||||
uri 0: http://www.gtk.org
|
|
||||||
|
Loading…
Reference in New Issue
Block a user