/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to olive/info_helper.py

  • Committer: Gary van der Merwe
  • Date: 2007-08-10 10:45:06 UTC
  • mto: This revision was merged to the branch mainline in revision 256.
  • Revision ID: garyvdm@gmail.com-20070810104506-wo2mp9zfkh338axe
Make icon locations consistant between source and installed version. Let glade nkow where to find the icons with a project file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
163
163
    ret = {}
164
164
    branch = working.branch
165
165
    basis = working.basis_tree()
166
 
    work_inv = working.inventory
167
 
    
 
166
 
168
167
    if (bzrlib.version_info[0] == 0) and (bzrlib.version_info[1] < 9):
169
168
        delta = compare_trees(basis, working, want_unchanged=True)
170
169
    else:
192
191
    
193
192
    ret = {}
194
193
    basis = working.basis_tree()
195
 
    work_inv = working.inventory
196
 
    
 
194
 
197
195
    if (bzrlib.version_info[0] == 0) and (bzrlib.version_info[1] < 9):
198
196
        delta = compare_trees(basis, working, want_unchanged=True)
199
197
    else:
215
213
    ret['ignored'] = ignore_cnt
216
214
 
217
215
    dir_cnt = 0
218
 
    for file_id in work_inv:
219
 
        if work_inv.get_file_kind(file_id) == 'directory':
 
216
    for path, ie in working.iter_entries_by_dir():
 
217
        if ie.kind == 'directory':
220
218
            dir_cnt += 1
221
219
    ret['subdirs'] = dir_cnt
222
220