[gnome-builder] libide-code: update file settings and formatters availability
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide-code: update file settings and formatters availability
- Date: Tue, 12 Jul 2022 06:39:07 +0000 (UTC)
commit 72ce86236b0d02d1b58214312e52467bb6b4adf8
Author: Christian Hergert <chergert redhat com>
Date: Mon Jul 11 16:20:48 2022 -0700
libide-code: update file settings and formatters availability
src/libide/code/ide-file-settings.c | 6 ------
src/libide/code/ide-file-settings.h | 10 +++++-----
src/libide/code/ide-formatter-options.h | 12 ++++++------
src/libide/code/ide-formatter.h | 12 ++++++------
src/libide/code/ide-gsettings-file-settings.c | 1 -
5 files changed, 17 insertions(+), 24 deletions(-)
---
diff --git a/src/libide/code/ide-file-settings.c b/src/libide/code/ide-file-settings.c
index 10ca1fcca..825ee4137 100644
--- a/src/libide/code/ide-file-settings.c
+++ b/src/libide/code/ide-file-settings.c
@@ -143,8 +143,6 @@ void ide_file_settings_set_##name##_set (IdeFileSettings *self, \
* implementation might look for ".editorconfig" files.
*
* Returns: (transfer none): An #IdeFile.
- *
- * Since: 3.32
*/
GFile *
ide_file_settings_get_file (IdeFileSettings *self)
@@ -177,8 +175,6 @@ ide_file_settings_set_file (IdeFileSettings *self,
* the language identifier known to GtkSourceView such as "c" or "sh".
*
* Returns: (nullable): a string containing the language id or %NULL
- *
- * Since: 3.32
*/
const gchar *
ide_file_settings_get_language (IdeFileSettings *self)
@@ -219,8 +215,6 @@ ide_file_settings_set_language (IdeFileSettings *self,
* settled.
*
* Returns: %TRUE if all the settings have loaded.
- *
- * Since: 3.32
*/
gboolean
ide_file_settings_get_settled (IdeFileSettings *self)
diff --git a/src/libide/code/ide-file-settings.h b/src/libide/code/ide-file-settings.h
index 8caf27d63..40b3139b6 100644
--- a/src/libide/code/ide-file-settings.h
+++ b/src/libide/code/ide-file-settings.h
@@ -36,7 +36,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_FILE_SETTINGS (ide_file_settings_get_type())
#define IDE_FILE_SETTINGS_EXTENSION_POINT "org.gnome.libide.extensions.file-settings"
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
G_DECLARE_DERIVABLE_TYPE (IdeFileSettings, ide_file_settings, IDE, FILE_SETTINGS, IdeObject)
struct _IdeFileSettingsClass
@@ -47,15 +47,15 @@ struct _IdeFileSettingsClass
gpointer _reserved[8];
};
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeFileSettings *ide_file_settings_new (IdeObject *parent,
GFile *file,
const gchar *language);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
GFile *ide_file_settings_get_file (IdeFileSettings *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
const gchar *ide_file_settings_get_language (IdeFileSettings *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gboolean ide_file_settings_get_settled (IdeFileSettings *self);
#define IDE_FILE_SETTINGS_PROPERTY(_1, name, _2, ret_type, _3, _4, _5, _6) \
diff --git a/src/libide/code/ide-formatter-options.h b/src/libide/code/ide-formatter-options.h
index 068a765ba..928a3b0b2 100644
--- a/src/libide/code/ide-formatter-options.h
+++ b/src/libide/code/ide-formatter-options.h
@@ -30,19 +30,19 @@ G_BEGIN_DECLS
#define IDE_TYPE_FORMATTER_OPTIONS (ide_formatter_options_get_type())
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (IdeFormatterOptions, ide_formatter_options, IDE, FORMATTER_OPTIONS, GObject)
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeFormatterOptions *ide_formatter_options_new (void);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
guint ide_formatter_options_get_tab_width (IdeFormatterOptions *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_formatter_options_set_tab_width (IdeFormatterOptions *self,
guint tab_width);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gboolean ide_formatter_options_get_insert_spaces (IdeFormatterOptions *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_formatter_options_set_insert_spaces (IdeFormatterOptions *self,
gboolean insert_spaces);
diff --git a/src/libide/code/ide-formatter.h b/src/libide/code/ide-formatter.h
index fc3213948..14cbed29e 100644
--- a/src/libide/code/ide-formatter.h
+++ b/src/libide/code/ide-formatter.h
@@ -33,7 +33,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_FORMATTER (ide_formatter_get_type())
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
G_DECLARE_INTERFACE (IdeFormatter, ide_formatter, IDE, FORMATTER, IdeObject)
struct _IdeFormatterInterface
@@ -63,20 +63,20 @@ struct _IdeFormatterInterface
GError **error);
};
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_formatter_load (IdeFormatter *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_formatter_format_async (IdeFormatter *self,
IdeBuffer *buffer,
IdeFormatterOptions *options,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gboolean ide_formatter_format_finish (IdeFormatter *self,
GAsyncResult *result,
GError **error);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_formatter_format_range_async (IdeFormatter *self,
IdeBuffer *buffer,
IdeFormatterOptions *options,
@@ -85,7 +85,7 @@ void ide_formatter_format_range_async (IdeFormatter *self,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gboolean ide_formatter_format_range_finish (IdeFormatter *self,
GAsyncResult *result,
GError **error);
diff --git a/src/libide/code/ide-gsettings-file-settings.c b/src/libide/code/ide-gsettings-file-settings.c
index 3020e366a..cf4288e0f 100644
--- a/src/libide/code/ide-gsettings-file-settings.c
+++ b/src/libide/code/ide-gsettings-file-settings.c
@@ -22,7 +22,6 @@
#include "config.h"
-#include <dazzle.h>
#include <glib/gi18n.h>
#include <libide-core.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]