summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2023-03-20 22:46:43 -0700
committerChristian Hergert <chergert@redhat.com>2023-03-22 16:44:45 -0700
commit2c4499b87bd1b6540d4bcb9470e9cb73b02518b8 (patch)
treec7dcf44bcc736092f3fb4f3b91236c8b9519f96d
parentb433c0c8a95f123a825cb8ea40d7e45102e01c7f (diff)
downloadlibpeas-2c4499b87bd1b6540d4bcb9470e9cb73b02518b8.tar.gz
plugin-info: add PeasPluginInfo:hidden property
-rw-r--r--libpeas/peas-plugin-info.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libpeas/peas-plugin-info.c b/libpeas/peas-plugin-info.c
index 95d82a8..42058bc 100644
--- a/libpeas/peas-plugin-info.c
+++ b/libpeas/peas-plugin-info.c
@@ -74,6 +74,7 @@ enum {
PROP_DEPENDENCIES,
PROP_DESCRIPTION,
PROP_HELP_URI,
+ PROP_HIDDEN,
PROP_ICON_NAME,
PROP_LOADED,
PROP_MODULE_DIR,
@@ -147,6 +148,10 @@ peas_plugin_info_get_property (GObject *object,
g_value_set_string (value, peas_plugin_info_get_help_uri (info));
break;
+ case PROP_HIDDEN:
+ g_value_set_boolean (value, peas_plugin_info_is_hidden (info));
+ break;
+
case PROP_ICON_NAME:
g_value_set_string (value, peas_plugin_info_get_icon_name (info));
break;
@@ -238,6 +243,11 @@ peas_plugin_info_class_init (PeasPluginInfoClass *klass)
NULL,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
+ properties[PROP_HIDDEN] =
+ g_param_spec_boolean (I_("hidden"), NULL, NULL,
+ FALSE,
+ (G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
+
properties[PROP_HELP_URI] =
g_param_spec_string (I_("help-uri"), NULL, NULL,
NULL,