[gnome-builder] libide-code: cleanup location/range availability macros
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide-code: cleanup location/range availability macros
- Date: Tue, 12 Jul 2022 06:39:07 +0000 (UTC)
commit 06ba6856aab01b8f1c35e7dfc7dabeefccc0cffd
Author: Christian Hergert <chergert redhat com>
Date: Mon Jul 11 16:22:59 2022 -0700
libide-code: cleanup location/range availability macros
src/libide/code/ide-location.c | 17 +----------------
src/libide/code/ide-location.h | 24 ++++++++++++------------
src/libide/code/ide-range.c | 8 --------
src/libide/code/ide-range.h | 12 ++++++------
4 files changed, 19 insertions(+), 42 deletions(-)
---
diff --git a/src/libide/code/ide-location.c b/src/libide/code/ide-location.c
index 8c4cb5a75..2944b03c4 100644
--- a/src/libide/code/ide-location.c
+++ b/src/libide/code/ide-location.c
@@ -182,6 +182,7 @@ ide_location_class_init (IdeLocationClass *klass)
"The title of the location",
NULL,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
+
properties [PROP_FILE] =
g_param_spec_object ("file",
"File",
@@ -230,8 +231,6 @@ ide_location_init (IdeLocation *self)
* Gets the file within the location.
*
* Returns: (transfer none) (nullable): a #GFile or %NULL
- *
- * Since: 3.32
*/
GFile *
ide_location_get_file (IdeLocation *self)
@@ -250,8 +249,6 @@ ide_location_get_file (IdeLocation *self)
* Gets the line within the #IdeLocation:file, or -1 if it is unknown.
*
* Returns: the line number, or -1.
- *
- * Since: 3.32
*/
gint
ide_location_get_line (IdeLocation *self)
@@ -270,8 +267,6 @@ ide_location_get_line (IdeLocation *self)
* Gets the offset within the #IdeLocation:line, or -1 if it is unknown.
*
* Returns: the line offset, or -1.
- *
- * Since: 3.32
*/
gint
ide_location_get_line_offset (IdeLocation *self)
@@ -290,8 +285,6 @@ ide_location_get_line_offset (IdeLocation *self)
* Gets the offset within the file in characters, or -1 if it is unknown.
*
* Returns: the line offset, or -1.
- *
- * Since: 3.32
*/
gint
ide_location_get_offset (IdeLocation *self)
@@ -310,8 +303,6 @@ ide_location_get_offset (IdeLocation *self)
* Makes a deep copy of @self.
*
* Returns: (transfer full): a new #IdeLocation
- *
- * Since: 3.32
*/
IdeLocation *
ide_location_dup (IdeLocation *self)
@@ -341,8 +332,6 @@ ide_location_dup (IdeLocation *self)
* This function will never return a variant with a floating reference.
*
* Returns: (transfer full): a #GVariant
- *
- * Since: 3.32
*/
GVariant *
ide_location_to_variant (IdeLocation *self)
@@ -389,8 +378,6 @@ ide_location_new (GFile *file,
* @offset: a charcter offset in file starting from 0, or -1 if unknown
*
* Returns: (transfer full): an #IdeLocation
- *
- * Since: 3.32
*/
IdeLocation *
ide_location_new_with_offset (GFile *file,
@@ -425,8 +412,6 @@ ide_location_new_with_offset (GFile *file,
*
* Returns: (transfer full) (nullable): a #GVariant if succesful;
* otherwise %NULL.
- *
- * Since: 3.32
*/
IdeLocation *
ide_location_new_from_variant (GVariant *variant)
diff --git a/src/libide/code/ide-location.h b/src/libide/code/ide-location.h
index 655cb2652..b8ae5b2e2 100644
--- a/src/libide/code/ide-location.h
+++ b/src/libide/code/ide-location.h
@@ -32,7 +32,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_LOCATION (ide_location_get_type())
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
G_DECLARE_DERIVABLE_TYPE (IdeLocation, ide_location, IDE, LOCATION, GObject)
struct _IdeLocationClass
@@ -43,33 +43,33 @@ struct _IdeLocationClass
gpointer _reserved[16];
};
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeLocation *ide_location_new_from_variant (GVariant *variant);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeLocation *ide_location_new (GFile *file,
gint line,
gint line_offset);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeLocation *ide_location_new_with_offset (GFile *file,
gint line,
gint line_offset,
gint offset);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeLocation *ide_location_dup (IdeLocation *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gint ide_location_get_line (IdeLocation *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gint ide_location_get_line_offset (IdeLocation *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gint ide_location_get_offset (IdeLocation *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
GFile *ide_location_get_file (IdeLocation *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
GVariant *ide_location_to_variant (IdeLocation *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gboolean ide_location_compare (IdeLocation *a,
IdeLocation *b);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
guint ide_location_hash (IdeLocation *self);
IDE_AVAILABLE_IN_ALL
gboolean ide_location_equal (IdeLocation *a,
diff --git a/src/libide/code/ide-range.c b/src/libide/code/ide-range.c
index e805f2e12..958646617 100644
--- a/src/libide/code/ide-range.c
+++ b/src/libide/code/ide-range.c
@@ -173,8 +173,6 @@ ide_range_new (IdeLocation *begin,
* @self: a #IdeRange
*
* Returns: (transfer none): the beginning of the range
- *
- * Since: 3.32
*/
IdeLocation *
ide_range_get_begin (IdeRange *self)
@@ -191,8 +189,6 @@ ide_range_get_begin (IdeRange *self)
* @self: a #IdeRange
*
* Returns: (transfer none): the end of the range
- *
- * Since: 3.32
*/
IdeLocation *
ide_range_get_end (IdeRange *self)
@@ -213,8 +209,6 @@ ide_range_get_end (IdeRange *self)
* This function will never return a floating variant.
*
* Returns: (transfer full): a #GVariant
- *
- * Since: 3.32
*/
GVariant *
ide_range_to_variant (IdeRange *self)
@@ -250,8 +244,6 @@ ide_range_to_variant (IdeRange *self)
* @variant: a #GVariant
*
* Returns: (transfer full) (nullable): a new range or %NULL
- *
- * Since: 3.32
*/
IdeRange *
ide_range_new_from_variant (GVariant *variant)
diff --git a/src/libide/code/ide-range.h b/src/libide/code/ide-range.h
index f1e855c1d..1223ec138 100644
--- a/src/libide/code/ide-range.h
+++ b/src/libide/code/ide-range.h
@@ -32,7 +32,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_RANGE (ide_range_get_type())
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
G_DECLARE_DERIVABLE_TYPE (IdeRange, ide_range, IDE, RANGE, GObject)
struct _IdeRangeClass
@@ -43,16 +43,16 @@ struct _IdeRangeClass
gpointer _reserved[16];
};
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeRange *ide_range_new_from_variant (GVariant *variant);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeRange *ide_range_new (IdeLocation *begin,
IdeLocation *end);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeLocation *ide_range_get_begin (IdeRange *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeLocation *ide_range_get_end (IdeRange *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
GVariant *ide_range_to_variant (IdeRange *self);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]