[gnome-builder/wip/gtk4-port: 396/1774] libide/code: update availability macros for buffers
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 396/1774] libide/code: update availability macros for buffers
- Date: Mon, 11 Jul 2022 22:31:10 +0000 (UTC)
commit 2507260ed6d4a6030d211ba7ff64b257ebf16704
Author: Christian Hergert <chergert redhat com>
Date: Tue Apr 5 17:01:21 2022 -0700
libide/code: update availability macros for buffers
src/libide/code/ide-buffer-manager.h | 42 ++++++++--------
src/libide/code/ide-buffer.h | 92 ++++++++++++++++++------------------
2 files changed, 65 insertions(+), 69 deletions(-)
---
diff --git a/src/libide/code/ide-buffer-manager.h b/src/libide/code/ide-buffer-manager.h
index 8c7fd28c8..f10df78a7 100644
--- a/src/libide/code/ide-buffer-manager.h
+++ b/src/libide/code/ide-buffer-manager.h
@@ -40,15 +40,13 @@ G_BEGIN_DECLS
* The #IdeBufferOpenFlags enumeration is used to specify how a document should
* be opened by the workbench. Plugins may want to have a bit of control over
* where the document is opened, and this provides a some control over that.
- *
- * Since: 3.32
*/
typedef enum
{
- IDE_BUFFER_OPEN_FLAGS_NONE = 0,
- IDE_BUFFER_OPEN_FLAGS_BACKGROUND = 1 << 0,
- IDE_BUFFER_OPEN_FLAGS_NO_VIEW = 1 << 1,
- IDE_BUFFER_OPEN_FLAGS_FORCE_RELOAD = 1 << 2,
+ IDE_BUFFER_OPEN_FLAGS_NONE = 0,
+ IDE_BUFFER_OPEN_FLAGS_BACKGROUND = 1 << 0,
+ IDE_BUFFER_OPEN_FLAGS_NO_VIEW = 1 << 1,
+ IDE_BUFFER_OPEN_FLAGS_FORCE_RELOAD = 1 << 2,
IDE_BUFFER_OPEN_FLAGS_DISABLE_ADDINS = 1 << 3,
} IdeBufferOpenFlags;
@@ -58,24 +56,22 @@ typedef enum
* @user_data: closure data
*
* Callback prototype for ide_buffer_manager_foreach().
- *
- * Since: 3.32
*/
typedef void (*IdeBufferForeachFunc) (IdeBuffer *buffer,
gpointer user_data);
#define IDE_TYPE_BUFFER_MANAGER (ide_buffer_manager_get_type())
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (IdeBufferManager, ide_buffer_manager, IDE, BUFFER_MANAGER, IdeObject)
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeBufferManager *ide_buffer_manager_from_context (IdeContext *context);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_buffer_manager_foreach (IdeBufferManager *self,
IdeBufferForeachFunc foreach_func,
gpointer user_data);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_buffer_manager_load_file_async (IdeBufferManager *self,
GFile *file,
IdeBufferOpenFlags flags,
@@ -83,46 +79,46 @@ void ide_buffer_manager_load_file_async (IdeBufferManager *
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeBuffer *ide_buffer_manager_load_file_finish (IdeBufferManager *self,
GAsyncResult *result,
GError **error);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_buffer_manager_save_all_async (IdeBufferManager *self,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gboolean ide_buffer_manager_save_all_finish (IdeBufferManager *self,
GAsyncResult *result,
GError **error);
-IDE_AVAILABLE_IN_3_36
+IDE_AVAILABLE_IN_ALL
void ide_buffer_manager_reload_all_async (IdeBufferManager *self,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
-IDE_AVAILABLE_IN_3_36
+IDE_AVAILABLE_IN_ALL
gboolean ide_buffer_manager_reload_all_finish (IdeBufferManager *self,
GAsyncResult *result,
GError **error);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gboolean ide_buffer_manager_has_file (IdeBufferManager *self,
GFile *file);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeBuffer *ide_buffer_manager_find_buffer (IdeBufferManager *self,
GFile *file);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gssize ide_buffer_manager_get_max_file_size (IdeBufferManager *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_buffer_manager_set_max_file_size (IdeBufferManager *self,
gssize max_file_size);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_buffer_manager_apply_edits_async (IdeBufferManager *self,
GPtrArray *edits,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gboolean ide_buffer_manager_apply_edits_finish (IdeBufferManager *self,
GAsyncResult *result,
GError **error);
diff --git a/src/libide/code/ide-buffer.h b/src/libide/code/ide-buffer.h
index 7c186076f..566009d7a 100644
--- a/src/libide/code/ide-buffer.h
+++ b/src/libide/code/ide-buffer.h
@@ -48,20 +48,20 @@ typedef enum
IDE_BUFFER_STATE_FAILED,
} IdeBufferState;
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (IdeBuffer, ide_buffer, IDE, BUFFER, GtkSourceBuffer)
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
GBytes *ide_buffer_dup_content (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gchar *ide_buffer_dup_title (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_buffer_format_selection_async (IdeBuffer *self,
IdeFormatterOptions *options,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gboolean ide_buffer_format_selection_finish (IdeBuffer *self,
GAsyncResult *result,
GError **error);
@@ -75,111 +75,111 @@ IDE_AVAILABLE_IN_42
GPtrArray* ide_buffer_code_action_query_finish (IdeBuffer *self,
GAsyncResult *result,
GError **error);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
guint ide_buffer_get_change_count (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeBufferChangeMonitor *ide_buffer_get_change_monitor (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gboolean ide_buffer_get_changed_on_volume (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeDiagnostics *ide_buffer_get_diagnostics (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeLocation *ide_buffer_get_insert_location (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gboolean ide_buffer_get_is_temporary (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gboolean ide_buffer_get_failed (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
const GError *ide_buffer_get_failure (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gchar *ide_buffer_dup_uri (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
GFile *ide_buffer_get_file (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeFileSettings *ide_buffer_get_file_settings (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeFormatter *ide_buffer_get_formatter (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gboolean ide_buffer_get_highlight_diagnostics (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_buffer_get_iter_at_location (IdeBuffer *self,
GtkTextIter *iter,
IdeLocation *location);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeLocation *ide_buffer_get_iter_location (IdeBuffer *self,
const GtkTextIter *iter);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
const gchar *ide_buffer_get_language_id (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_buffer_set_language_id (IdeBuffer *self,
const gchar *language_id);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gchar *ide_buffer_get_line_text (IdeBuffer *self,
guint line);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gboolean ide_buffer_get_loading (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gboolean ide_buffer_get_read_only (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeRenameProvider *ide_buffer_get_rename_provider (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_buffer_get_selection_bounds (IdeBuffer *self,
GtkTextIter *insert,
GtkTextIter *selection);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeRange *ide_buffer_get_selection_range (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeBufferState ide_buffer_get_state (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
const gchar *ide_buffer_get_style_scheme_name (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_buffer_get_symbol_at_location_async (IdeBuffer *self,
const GtkTextIter *location,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeSymbol *ide_buffer_get_symbol_at_location_finish (IdeBuffer *self,
GAsyncResult *result,
GError **error);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
GPtrArray *ide_buffer_get_symbol_resolvers (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gchar *ide_buffer_get_word_at_iter (IdeBuffer *self,
const GtkTextIter *iter);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gboolean ide_buffer_has_diagnostics (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gboolean ide_buffer_has_symbol_resolvers (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeBuffer *ide_buffer_hold (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeContext *ide_buffer_ref_context (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_buffer_rehighlight (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_buffer_release (IdeBuffer *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_buffer_save_file_async (IdeBuffer *self,
GFile *file,
GCancellable *cancellable,
IdeNotification **notif,
GAsyncReadyCallback callback,
gpointer user_data);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gboolean ide_buffer_save_file_finish (IdeBuffer *self,
GAsyncResult *result,
GError **error);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_buffer_set_change_monitor (IdeBuffer *self,
IdeBufferChangeMonitor *change_monitor);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_buffer_set_diagnostics (IdeBuffer *self,
IdeDiagnostics *diagnostics);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_buffer_set_highlight_diagnostics (IdeBuffer *self,
gboolean
highlight_diagnostics);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_buffer_set_style_scheme_name (IdeBuffer *self,
const gchar
*style_scheme_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]