[gnome-builder] libide-gui: update availability macros
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide-gui: update availability macros
- Date: Tue, 12 Jul 2022 06:39:12 +0000 (UTC)
commit 911b50db85f938d71c8db962f34f1cacbdd2d581
Author: Christian Hergert <chergert redhat com>
Date: Mon Jul 11 21:50:27 2022 -0700
libide-gui: update availability macros
src/libide/gui/ide-config-view-addin.h | 4 ++--
src/libide/gui/ide-environment-editor.h | 8 ++++----
src/libide/gui/ide-frame-addin.c | 8 --------
src/libide/gui/ide-frame-addin.h | 13 +++++--------
src/libide/gui/ide-marked-view.h | 9 +++++++--
src/libide/gui/ide-omni-bar-addin.h | 6 +++---
6 files changed, 21 insertions(+), 27 deletions(-)
---
diff --git a/src/libide/gui/ide-config-view-addin.h b/src/libide/gui/ide-config-view-addin.h
index 287bcbd24..5e8a2103b 100644
--- a/src/libide/gui/ide-config-view-addin.h
+++ b/src/libide/gui/ide-config-view-addin.h
@@ -28,7 +28,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_CONFIG_VIEW_ADDIN (ide_config_view_addin_get_type())
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
G_DECLARE_INTERFACE (IdeConfigViewAddin, ide_config_view_addin, IDE, CONFIG_VIEW_ADDIN, GObject)
struct _IdeConfigViewAddinInterface
@@ -40,7 +40,7 @@ struct _IdeConfigViewAddinInterface
IdeConfig *configuration);
};
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_config_view_addin_load (IdeConfigViewAddin *self,
DzlPreferences *preferences,
IdeConfig *configuration);
diff --git a/src/libide/gui/ide-environment-editor.h b/src/libide/gui/ide-environment-editor.h
index 2a5731da2..49cafb079 100644
--- a/src/libide/gui/ide-environment-editor.h
+++ b/src/libide/gui/ide-environment-editor.h
@@ -28,14 +28,14 @@ G_BEGIN_DECLS
#define IDE_TYPE_ENVIRONMENT_EDITOR (ide_environment_editor_get_type())
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (IdeEnvironmentEditor, ide_environment_editor, IDE, ENVIRONMENT_EDITOR, GtkListBox)
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
GtkWidget *ide_environment_editor_new (void);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeEnvironment *ide_environment_editor_get_environment (IdeEnvironmentEditor *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_environment_editor_set_environment (IdeEnvironmentEditor *self,
IdeEnvironment *environment);
diff --git a/src/libide/gui/ide-frame-addin.c b/src/libide/gui/ide-frame-addin.c
index 81893a80a..6db636e57 100644
--- a/src/libide/gui/ide-frame-addin.c
+++ b/src/libide/gui/ide-frame-addin.c
@@ -28,8 +28,6 @@
* SECTION:ide-frame-addin
* @title: IdeFrameAddin
* @short_description: addins created for every #IdeFrame
- *
- * Since: 3.32
*/
G_DEFINE_INTERFACE (IdeFrameAddin, ide_frame_addin, G_TYPE_OBJECT)
@@ -50,8 +48,6 @@ ide_frame_addin_default_init (IdeFrameAddinInterface *iface)
* This virtual method is called when the plugin should load itself.
* A new instance of the plugin is created for every #IdeFrame
* that is created in Builder.
- *
- * Since: 3.32
*/
void
ide_frame_addin_load (IdeFrameAddin *self,
@@ -74,8 +70,6 @@ ide_frame_addin_load (IdeFrameAddin *self,
*
* This virtual method is called when the plugin should unload itself.
* It should revert anything performed via ide_frame_addin_load().
- *
- * Since: 3.32
*/
void
ide_frame_addin_unload (IdeFrameAddin *self,
@@ -96,8 +90,6 @@ ide_frame_addin_unload (IdeFrameAddin *self,
* This virtual method is called whenever the active page changes
* in the #IdePage. Plugins may want to alter what controls
* are displayed on the frame based on the current page.
- *
- * Since: 3.32
*/
void
ide_frame_addin_set_page (IdeFrameAddin *self,
diff --git a/src/libide/gui/ide-frame-addin.h b/src/libide/gui/ide-frame-addin.h
index 04648b435..1389af605 100644
--- a/src/libide/gui/ide-frame-addin.h
+++ b/src/libide/gui/ide-frame-addin.h
@@ -24,9 +24,6 @@
# error "Only <libide-gui.h> can be included directly."
#endif
-#include <gtk/gtk.h>
-#include <libide-core.h>
-
#include "ide-frame.h"
#include "ide-page.h"
@@ -34,7 +31,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_FRAME_ADDIN (ide_frame_addin_get_type())
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
G_DECLARE_INTERFACE (IdeFrameAddin, ide_frame_addin, IDE, FRAME_ADDIN, GObject)
struct _IdeFrameAddinInterface
@@ -49,16 +46,16 @@ struct _IdeFrameAddinInterface
IdePage *page);
};
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_frame_addin_load (IdeFrameAddin *self,
IdeFrame *frame);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_frame_addin_unload (IdeFrameAddin *self,
IdeFrame *frame);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_frame_addin_set_page (IdeFrameAddin *self,
IdePage *page);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeFrameAddin *ide_frame_addin_find_by_module_name (IdeFrame *frame,
const gchar *module_name);
diff --git a/src/libide/gui/ide-marked-view.h b/src/libide/gui/ide-marked-view.h
index b424b868a..f42158425 100644
--- a/src/libide/gui/ide-marked-view.h
+++ b/src/libide/gui/ide-marked-view.h
@@ -20,7 +20,12 @@
#pragma once
+#if !defined (IDE_GUI_INSIDE) && !defined (IDE_GUI_COMPILATION)
+# error "Only <libide-gui.h> can be included directly."
+#endif
+
#include <gtk/gtk.h>
+
#include <libide-core.h>
#include <libide-io.h>
@@ -28,10 +33,10 @@ G_BEGIN_DECLS
#define IDE_TYPE_MARKED_VIEW (ide_marked_view_get_type())
-IDE_AVAILABLE_IN_3_32
G_DECLARE_FINAL_TYPE (IdeMarkedView, ide_marked_view, IDE, MARKED_VIEW, GtkBin)
+IDE_AVAILABLE_IN_ALL
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
GtkWidget *ide_marked_view_new (IdeMarkedContent *content);
G_END_DECLS
diff --git a/src/libide/gui/ide-omni-bar-addin.h b/src/libide/gui/ide-omni-bar-addin.h
index 0b2290d39..dd665fcb5 100644
--- a/src/libide/gui/ide-omni-bar-addin.h
+++ b/src/libide/gui/ide-omni-bar-addin.h
@@ -32,7 +32,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_OMNI_BAR_ADDIN (ide_omni_bar_addin_get_type ())
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
G_DECLARE_INTERFACE (IdeOmniBarAddin, ide_omni_bar_addin, IDE, OMNI_BAR_ADDIN, GObject)
struct _IdeOmniBarAddinInterface
@@ -45,10 +45,10 @@ struct _IdeOmniBarAddinInterface
IdeOmniBar *omni_bar);
};
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_omni_bar_addin_load (IdeOmniBarAddin *self,
IdeOmniBar *omni_bar);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_omni_bar_addin_unload (IdeOmniBarAddin *self,
IdeOmniBar *omni_bar);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]