[moserial] Fix deprecation warning



commit 672d3b0916f34ca76e70d09cd8339008bf94c10e
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jun 13 12:15:11 2012 +0100

    Fix deprecation warning
    
    src/MoUtils.vala:42.39-42.71: warning: GLib.FILE_ATTRIBUTE_STANDARD_SIZE has been deprecated since vala-0.16. Use FileAttribute.STANDARD_SIZE
    
    https://bugzilla.gnome.org/show_bug.cgi?id=678004

 src/MoUtils.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/MoUtils.vala b/src/MoUtils.vala
index 8c0912b..f696159 100644
--- a/src/MoUtils.vala
+++ b/src/MoUtils.vala
@@ -39,7 +39,7 @@ public class MoUtils : GLib.Object
 	public static int64 fileSize (string path) {
 		GLib.File file=newFile(path);
 		try {
-			GLib.FileInfo info=file.query_info(GLib.FILE_ATTRIBUTE_STANDARD_SIZE,0,null);
+			GLib.FileInfo info=file.query_info(FileAttribute.STANDARD_SIZE,0,null);
 			return info.get_size();
                 } catch (GLib.Error e) {
                         warning("%s", e.message);



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