[gnumeric] Compilation: fix warning.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Compilation: fix warning.
- Date: Sat, 2 Dec 2017 21:49:49 +0000 (UTC)
commit d5a6836f96612e8ba9566a5a1bb2d79ebc8a2366
Author: Morten Welinder <terra gnome org>
Date: Sat Dec 2 16:48:51 2017 -0500
Compilation: fix warning.
There is no reason why scrollbar_config should not change the scg.
We, in fact, do so make it obvious.
src/sheet-control-gui.c | 3 ++-
src/sheet-control-priv.h | 2 +-
src/sheet-control.c | 2 +-
src/sheet-control.h | 2 +-
4 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/sheet-control-gui.c b/src/sheet-control-gui.c
index ecd2286..f56ff1d 100644
--- a/src/sheet-control-gui.c
+++ b/src/sheet-control-gui.c
@@ -521,8 +521,9 @@ scg_scrollbar_config_real (SheetControl const *sc)
static void
-scg_scrollbar_config (SheetControlGUI *scg)
+scg_scrollbar_config (SheetControl *sc)
{
+ SheetControlGUI *scg = GNM_SCG (sc);
/* See bug 789412 */
if (!scg->scroll_bar_timer)
scg->scroll_bar_timer =
diff --git a/src/sheet-control-priv.h b/src/sheet-control-priv.h
index b151256..8c7c659 100644
--- a/src/sheet-control-priv.h
+++ b/src/sheet-control-priv.h
@@ -24,7 +24,7 @@ typedef struct {
GnmRange const * r);
void (*ant) (SheetControl *sc);
void (*unant) (SheetControl *sc);
- void (*scrollbar_config) (SheetControl const *sc);
+ void (*scrollbar_config) (SheetControl *sc);
void (*mode_edit) (SheetControl *sc);
void (*set_top_left) (SheetControl *sc, int col, int row);
void (*recompute_visible_region)(SheetControl *sc,
diff --git a/src/sheet-control.c b/src/sheet-control.c
index fa69f8e..1e23806 100644
--- a/src/sheet-control.c
+++ b/src/sheet-control.c
@@ -116,7 +116,7 @@ SC_VIRTUAL (redraw_headers,
SC_VIRTUAL (ant, (SheetControl *sc), (sc))
SC_VIRTUAL (unant, (SheetControl *sc), (sc))
-SC_VIRTUAL (scrollbar_config, (SheetControl const *sc), (sc))
+SC_VIRTUAL (scrollbar_config, (SheetControl *sc), (sc))
SC_VIRTUAL (mode_edit, (SheetControl *sc), (sc))
diff --git a/src/sheet-control.h b/src/sheet-control.h
index 571d8cd..11ae40c 100644
--- a/src/sheet-control.h
+++ b/src/sheet-control.h
@@ -32,7 +32,7 @@ void sc_redraw_headers (SheetControl *sc,
void sc_ant (SheetControl *sc);
void sc_unant (SheetControl *sc);
-void sc_scrollbar_config (SheetControl const *sc);
+void sc_scrollbar_config (SheetControl *sc);
void sc_mode_edit (SheetControl *sc);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]