[gnumeric] Auto-func: fix setting auto-func.



commit 2541c131e4bbe6b924f17bece851ce0ef4c71695
Author: Morten Welinder <terra gnome org>
Date:   Mon Oct 1 07:58:48 2018 -0400

    Auto-func: fix setting auto-func.
    
    GnmFunc got turned into an object and this code needed trivial updating.

 ChangeLog           | 5 +++++
 NEWS                | 1 +
 src/workbook-view.c | 4 ++--
 3 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e5f1966c0..7dfa75cdd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-10-01  Morten Welinder  <terra gnome org>
+
+       * src/workbook-view.c (wb_view_set_property): Fix setting of
+       auto-func.  [#357]
+
 2018-08-19  Morten Welinder <terra gnome org>
 
        * configure.ac: Post-release bump.
diff --git a/NEWS b/NEWS
index 8c8252887..25ab2ba42 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@ Gnumeric 1.12.44
 
 Morten:
        * Fix SWITCH's default argument.  [#354]
+       * Fix problem with setting auto-func.  [#357]
 
 --------------------------------------------------------------------------
 Gnumeric 1.12.43
diff --git a/src/workbook-view.c b/src/workbook-view.c
index 57e6ed5fe..7cf469801 100644
--- a/src/workbook-view.c
+++ b/src/workbook-view.c
@@ -708,7 +708,7 @@ wb_view_set_property (GObject *object, guint property_id,
 
        switch (property_id) {
        case PROP_AUTO_EXPR_FUNC:
-               wb_view_auto_expr_func (wbv, g_value_get_boxed (value));
+               wb_view_auto_expr_func (wbv, g_value_get_object (value));
                break;
        case PROP_AUTO_EXPR_DESCR:
                wb_view_auto_expr_descr (wbv, g_value_get_string (value));
@@ -770,7 +770,7 @@ wb_view_get_property (GObject *object, guint property_id,
 
        switch (property_id) {
        case PROP_AUTO_EXPR_FUNC:
-               g_value_set_boxed (value, wbv->auto_expr.func);
+               g_value_set_object (value, wbv->auto_expr.func);
                break;
        case PROP_AUTO_EXPR_DESCR:
                g_value_set_string (value, wbv->auto_expr.descr);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]