~ubuntu-branches/ubuntu/utopic/unity-place-files/utopic

« back to all changes in this revision

Viewing changes to src/utils.vala

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2011-01-21 14:36:22 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20110121143622-t53qh2164ajshlxn
Tags: 0.5.34-0ubuntu1
* New upstream release.
  (Not showing yet in the unity interface)
* debian/control:
  - update build-dep requirements

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *
18
18
 */
19
19
 
 
20
using GLib;
20
21
using Zeitgeist;
21
22
using Gee;
22
23
using Dee;
53
54
        return check_icon_string (uri, mimetype, info);
54
55
      } catch (GLib.Error e) {
55
56
        /* We failed to probe the icon. Try looking up by mimetype instead */
56
 
        Icon icon2 = g_content_type_get_icon (mimetype);
 
57
        Icon icon2 = ContentType.get_icon (mimetype);
57
58
        return icon2.to_string ();
58
59
      }
59
60
    }
71
72
        return check_icon_string (uri, mimetype, info);
72
73
      } catch (GLib.Error e) {
73
74
        /* We failed to probe the icon. Try looking up by mimetype instead */
74
 
        Icon icon2 = g_content_type_get_icon (mimetype);
 
75
        Icon icon2 = ContentType.get_icon (mimetype);
75
76
        return icon2.to_string ();
76
77
      }
77
78
    }
263
264
     */
264
265
    public async SList<FileInfo> list_dir (File folder) throws Error
265
266
    {
266
 
          var result = new SList<FileInfo> ();
 
267
      var result = new SList<FileInfo> ();
267
268
      var e = yield folder.enumerate_children_async (Utils.all_attribs,
268
269
                                                     0, Priority.DEFAULT,
269
270
                                                     null);