[gnumeric] xlsx: save radio button's active flag.



commit fa60097b2c1afc79077338922fd894b7fa03a3e1
Author: Morten Welinder <terra gnome org>
Date:   Sat Feb 21 14:38:09 2015 -0500

    xlsx: save radio button's active flag.

 plugins/excel/xlsx-read-drawing.c  |    2 ++
 plugins/excel/xlsx-write-drawing.c |    3 +++
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/plugins/excel/xlsx-read-drawing.c b/plugins/excel/xlsx-read-drawing.c
index 5e5a74a..bbc46bd 100644
--- a/plugins/excel/xlsx-read-drawing.c
+++ b/plugins/excel/xlsx-read-drawing.c
@@ -3644,6 +3644,8 @@ xlsx_vml_checked (GsfXMLIn *xin, G_GNUC_UNUSED GsfXMLBlob *blob)
 
        if (GNM_IS_SOW_CHECKBOX (state->so)) {
                g_object_set (state->so, "active", checked, NULL);
+       } else if (GNM_IS_SOW_RADIO_BUTTON (state->so)) {
+               /* FIXME */
        }
 }
 
diff --git a/plugins/excel/xlsx-write-drawing.c b/plugins/excel/xlsx-write-drawing.c
index 6328f49..c0194fd 100644
--- a/plugins/excel/xlsx-write-drawing.c
+++ b/plugins/excel/xlsx-write-drawing.c
@@ -1444,8 +1444,11 @@ xlsx_write_legacy_drawing_objects (XLSXWriteState *state, GsfOutput *sheet_part,
                        otype = "Button";
                        tlink = sheet_widget_button_get_link (so);
                } else if (GNM_IS_SOW_RADIO_BUTTON (so)) {
+                       gboolean c;
                        otype = "Radio";
                        tlink = sheet_widget_radio_button_get_link (so);
+                       g_object_get (so, "active", &c, NULL);
+                       checked = c;
                } else if (GNM_IS_SOW_CHECKBOX (so)) {
                        gboolean c;
                        otype = "Checkbox";


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