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

« back to all changes in this revision

Viewing changes to src/db/PhotoTable.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 2011 Yorba Foundation
 
1
/* Copyright 2011-2012 Yorba Foundation
2
2
 *
3
3
 * This software is licensed under the GNU Lesser General Public License
4
4
 * (version 2.1 or later).  See the COPYING file in this distribution. 
1053
1053
        if (filesize != info.get_size())
1054
1054
            return false;
1055
1055
        
1056
 
        TimeVal modification;
1057
 
        info.get_modification_time(out modification);
1058
 
        
1059
 
        return timestamp == modification.tv_sec;
 
1056
        return timestamp == info.get_modification_time().tv_sec;
1060
1057
    }
1061
1058
    
1062
1059
    public bool is_touched(FileInfo info) {
1063
1060
        if (filesize != info.get_size())
1064
1061
            return false;
1065
1062
        
1066
 
        TimeVal modification;
1067
 
        info.get_modification_time(out modification);
1068
 
        
1069
 
        return timestamp != modification.tv_sec;
 
1063
        return timestamp != info.get_modification_time().tv_sec;
1070
1064
    }
1071
1065
    
1072
1066
    // Copies another backing photo row into this one.