[gucharmap] charmap: Suppress deprecated object property warnings



commit de68a8f691946e5675dc4902dbdd2dd751e7d6a5
Author: Christian Persch <chpe gnome org>
Date:   Fri Jun 5 22:03:51 2015 +0200

    charmap: Suppress deprecated object property warnings
    
    Simply set G_ENABLE_DIAGNOSTIC=0 which should be the default anyway except
    that it is broken [https://bugzilla.gnome.org/show_bug.cgi?id=749195].

 gucharmap/main.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gucharmap/main.c b/gucharmap/main.c
index 0dd1bc8..8b50cf3 100644
--- a/gucharmap/main.c
+++ b/gucharmap/main.c
@@ -222,6 +222,10 @@ main (int argc, char **argv)
   g_thread_init (NULL);
 #endif
 
+  /* Not interested in silly debug spew polluting the journal, bug #749195 */
+  if (g_getenv ("G_ENABLE_DIAGNOSTIC") == NULL)
+    g_setenv ("G_ENABLE_DIAGNOSTIC", "0", TRUE);
+
   /* Set programme name explicitly (see bug #653115) */
   g_set_prgname("gucharmap");
 


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