defaultvalue test: Exempt GtkText::buffer

It gets created on-demand, so isn't NULL.
This commit is contained in:
Matthias Clasen 2019-02-17 15:50:59 -05:00
parent 613f8ceacf
commit 996a4246fb

View File

@ -228,12 +228,19 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
G_GNUC_END_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) && if (g_type_is_a (type, GTK_TYPE_ENTRY) &&
(strcmp (pspec->name, "invisible-char") == 0 || (strcmp (pspec->name, "invisible-char") == 0 ||
strcmp (pspec->name, "buffer") == 0)) strcmp (pspec->name, "buffer") == 0))
continue; 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 G_GNUC_BEGIN_IGNORE_DEPRECATIONS
if (g_type_is_a (type, GTK_TYPE_ENTRY_COMPLETION) && if (g_type_is_a (type, GTK_TYPE_ENTRY_COMPLETION) &&