[cheese] Avoid deprecated GFile attribute syntax
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] Avoid deprecated GFile attribute syntax
- Date: Sun, 6 Jan 2013 17:10:35 +0000 (UTC)
commit c4707f68b8e578210a3c4b0a063878f5860e206f
Author: Nick Black <nick black sprezzatech com>
Date: Sun Jan 6 17:03:20 2013 +0000
Avoid deprecated GFile attribute syntax
Bump Vala requirement to 0.16.0.
configure.ac | 2 +-
src/cheese-window.vala | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 54223ff..d05106a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,7 +18,7 @@ AM_SILENT_RULES([yes])
# Check for programs
AC_PROG_CC
AM_PROG_CC_C_O
-AM_PROG_VALAC([0.13.2])
+AM_PROG_VALAC([0.16.0])
# Initialize libtool
LT_PREREQ([2.2])
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index c9895b5..3102a1b 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]