[pyatspi2] tests: replace TRACE with g_print
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pyatspi2] tests: replace TRACE with g_print
- Date: Mon, 3 Oct 2022 18:35:10 +0000 (UTC)
commit 9d1bc8cfad9e04b3ce66d1243212263cdd0732a9
Author: Mike Gorse <mgorse suse com>
Date: Mon Oct 3 13:30:04 2022 -0500
tests: replace TRACE with g_print
TRACE is not defined anywhere. It's a wonder that this code ever compiled.
Fixes #10
tests/dummyatk/my-atk-text.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/dummyatk/my-atk-text.c b/tests/dummyatk/my-atk-text.c
index 88d68adb..a7f0c989 100644
--- a/tests/dummyatk/my-atk-text.c
+++ b/tests/dummyatk/my-atk-text.c
@@ -46,7 +46,7 @@ AtkAttribute* attribute_copy(AtkAttribute* attr)
}
void attribute_print(AtkAttribute* attr)
{
- TRACE("name=%s, value=%s", attr->name, attr->value);
+ g_print("name=%s, value=%s", attr->name, attr->value);
}
//AtkAttributeSet
@@ -61,7 +61,7 @@ AtkAttributeSet* attribute_set_copy(AtkAttributeSet* attr)
void attribute_set_print(AtkAttributeSet *set)
{
if(set == NULL)
- TRACE0("(empty)");
+ g_print("(empty)");
else
g_slist_foreach(set, (GFunc)attribute_print, NULL);
}
@@ -148,7 +148,7 @@ void range_free(Range* range)
}
void range_print(const Range*range)
{
- TRACE("[%d,%d):", range->start, range->end);
+ g_print("[%d,%d):", range->start, range->end);
attribute_set_print(range->attributeSet);
}
//only for correct list of ranges - ranges shouldn't intersect
@@ -752,7 +752,7 @@ AtkAttributeSet* my_atk_text_get_run_attributes(AtkText* text, gint offset,
GList *attributes = ((MyAtkText*)text)->attributes;
if(offset < 0 || offset >= my_atk_text_get_character_count(text))
{
- TRACE0("Incorrect value of offset.");
+ g_print("Incorrect value of offset.");
return NULL;
}
gint start = -1, end = -1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]