[gnome-builder] libide/tweaks: allow factories in sections



commit e2193f842f035ed83a31c5323f844e5fc53a59c5
Author: Christian Hergert <chergert redhat com>
Date:   Wed Aug 17 18:02:41 2022 -0700

    libide/tweaks: allow factories in sections

 src/libide/tweaks/ide-tweaks-section.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/tweaks/ide-tweaks-section.c b/src/libide/tweaks/ide-tweaks-section.c
index 521397aec..1225df13c 100644
--- a/src/libide/tweaks/ide-tweaks-section.c
+++ b/src/libide/tweaks/ide-tweaks-section.c
@@ -22,6 +22,7 @@
 
 #include "config.h"
 
+#include "ide-tweaks-factory.h"
 #include "ide-tweaks-page.h"
 #include "ide-tweaks-section.h"
 
@@ -50,7 +51,8 @@ ide_tweaks_section_accepts (IdeTweaksItem *item,
   g_assert (IDE_IS_TWEAKS_ITEM (item));
   g_assert (IDE_IS_TWEAKS_ITEM (child));
 
-  return IDE_IS_TWEAKS_PAGE (child);
+  return IDE_IS_TWEAKS_PAGE (child) ||
+         IDE_IS_TWEAKS_FACTORY (child);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]