~ubuntu-branches/ubuntu/quantal/shotwell/quantal

« back to all changes in this revision

Viewing changes to src/db/DatabaseTable.vala

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-02-21 13:52:58 UTC
  • mto: This revision was merged to the branch mainline in revision 47.
  • Revision ID: package-import@ubuntu.com-20120221135258-ao9jiib5qicomq7q
Tags: upstream-0.11.92
ImportĀ upstreamĀ versionĀ 0.11.92

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright 2009-2011 Yorba Foundation
 
1
/* Copyright 2009-2012 Yorba Foundation
2
2
 *
3
3
 * This software is licensed under the GNU LGPL (version 2.1 or later).
4
4
 * See the COPYING file in this distribution. 
41
41
        if (filename != Db.IN_MEMORY_NAME) {
42
42
            try {
43
43
                File file_db = File.new_for_path(filename);
44
 
                FileInfo info = file_db.query_info(GLib.FILE_ATTRIBUTE_ACCESS_CAN_WRITE, FileQueryInfoFlags.NONE);
45
 
                if (!info.get_attribute_boolean(GLib.FILE_ATTRIBUTE_ACCESS_CAN_WRITE))
 
44
                FileInfo info = file_db.query_info(FileAttribute.ACCESS_CAN_WRITE, FileQueryInfoFlags.NONE);
 
45
                if (!info.get_attribute_boolean(FileAttribute.ACCESS_CAN_WRITE))
46
46
                    AppWindow.panic(_("Unable to write to photo database file:\n %s").printf(filename));
47
47
            } catch (Error e) {
48
48
                AppWindow.panic(_("Error accessing database file:\n %s\n\nError was: \n%s").printf(filename,