[PATCH 4/5] don't use deprecated FILE_ATTRIBUTE_STANDARD_NAME



howdy, please apply. these can be pulled from

	https://github.com/dankamongmen/dankcheese

trivial patch, eliminating warnings from valac-0.18. thanks!

---
 src/cheese-window.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index 8c4c4aa..2934b92 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -321,13 +321,13 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow
     // TODO: Use asynchronous methods.
     try {
       var directory = File.new_for_path (fileutil.get_photo_path ());
-      var enumerator = directory.enumerate_children (FILE_ATTRIBUTE_STANDARD_NAME, FileQueryInfoFlags.NONE);
+      var enumerator = directory.enumerate_children (FileAttribute.STANDARD_NAME, FileQueryInfoFlags.NONE);
 
       // Trash photos.
       trash_enumerated_files (directory.get_path (), enumerator);
 
       directory  = File.new_for_path (fileutil.get_video_path ());
-      enumerator = directory.enumerate_children (FILE_ATTRIBUTE_STANDARD_NAME, FileQueryInfoFlags.NONE);
+      enumerator = directory.enumerate_children (FileAttribute.STANDARD_NAME, FileQueryInfoFlags.NONE);
 
       // Trash videos.
       trash_enumerated_files (directory.get_path (), enumerator);
-- 
1.8.0


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