[gtk] Exempt "pages" properties from defaultvalue test
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] Exempt "pages" properties from defaultvalue test
- Date: Wed, 13 Feb 2019 23:16:08 +0000 (UTC)
commit ae9a29f8ce122a6263404eb60043aa968c26d90a
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Feb 13 18:14:48 2019 -0500
Exempt "pages" properties from defaultvalue test
Ironically, these properties are too good - they always
give you a proper value, which is unfortunately different
from the declared default value, which is NULL. So, don't
check these.
testsuite/gtk/defaultvalue.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/testsuite/gtk/defaultvalue.c b/testsuite/gtk/defaultvalue.c
index f4c335037f..9ef83c1aaf 100644
--- a/testsuite/gtk/defaultvalue.c
+++ b/testsuite/gtk/defaultvalue.c
@@ -157,7 +157,12 @@ test_type (gconstpointer data)
continue;
if (g_type_is_a (type, GTK_TYPE_ASSISTANT) &&
- (strcmp (pspec->name, "use-header-bar") == 0))
+ (strcmp (pspec->name, "use-header-bar") == 0 ||
+ strcmp (pspec->name, "pages") == 0)) /* pages always gets a non-NULL value */
+ continue;
+
+ if (g_type_is_a (type, GTK_TYPE_STACK) &&
+ (strcmp (pspec->name, "pages") == 0)) /* pages always gets a non-NULL value */
continue;
if (g_type_is_a (type, GTK_TYPE_POPOVER) &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]