~ubuntu-branches/ubuntu/wily/docky/wily-proposed

« back to all changes in this revision

Viewing changes to Docky.Items/Docky.Menus/MenuItem.cs

  • Committer: Bazaar Package Importer
  • Author(s): Iain Lane
  • Date: 2010-05-04 16:15:39 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100504161539-fxt02zw6oprun9gi
Tags: 2.0.3.1-1
* New upstream release 2.0.3.1 "You should have heard from us by now",
  changes include:
  + fix gnome-keyring related crash in Lucid caused by GMail docklet
    (LP: #555562)
  + catch exception for read-failure of cxoffice launcher (LP: #573294)
  + check if authentication is used before using network proxy
  + make sure to update screen regions when showing menus
  + make transparent themed docks still glow in configuration mode
    (LP: #572416)
  + Memory Leaks
    - some unlinked handlers and pixbufs (DockItemMenu, WindowDockItem, ...)
    - proper disposal of tile-widgets in preferences dialog
    - properly using DesktopAppInfo for launching application
  + GMail: fix exception when reloading (LP: #573991)
  + CLOCK: popup menu must always show icons (LP: #574003)
  + helpers crash when dbus isn't available (LP: #540688)
* debian/rules: Don't byte compile python helpers as this causes them to
  appear in the prefs window twice (and the compiled ones don't work) 
* debian/control: Add dep on librsvg2-common to fix installability when this
  isn't otherwise available.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
namespace Docky.Menus
28
28
{
29
29
 
30
 
        public class MenuItem
 
30
        public class MenuItem : IDisposable
31
31
        {
32
32
                public event EventHandler DisabledChanged;
33
33
                public event EventHandler TextChanged;
152
152
                {
153
153
                        Clicked += onClicked;
154
154
                }
 
155
 
 
156
                #region IDisposable implementation
 
157
                public void Dispose ()
 
158
                {
 
159
                        if (forced_pixbuf != null)
 
160
                                forced_pixbuf.Dispose ();
 
161
                        forced_pixbuf = null;
 
162
                        
 
163
                        Clicked = null;
 
164
                        IconChanged = null;
 
165
                        DisabledChanged = null;
 
166
                        TextChanged = null;
 
167
                }
 
168
                #endregion
155
169
        }
156
170
}