[gnome-builder] libide/gui: expose plugin list to tweaks
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide/gui: expose plugin list to tweaks
- Date: Wed, 17 Aug 2022 21:52:40 +0000 (UTC)
commit 231063e265ddba9f7b2005d02568ef235a52cad8
Author: Christian Hergert <chergert redhat com>
Date: Wed Aug 17 14:52:30 2022 -0700
libide/gui: expose plugin list to tweaks
src/libide/gui/ide-application-actions.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/libide/gui/ide-application-actions.c b/src/libide/gui/ide-application-actions.c
index 8a718d2d8..b95de0b76 100644
--- a/src/libide/gui/ide-application-actions.c
+++ b/src/libide/gui/ide-application-actions.c
@@ -48,6 +48,7 @@ ide_application_actions_tweaks (GSimpleAction *action,
"resource:///org/gnome/libide-gui/tweaks-plugins.ui",
};
IdeApplication *self = user_data;
+ g_autoptr(GListModel) plugins = NULL;
g_autoptr(IdeTweaks) tweaks = NULL;
IdeTweaksWindow *window;
GtkWindow *toplevel = NULL;
@@ -76,6 +77,10 @@ ide_application_actions_tweaks (GSimpleAction *action,
tweaks = ide_tweaks_new ();
+ /* Give access to all the known plugins */
+ plugins = _ide_application_list_plugins (self);
+ ide_tweaks_expose_object (tweaks, "Plugins", G_OBJECT (plugins));
+
/* Load our base tweaks scaffolding */
for (guint i = 0; i < G_N_ELEMENTS (tweaks_resources); i++)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]