[gnome-builder/wip/gtk4-port: 161/1774] libide/core: add missing guards and exports
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 161/1774] libide/core: add missing guards and exports
- Date: Mon, 11 Jul 2022 22:30:59 +0000 (UTC)
commit 73febd4b4e790cae90d353bc2d100a59534f7da3
Author: Christian Hergert <chergert redhat com>
Date: Tue Mar 29 11:39:39 2022 -0700
libide/core: add missing guards and exports
src/libide/core/ide-binding-group.h | 15 ++++++++++++++-
src/libide/core/ide-signal-group.h | 4 ++++
2 files changed, 18 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/core/ide-binding-group.h b/src/libide/core/ide-binding-group.h
index c085f40e9..bcf2639d6 100644
--- a/src/libide/core/ide-binding-group.h
+++ b/src/libide/core/ide-binding-group.h
@@ -19,23 +19,35 @@
#pragma once
-#include <gio/gio.h>
+#if !defined (IDE_CORE_INSIDE) && !defined (IDE_CORE_COMPILATION)
+# error "Only <libide-core.h> can be included directly."
+#endif
+
+#include <glib-object.h>
+
+#include "ide-version-macros.h"
G_BEGIN_DECLS
#define IDE_TYPE_BINDING_GROUP (ide_binding_group_get_type())
+IDE_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (IdeBindingGroup, ide_binding_group, IDE, BINDING_GROUP, GObject)
+IDE_AVAILABLE_IN_ALL
IdeBindingGroup *ide_binding_group_new (void);
+IDE_AVAILABLE_IN_ALL
GObject *ide_binding_group_get_source (IdeBindingGroup *self);
+IDE_AVAILABLE_IN_ALL
void ide_binding_group_set_source (IdeBindingGroup *self,
gpointer source);
+IDE_AVAILABLE_IN_ALL
void ide_binding_group_bind (IdeBindingGroup *self,
const gchar *source_property,
gpointer target,
const gchar *target_property,
GBindingFlags flags);
+IDE_AVAILABLE_IN_ALL
void ide_binding_group_bind_full (IdeBindingGroup *self,
const gchar *source_property,
gpointer target,
@@ -45,6 +57,7 @@ void ide_binding_group_bind_full (IdeBindingGroup *se
GBindingTransformFunc transform_from,
gpointer user_data,
GDestroyNotify user_data_destroy);
+IDE_AVAILABLE_IN_ALL
void ide_binding_group_bind_with_closures (IdeBindingGroup *self,
const gchar *source_property,
gpointer target,
diff --git a/src/libide/core/ide-signal-group.h b/src/libide/core/ide-signal-group.h
index 6fa09f620..c15630497 100644
--- a/src/libide/core/ide-signal-group.h
+++ b/src/libide/core/ide-signal-group.h
@@ -19,6 +19,10 @@
#pragma once
+#if !defined (IDE_CORE_INSIDE) && !defined (IDE_CORE_COMPILATION)
+# error "Only <libide-core.h> can be included directly."
+#endif
+
#include <glib-object.h>
#include "ide-version-macros.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]