[gnome-builder] libide/tweaks: allow settings to be defined in groups
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide/tweaks: allow settings to be defined in groups
- Date: Wed, 10 Aug 2022 20:53:50 +0000 (UTC)
commit d9dede90f2fa28164f99a8fd72ffa26c8db8922d
Author: Christian Hergert <chergert redhat com>
Date: Wed Aug 10 13:51:32 2022 -0700
libide/tweaks: allow settings to be defined in groups
They still get attached to the page so we have a single muxer, but this
at least makes it nicer to define in .ui files without extending the
internal-child directly.
There is possibility for clash if you had app vs project in the same
page, but that should definitely be avoided from a UI standpoint anyway.
src/libide/tweaks/ide-tweaks-group.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/tweaks/ide-tweaks-group.c b/src/libide/tweaks/ide-tweaks-group.c
index b549c70e4..b38a1af2c 100644
--- a/src/libide/tweaks/ide-tweaks-group.c
+++ b/src/libide/tweaks/ide-tweaks-group.c
@@ -23,6 +23,7 @@
#include "config.h"
#include "ide-tweaks-group.h"
+#include "ide-tweaks-settings.h"
#include "ide-tweaks-widget.h"
struct _IdeTweaksGroup
@@ -48,7 +49,8 @@ ide_tweaks_group_accepts (IdeTweaksItem *item,
g_assert (IDE_IS_TWEAKS_GROUP (item));
g_assert (IDE_IS_TWEAKS_ITEM (child));
- return IDE_IS_TWEAKS_WIDGET (child);
+ return IDE_IS_TWEAKS_WIDGET (child) ||
+ IDE_IS_TWEAKS_SETTINGS (child);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]