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

« back to all changes in this revision

Viewing changes to src/Core.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:
5
5
using org.freedesktop.DBus;
6
6
 
7
7
using FSpot.UI.Dialog;
 
8
using FSpot.Utils;
8
9
 
9
10
namespace FSpot {
10
11
        [Interface ("org.gnome.FSpot.Core")]
158
159
                                if (name != null)
159
160
                                        tag = Database.Tags.GetTagByName (name);
160
161
                                else {
161
 
                                        int id = (int) Preferences.Get (Preferences.SCREENSAVER_TAG);
 
162
                                        int id = Preferences.Get<int> (Preferences.SCREENSAVER_TAG);
162
163
                                        tag = Database.Tags.GetTagById (id);
163
164
                                }
164
165
                                
165
166
                                Photo [] photos;
166
167
                                if (tag != null)
167
168
                                        photos = Database.Photos.Query (new Tag [] { tag } );
168
 
                                else if ((int) Preferences.Get (Preferences.SCREENSAVER_TAG) == 0)
 
169
                                else if (Preferences.Get<int> (Preferences.SCREENSAVER_TAG) == 0)
169
170
                                        photos = db.Photos.Query (new Tag [] {});
170
171
                                else
171
172
                                        photos = new Photo [0];
267
268
 
268
269
                public void HandleDestroyed (object sender, System.EventArgs args)
269
270
                {
 
271
                        Log.Information ("Exiting");
270
272
                        toplevels.Remove (sender);
271
273
                        if (toplevels.Count == 0) {
272
 
                                if (db != null)
273
 
                                        db.EmitDown ();
274
 
                                // FIXME
275
 
                                // Should use Application.Quit(), but for that to work we need to terminate the threads
276
 
                                // first too.
 
274
                                Banshee.Kernel.Scheduler.Dispose ();
 
275
                                Core.Database.Dispose ();
 
276
                                PixbufLoader.Cleanup ();
 
277
                                Gtk.Application.Quit ();
277
278
                                System.Environment.Exit (0);
278
279
                        }
279
280
                        if (organizer != null && organizer.Window == sender)