~elementary-pantheon/contractor/master

« back to all changes in this revision

Viewing changes to src/ContractDirectory.vala

  • Committer: RabbitBot
  • Author(s): Florian R. A. Angermeier
  • Date: 2015-09-21 13:31:07 UTC
  • mfrom: (136.1.11)
  • Revision ID: git-v1:4a5e95794024146bc89ee39053530c11e4977103
Implement filter functions based on file size:
* Get the max file size (int64, size in bytes) from a .contract file (optional key MaxFileSize)
* Add methods to the D-Bus service:
  - get_contracts_by_file_size
  - get_contracts_by_mime_and_file_size
  - get_contracts_by_mimelist_and_file_size

Add documentation

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
    }
51
51
 
52
52
    private async void on_change_event (File file, File? other_file, FileMonitorEvent event) {
53
 
        if (update_pending)
 
53
        if (update_pending) {
54
54
            return;
 
55
        }
55
56
 
56
57
        update_pending = true;
57
58