[Xfce4-commits] <xfmpc:master> Fix compilation with Vala 0.10.3
Mike Massonnet
noreply at xfce.org
Tue Feb 1 19:38:01 CET 2011
Updating branch refs/heads/master
to e670cc7638d1b28d340d3c35acab68c74e193dfe (commit)
from 516ef23deafe490549d088adf8e7e4ab419bda49 (commit)
commit e670cc7638d1b28d340d3c35acab68c74e193dfe
Author: Mike Massonnet <mmassonnet at xfce.org>
Date: Tue Feb 1 19:08:22 2011 +0100
Fix compilation with Vala 0.10.3
src/main.vala:transform_string_to_enum() didn't compile against 0.10.3.
Added a workaround for the GObject-low-level function to compile fine.
src/main.vala | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/main.vala b/src/main.vala
index 9acaf12..d192f27 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -34,14 +34,16 @@ namespace Xfmpc {
int i = 0;
unowned EnumValue enum_value;
- while ((enum_value = klass.get_value (i)) != null)
+ while (klass.get_value (i) != null)
{
+ enum_value = klass.get_value (i);
if (GLib.strcmp ((enum_value.value_name).casefold (), (src.get_string ()).casefold ()) == 0)
+ {
+ dst.set_enum (enum_value.value);
break;
- i ++;
+ }
+ i++;
}
-
- dst.set_enum (enum_value.value);
}
public static int main (string[] args) {
More information about the Xfce4-commits
mailing list