[gnome-builder/wip/gtk4-port: 1221/1774] libide/projects: default to having a locator
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 1221/1774] libide/projects: default to having a locator
- Date: Mon, 11 Jul 2022 22:31:38 +0000 (UTC)
commit 2954afaf65a22a76cb575e2038fedbdb4ce9d60b
Author: Christian Hergert <chergert redhat com>
Date: Fri May 27 18:11:19 2022 -0700
libide/projects: default to having a locator
src/libide/projects/ide-template-base.c | 3 +++
src/libide/projects/ide-template-base.h | 3 ++-
2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/projects/ide-template-base.c b/src/libide/projects/ide-template-base.c
index 96bd4141a..b0922320f 100644
--- a/src/libide/projects/ide-template-base.c
+++ b/src/libide/projects/ide-template-base.c
@@ -28,6 +28,7 @@
#include <string.h>
#include "ide-template-base.h"
+#include "ide-template-locator.h"
#define TIMEOUT_INTERVAL_MSEC 17
#define TIMEOUT_DURATION_MSEC 2
@@ -260,6 +261,8 @@ ide_template_base_init (IdeTemplateBase *self)
{
IdeTemplateBasePrivate *priv = ide_template_base_get_instance_private (self);
+ priv->locator = TMPL_TEMPLATE_LOCATOR (ide_template_locator_new ());
+
priv->files = g_array_new (FALSE, TRUE, sizeof (FileExpansion));
g_array_set_clear_func (priv->files, clear_file_expansion);
}
diff --git a/src/libide/projects/ide-template-base.h b/src/libide/projects/ide-template-base.h
index 741275c0b..cd38d80b9 100644
--- a/src/libide/projects/ide-template-base.h
+++ b/src/libide/projects/ide-template-base.h
@@ -24,9 +24,10 @@
# error "Only <libide-projects.h> can be included directly."
#endif
-#include <libide-core.h>
#include <tmpl-glib.h>
+#include <libide-core.h>
+
G_BEGIN_DECLS
#define IDE_TYPE_TEMPLATE_BASE (ide_template_base_get_type())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]