[gnumeric] Startup: silence gobject.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Startup: silence gobject.
- Date: Tue, 23 Sep 2014 19:36:22 +0000 (UTC)
commit 1d4ad02f30bb870a03f8cffcef2f4b8c97f9ae0b
Author: Morten Welinder <terra gnome org>
Date: Tue Sep 23 15:32:49 2014 -0400
Startup: silence gobject.
Make G_ENABLE_DIAGNOSTICS default to 0, not 1. We don't want ssconvert
(or gnumeric for that matter) to start spewing deprecation warnings.
ChangeLog | 5 +++++
src/libgnumeric.c | 4 ++++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c37023c..d78cdcc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-09-23 Morten Welinder <terra gnome org>
+
+ * src/libgnumeric.c (gnm_pre_parse_init): Mess with gobject so it
+ doesn't spew deprecation warnings by default.
+
2014-09-11 Morten Welinder <terra gnome org>
* src/style.c (gnm_translate_underline_from_pango): Survive
diff --git a/src/libgnumeric.c b/src/libgnumeric.c
index 24c96cf..9435a19 100644
--- a/src/libgnumeric.c
+++ b/src/libgnumeric.c
@@ -181,6 +181,10 @@ gnm_pre_parse_init (int argc, gchar const **argv)
}
#endif
+ /* Default value is bogus, see 732184. */
+ if (!getenv ("G_ENABLE_DIAGNOSTIC"))
+ setenv ("G_ENABLE_DIAGNOSTIC", "0", FALSE);
+
/* We cannot use gnm_debug_flag yet. See 627840. */
gnm_debug = getenv ("GNM_DEBUG");
if (gnm_debug && strstr (gnm_debug, "gmemdebug")) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]