[gnumeric] Introspection: fix Gnm.Range.init
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Introspection: fix Gnm.Range.init
- Date: Sat, 8 Aug 2020 23:10:54 +0000 (UTC)
commit 639d4de97c62a4d87d91a61694c35df72dce5281
Author: Morten Welinder <terra gnome org>
Date: Sat Aug 8 14:18:18 2020 -0400
Introspection: fix Gnm.Range.init
This returns its first argument and, evidently, confuses introspection
badly. (skip) used to work, but we now need to rename a void-returning
function on top.
NEWS | 1 +
src/ranges.c | 20 +++++++++++++++++++-
src/ranges.h | 2 ++
3 files changed, 22 insertions(+), 1 deletion(-)
---
diff --git a/NEWS b/NEWS
index ba4e8eafd2..8be376d2f6 100644
--- a/NEWS
+++ b/NEWS
@@ -32,6 +32,7 @@ Morten:
* Tend to dead kittens.
* Fix metadata dialog. [#510]
* Fix potential 64-bit problem with signals.
+ * Fix GnmRange introspection.
--------------------------------------------------------------------------
Gnumeric 1.12.47
diff --git a/src/ranges.c b/src/ranges.c
index 6e27fe664d..98aba20753 100644
--- a/src/ranges.c
+++ b/src/ranges.c
@@ -193,7 +193,7 @@ range_init_cellpos_size (GnmRange *r,
}
/**
- * range_init:
+ * range_init: (skip)
* @r: A #GnmRange to change
* @start_col: Column
* @start_row: Row
@@ -219,6 +219,24 @@ range_init (GnmRange *r, int start_col, int start_row,
return r;
}
+/**
+ * range_init_gi: (rename-to range_init)
+ * @r: A #GnmRange to change
+ * @start_col: Column
+ * @start_row: Row
+ * @end_col: Column
+ * @end_row: Row
+ *
+ * Updates @r to start at (@start_col,@start_row) and end
+ * at (@end_col,@end_row).
+ */
+void
+range_init_gi (GnmRange *r, int start_col, int start_row,
+ int end_col, int end_row)
+{
+ range_init (r, start_col, start_row, end_col, end_row);
+}
+
/**
* range_parse:
* @r: #GnmRange
diff --git a/src/ranges.h b/src/ranges.h
index 2924096523..a18818b538 100644
--- a/src/ranges.h
+++ b/src/ranges.h
@@ -77,6 +77,8 @@ GnmRange *range_init_cellpos_size (GnmRange *r, GnmCellPos const *start,
int cols, int rows);
GnmRange *range_init (GnmRange *r, int start_col, int start_row,
int end_col, int end_row);
+void range_init_gi (GnmRange *r, int start_col, int start_row,
+ int end_col, int end_row);
gboolean range_parse (GnmRange *r, char const *text,
GnmSheetSize const *ss);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]