[gnumeric] xls: more debug info.
- From: Morten Welinder <mortenw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnumeric] xls: more debug info.
- Date: Sat, 3 Oct 2009 00:52:12 +0000 (UTC)
commit e9fbe1edf7dccf7bad91335ab06e0e85c2ba2618
Author: Morten Welinder <terra gnome org>
Date: Fri Oct 2 20:51:43 2009 -0400
xls: more debug info.
plugins/excel/ChangeLog | 3 +++
plugins/excel/ms-excel-write.c | 8 ++++++--
2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index 2d9853a..1518097 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,5 +1,8 @@
2009-10-02 Morten Welinder <terra gnome org>
+ * ms-excel-write.c (excel_sheet_new): Display name of sheet
+ objects we cannot export.
+
* ms-excel-read.c (ms_sheet_realize_obj): Set object name if we
have it.
diff --git a/plugins/excel/ms-excel-write.c b/plugins/excel/ms-excel-write.c
index 2216b88..d38c9d6 100644
--- a/plugins/excel/ms-excel-write.c
+++ b/plugins/excel/ms-excel-write.c
@@ -5069,9 +5069,13 @@ excel_sheet_new (ExcelWriteState *ewb, Sheet *sheet,
if (handled) {
esheet->num_objs++;
} else {
+ char *name;
unhandled:
- g_warning ("Not exporting object of type %s",
- g_type_name_from_instance ((GTypeInstance*)so));
+ g_object_get (so, "name", &name, NULL);
+ g_warning ("Not exporting object %s of type %s",
+ (name ? name : "?"),
+ g_type_name (G_OBJECT_TYPE (so)));
+ g_free (name);
}
}
g_slist_free (objs);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]