[gnumeric] Introspection fixes.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Introspection fixes.
- Date: Sat, 27 Jun 2020 17:02:01 +0000 (UTC)
commit a18908d218e36ae1471cd4bfef8fe612bd7e7241
Author: Morten Welinder <terra gnome org>
Date: Sat Jun 27 13:01:45 2020 -0400
Introspection fixes.
src/sheet-style.c | 10 +++++-----
src/sheet-style.h | 2 +-
src/sheet.c | 11 ++++++++---
src/sheet.h | 4 +++-
4 files changed, 17 insertions(+), 10 deletions(-)
---
diff --git a/src/sheet-style.c b/src/sheet-style.c
index 8e7e9eafe..ab5126979 100644
--- a/src/sheet-style.c
+++ b/src/sheet-style.c
@@ -1800,9 +1800,9 @@ apply_border (Sheet *sheet, GnmRange const *r,
/**
* sheet_style_apply_border:
- * @sheet:
- * @range:
- * @borders:
+ * @sheet: #Sheet to change
+ * @range: #GnmRange around which to place borders
+ * @borders: (array fixed-size=8): Border styles to set.
*
* When a user applies a border to a region we attempt to remove the border
* from the opposing side to avoid overlapping border specifications.
@@ -1811,9 +1811,9 @@ apply_border (Sheet *sheet, GnmRange const *r,
* of the range offset upwards.
*/
void
-sheet_style_apply_border (Sheet *sheet,
+sheet_style_apply_border (Sheet *sheet,
GnmRange const *range,
- GnmBorder **borders)
+ GnmBorder *borders[GNM_STYLE_BORDER_EDGE_MAX])
{
GnmStyle *pstyle = NULL;
diff --git a/src/sheet-style.h b/src/sheet-style.h
index 325956be3..a5b319be6 100644
--- a/src/sheet-style.h
+++ b/src/sheet-style.h
@@ -27,7 +27,7 @@ GnmStyle *sheet_style_find (Sheet const *sheet, GnmStyle *st);
void sheet_style_get_row (Sheet const *sheet, GnmStyleRow *sr);
GnmStyle **sheet_style_get_row2 (Sheet const *sheet, int row);
void sheet_style_apply_border (Sheet *sheet, GnmRange const *range,
- GnmBorder **borders);
+ GnmBorder *borders[GNM_STYLE_BORDER_EDGE_MAX]);
void sheet_style_apply_range (Sheet *sheet, GnmRange const *range,
GnmStyle *pstyle);
void sheet_style_apply_range2 (Sheet *sheet, GnmRange const *range,
diff --git a/src/sheet.c b/src/sheet.c
index 7d2d2af95..1b9a7089c 100644
--- a/src/sheet.c
+++ b/src/sheet.c
@@ -1813,11 +1813,16 @@ sheet_apply_style_undo (GnmSheetRange *sr,
}
-
+/**
+ * sheet_apply_border:
+ * @sheet: #Sheet to change
+ * @range: #GnmRange around which to place borders
+ * @borders: (array fixed-size=8): Border styles to set.
+ */
void
-sheet_apply_border (Sheet *sheet,
+sheet_apply_border (Sheet *sheet,
GnmRange const *range,
- GnmBorder **borders)
+ GnmBorder *borders[GNM_STYLE_BORDER_EDGE_MAX])
{
GnmSpanCalcFlags spanflags = GNM_SPANCALC_RE_RENDER | GNM_SPANCALC_RESIZE;
sheet_style_apply_border (sheet, range, borders);
diff --git a/src/sheet.h b/src/sheet.h
index bbc25a0d1..f74c86d49 100644
--- a/src/sheet.h
+++ b/src/sheet.h
@@ -7,6 +7,7 @@
#include <pango/pango.h>
#include <goffice/goffice.h>
#include <libgnumeric.h>
+#include <style-border.h>
G_BEGIN_DECLS
@@ -364,7 +365,8 @@ GOUndo * sheet_range_set_markup_undo (GnmSheetRange *sr,
void sheet_apply_style (Sheet *sheet, GnmRange const *range, GnmStyle *style);
GOUndo * sheet_apply_style_undo (GnmSheetRange *sr,
GnmStyle *style);
-void sheet_apply_border (Sheet *sheet, GnmRange const *range, GnmBorder **borders);
+void sheet_apply_border (Sheet *sheet, GnmRange const *range,
+ GnmBorder *borders[GNM_STYLE_BORDER_EDGE_MAX]);
void sheet_queue_respan (Sheet const *sheet, int start_row, int end_row);
void sheet_cell_queue_respan (GnmCell *cell);
void sheet_range_calc_spans (Sheet *sheet, GnmRange const *r, GnmSpanCalcFlags flags);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]