[gnumeric] WorkbookView: normalize bools for g_object_set.
- From: Morten Welinder <mortenw src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnumeric] WorkbookView: normalize bools for g_object_set.
- Date: Tue, 19 May 2009 08:32:43 -0400 (EDT)
commit bebed081e00448566f347b6bbc6b3c119c78639d
Author: Morten Welinder <terra gnome org>
Date: Tue May 19 08:32:07 2009 -0400
WorkbookView: normalize bools for g_object_set.
---
plugins/excel/ChangeLog | 5 +++++
plugins/excel/ms-excel-read.c | 6 +++---
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index ce68dc9..a40ea59 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,3 +1,8 @@
+2009-05-19 Morten Welinder <terra gnome org>
+
+ * ms-excel-read.c (excel_read_WINDOW1): Normalize bools, or else
+ gobject will complain.
+
2009-05-18 Morten Welinder <terra gnome org>
* ms-excel-read.c (excel_read_WINDOW1): Use g_object_set instead
diff --git a/plugins/excel/ms-excel-read.c b/plugins/excel/ms-excel-read.c
index 84a9e87..0eb834f 100644
--- a/plugins/excel/ms-excel-read.c
+++ b/plugins/excel/ms-excel-read.c
@@ -6496,9 +6496,9 @@ excel_read_WINDOW1 (BiffQuery *q, WorkbookView *wb_view)
g_printerr ("Unsupported: Iconic workbook\n");
g_object_set (G_OBJECT (wb_view),
- "show-horizontal-scrollbar", (options & 0x0008),
- "show-vertical-scrollbar", (options & 0x0010),
- "show-notebook-tabs", (options & 0x0020),
+ "show-horizontal-scrollbar", !!(options & 0x0008),
+ "show-vertical-scrollbar", !!(options & 0x0010),
+ "show-notebook-tabs", !!(options & 0x0020),
NULL);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]