~valide/valide/dev

« back to all changes in this revision

Viewing changes to plugins/waf/waf-executable.vala

  • Committer: Nicolas Joseph
  • Date: 2011-02-08 09:56:38 UTC
  • mfrom: (577.1.1 valide)
  • Revision ID: nicolas.joseph@valaide.org-20110208095638-g4lvxygbvui2cvf7
monkey 2011-01-22 Update and set vala 0.11.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* waf-executable.vala
2
2
 *
3
 
 * Copyright (C) 2008-2010 Nicolas Joseph
 
3
 * Copyright (C) 2008-2011 Nicolas Joseph
4
4
 *
5
5
 * This program is free software: you can redistribute it and/or modify
6
6
 * it under the terms of the GNU General Public License as published by
16
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
17
 *
18
18
 * Author:
19
 
 *      Nicolas Joseph <nicolas.joseph@valaide.org>
 
19
 *  Nicolas Joseph <nicolas.joseph@valaide.org>
20
20
 */
21
21
 
22
22
using Valide;
86
86
    {
87
87
      Gdk.Color.parse (Utils.Color.INFO, out color);
88
88
    }
89
 
    else if (line.str ("warning:") != null)
 
89
    else if (line.index_of ("warning:") != 0)
90
90
    {
91
91
      Gdk.Color.parse (Utils.Color.WARNING, out color);
92
92
    }
93
 
    else if (line.str ("error:") != null)
 
93
    else if (line.index_of ("error:") != 0)
94
94
    {
95
95
      Gdk.Color.parse (Utils.Color.ERROR, out color);
96
96
    }
112
112
      switch (this.step)
113
113
      {
114
114
        case BuildingStep.CONFIGURE:
115
 
          if (line.str (": ok") != null || line.str (": yes") != null)
 
115
          if (line.index_of (": ok") != 0 || line.index_of (": yes") != 0)
116
116
          {
117
117
            Gdk.Color.parse (Utils.Color.SUCCESS, out color);
118
118
          }
119
 
          else if (line.str (": fail") != null)
 
119
          else if (line.index_of (": fail") != 0)
120
120
          {
121
121
            Gdk.Color.parse (Utils.Color.WARNING, out color);
122
122
          }