[gtk/text: 21/26] defaultvalue test: Exempt GtkText::buffer
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/text: 21/26] defaultvalue test: Exempt GtkText::buffer
- Date: Tue, 19 Feb 2019 05:06:18 +0000 (UTC)
commit ef2a587d3c2a4c2738a21dcc232a93bab411ec70
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Feb 17 15:50:59 2019 -0500
defaultvalue test: Exempt GtkText::buffer
It gets created on-demand, so isn't NULL.
testsuite/gtk/defaultvalue.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/testsuite/gtk/defaultvalue.c b/testsuite/gtk/defaultvalue.c
index 9ef83c1aaf..603947d60c 100644
--- a/testsuite/gtk/defaultvalue.c
+++ b/testsuite/gtk/defaultvalue.c
@@ -228,12 +228,19 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
G_GNUC_END_IGNORE_DEPRECATIONS
- /* Default invisible char is determined at runtime */
+ /* Default invisible char is determined at runtime,
+ * and buffer gets created on-demand
+ */
if (g_type_is_a (type, GTK_TYPE_ENTRY) &&
(strcmp (pspec->name, "invisible-char") == 0 ||
strcmp (pspec->name, "buffer") == 0))
continue;
+ if (g_type_is_a (type, GTK_TYPE_TEXT) &&
+ (strcmp (pspec->name, "invisible-char") == 0 ||
+ strcmp (pspec->name, "buffer") == 0))
+ continue;
+
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
if (g_type_is_a (type, GTK_TYPE_ENTRY_COMPLETION) &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]