diff options
author | Christian Hergert <chergert@redhat.com> | 2023-03-17 14:44:12 -0700 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2023-03-22 16:44:35 -0700 |
commit | 1fc7bcd0251fb02e41298c96a5c9184526c6a699 (patch) | |
tree | 0766070684181079a74d8a2d906fedb92c054fca /tests | |
parent | ea348fc01180d135c4d3d59eede52e48ea906a43 (diff) | |
download | libpeas-1fc7bcd0251fb02e41298c96a5c9184526c6a699.tar.gz |
plugin-info: expose various data as properties
This allows for data binding using g_object_bind_property() and similar
in applications.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libpeas/plugin-info.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/libpeas/plugin-info.c b/tests/libpeas/plugin-info.c index 75a58d3..8253811 100644 --- a/tests/libpeas/plugin-info.c +++ b/tests/libpeas/plugin-info.c @@ -93,6 +93,18 @@ test_plugin_info_verify_full_info (PeasEngine *engine) g_assert_cmpstr (peas_plugin_info_get_external_data (info, "External"), ==, "external data"); g_assert_cmpstr (peas_plugin_info_get_external_data (info, "X-External"), ==, "external data"); + + { + static const char *strprops[] = { "name", "description", "icon-name", "website", "copyright", "version", "help-uri", NULL }; + + for (guint i = 0; strprops[i]; i++) + { + char *str = NULL; + g_object_get (info, strprops[i], &str, NULL); + g_assert_nonnull (str); + g_free (str); + } + } } static void |