[gnumeric] Cleanup.



commit e170deb17ef499a0f7f25382a737dda4bf659c82
Author: Morten Welinder <terra gnome org>
Date:   Sun Mar 10 15:43:20 2013 -0400

    Cleanup.

 ChangeLog       |    3 ++-
 src/ssconvert.c |    3 ++-
 src/stf.c       |    2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 07dae9c..8c05397 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2013-03-10  Morten Welinder  <terra gnome org>
 
-       * src/ssconvert.c (list_them): Skip interactive savers/openers.
+       * src/ssconvert.c (list_them): Skip savers/openers that require
+       interaction.  (We don't have any yet.)
 
        * src/stf.c (stf_read_workbook): Set error when we fail due to
        lack of GUI.
diff --git a/src/ssconvert.c b/src/ssconvert.c
index dd51d53..c1f6886 100644
--- a/src/ssconvert.c
+++ b/src/ssconvert.c
@@ -253,12 +253,13 @@ list_them (GList *them,
                    "Description");
        for (ptr = them; ptr ; ptr = ptr->next) {
                GObject *obj = ptr->data;
-               char const *id = get_his_id (obj);
+               char const *id;
 
                g_object_get (obj, "interactive", &interactive, NULL);
                if (interactive)
                        continue;
 
+               id = get_his_id (obj);
                if (!id) id = "";
                g_printerr ("%-*s | %s\n", len,
                            id,
diff --git a/src/stf.c b/src/stf.c
index 716d97a..a5c93c0 100644
--- a/src/stf.c
+++ b/src/stf.c
@@ -660,7 +660,7 @@ stf_init (void)
        g_object_unref (opener);
 
        saver = gnm_stf_file_saver_create ("Gnumeric_stf:stf_assistant");
-       g_object_set (G_OBJECT (saver), "interactive", TRUE, NULL);
+       /* Unlike the opener, the saver doesn't require interaction.  */
        go_file_saver_register (saver);
        g_object_unref (saver);
 


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