[vala] Use GLib.Environment instead of GLib.Environ



commit 1e11eff9a2cef3fa200d00a8a82f5d47c97d4c98
Author: Jürg Billeter <j bitron ch>
Date:   Tue Jan 13 08:19:14 2015 +0100

    Use GLib.Environment instead of GLib.Environ
    
    GLib.Environ is not available in GLib < 2.32.

 compiler/valacompiler.vala |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala
index fe0fdb9..d4f5d8b 100644
--- a/compiler/valacompiler.vala
+++ b/compiler/valacompiler.vala
@@ -174,8 +174,7 @@ class Vala.Compiler {
                CodeContext.push (context);
 
                if (disable_diagnostic_colors == false) {
-                       string[] env_args = Environ.get ();
-                       unowned string env_colors = Environ.get_variable (env_args, "VALA_COLORS");
+                       unowned string env_colors = Environment.get_variable ("VALA_COLORS");
                        if (env_colors != null) {
                                context.report.set_colors (env_colors);
                        } else {


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