~ubuntu-branches/ubuntu/natty/gnome-do/natty

« back to all changes in this revision

Viewing changes to Do/src/Do.Platform/CoreService.cs

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2009-06-27 10:40:45 UTC
  • mfrom: (1.1.8 upstream) (0.1.5 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090627104045-7st10y1cqr6dpz37
Tags: 0.8.2+dfsg-1
* New upstream release
  + No longer uses a plugin repository.  Fixes many plugin-
    related issues. (LP: #343096, LP: #330025, LP #345001)
  + No longer blocks on "About Do" (LP: #361679)
  + Reacts correctly when a Composite manager is enabled/
    disabled at runtime. (LP: #346347, LP: #390150)
  + Fixes for space reserved by Docky blocking drag and 
    drop operations. (LP: #354729, LP: #347052, LP: #382843)
  + Properly sets "Hidden" key on autostart files in response to 
    "Start on login" option.  (Closes: #526023) (LP: #369988)
* debian/patches/10_application_search_path:
  + Drop; included upstream
* debian/patches/10_sk_translation_update:
  + Import sk translation update from Debian BTS.
    (Closes: #531779)
* debian/patches/11_fix_autostart_when_directory_does_not_exist:
  + Patch from upstream.  Fixes the "Start on login" option when the 
    ~/.config/autostart directory does not exist. (LP: #393729)
* debian/control:
  + Update standards version to 3.8.2; no changes required.
  + Add libtool to Build-Depends; required for autoreconf.
  + Add Recommends: on new gnome-do-docklets package.
* debian/gnome-do.1
  + Fix spelling: GNOME-Do => GNOME Do.
  + Miscelaneous lintian fixes; NAME section, escaping minus signs with \-
* debian/copyright:
  + Update for new copyright holders.
  + Minor update to DEP-5 format

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
                        remove { Do.UniverseManager.Initialized -= value; }
40
40
                }
41
41
 
42
 
                public Element GetElement (string uniqueId)
 
42
                public Item GetItem (string uniqueId)
43
43
                {
44
 
                        Element element;
45
 
                        Do.UniverseManager.TryGetElementForUniqueId (uniqueId, out element);
 
44
                        Item element;
 
45
                        Do.UniverseManager.TryGetItemForUniqueId (uniqueId, out element);
46
46
                        return element;
47
47
                }
48
48
                
49
49
                public IEnumerable<Item> GetItemsOrderedByRelevance ()
50
50
                {
51
 
                        return Do.UniverseManager.Search ("", typeof (Item).Cons (null)).Cast<Item> ();
 
51
                        return Do.UniverseManager.Search ("", typeof (Item).Cons (null)).Where (i => !i.IsAction ());
52
52
                }
53
53
 
54
54
                public void PerformDefaultAction (Item item, IEnumerable<Type> filter)
65
65
                {
66
66
                        IEnumerable<Act> actions = Do.UniverseManager
67
67
                                .Search ("", typeof (Act).Cons (null), item)
 
68
                                .Where (i => !(i is ProxyItem)) //no proxy items
68
69
                                .Cast<Act> ()
69
70
                                .Where (a => a.Safe.SupportsItem (item));
70
71