~ubuntu-branches/debian/squeeze/f-spot/squeeze

« back to all changes in this revision

Viewing changes to src/PixbufCache.cs

  • Committer: Bazaar Package Importer
  • Author(s): Iain Lane, Mirco Bauer, Iain Lane
  • Date: 2009-02-07 20:23:32 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: james.westby@ubuntu.com-20090207202332-oc93rfjo1st0571s
Tags: 0.5.0.3-2
[ Mirco Bauer]
* Upload to unstable.
* debian/control:
  + Lowered GNOME# build-deps to 2.0 ABI as that transition didn't happen
    yet in unstable.

[ Iain Lane ]
* debian/patches/svn-r4545_locales-import.dpatch: Patch backported from SVN
  trunk revision 4545 - initialize the translation catalog earlier (LP: #293305)
  (Closes: #514457). Thanks to Florian Heinle for finding the patch and to
  Chris Coulson for preparing the update.
* debian/control: Build-depend on libmono-dev (>= 1.2.4) to match configure
  checks.
* debian/rules: Pass CSC=/usr/bin/csc to configure for gio-sharp to fix FTBFS

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * FSpot.PixbufCache.cs
 
3
 *
 
4
 * Author(s):
 
5
 *      Larry Ewing <lewing@novell.com>
 
6
 *
 
7
 * This is free software. See COPYING for details.
 
8
 */
 
9
 
 
10
using System;
1
11
using System.Collections;
2
12
using System.Threading;
3
13
 
24
34
                        ThumbnailGenerator.Default.OnPixbufLoaded += HandleThumbnailLoaded;
25
35
                }
26
36
                
27
 
                public void HandleThumbnailLoaded (PixbufLoader loader, string path, int order, Gdk.Pixbuf result)
 
37
                public void HandleThumbnailLoaded (PixbufLoader loader, Uri uri, int order, Gdk.Pixbuf result)
28
38
                {
29
 
                        string thumb_path = ThumbnailGenerator.ThumbnailPath (new System.Uri (path));
 
39
                        string thumb_path = ThumbnailGenerator.ThumbnailPath (uri);
30
40
                        
31
41
                        if (result != null)
32
42
                                Reload (thumb_path);
47
57
                                }
48
58
                                Monitor.Pulse (items);
49
59
                        }
 
60
#if GSD_2_24
 
61
                        if (!System.IO.File.Exists (path))
 
62
                                return;
 
63
                        Utils.Unix.Touch (path);
 
64
#endif
50
65
                }
51
66
 
52
67
                public void Update (string path, Gdk.Pixbuf pixbuf)