summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarco Trevisan (TreviƱo) <mail@3v1n0.net>2021-05-19 00:10:29 +0200
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2021-07-09 21:08:35 +0000
commiteb0429d318c017b57b9e59de1d5b3f142a0f455e (patch)
treef060327a9e8b7ef964a3555fcaecae83a9c5fa57 /tests
parent6cf1d3e11d4f8035f33c3003d33f6465896025a5 (diff)
downloadglade-eb0429d318c017b57b9e59de1d5b3f142a0f455e.tar.gz
tests: Do not create a file icon when no filename is provided
This would fail otherwise as GFileIcon requires a GFile parameter on construction.
Diffstat (limited to 'tests')
-rw-r--r--tests/create-widgets.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/create-widgets.c b/tests/create-widgets.c
index 2094059d..db8311f8 100644
--- a/tests/create-widgets.c
+++ b/tests/create-widgets.c
@@ -106,6 +106,8 @@ main (int argc,
if (G_TYPE_IS_INSTANTIATABLE (adaptor_type) && !G_TYPE_IS_ABSTRACT (adaptor_type) &&
/* FIXME: can not create a themed icon without a name */
!g_type_is_a (adaptor_type, G_TYPE_THEMED_ICON) &&
+ /* FIXME: can not create a file icon without a file name */
+ !g_type_is_a (adaptor_type, G_TYPE_FILE_ICON) &&
/* FIXME: GtkPopoverMenu gives a few warnings */
!g_type_is_a (adaptor_type, GTK_TYPE_POPOVER_MENU) &&
/* FIXME: GtkFileChooserNative is hard to test here */