~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/DisplayBinding.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
                
50
50
                AssemblyBrowserViewContent viewContent = null;
51
51
                
52
 
                AssemblyBrowserViewContent GetViewContent ()
 
52
                internal AssemblyBrowserViewContent GetViewContent ()
53
53
                {
54
54
                        if (viewContent == null || viewContent.IsDisposed) {
55
55
                                viewContent = new AssemblyBrowserViewContent ();
56
 
                                viewContent.Control.Destroyed += delegate {
57
 
                                        this.viewContent = null;
58
 
                                };
 
56
                                viewContent.Control.Destroyed += HandleDestroyed;
59
57
                        }
60
58
                        return viewContent;
61
59
                }
 
60
 
 
61
                void HandleDestroyed (object sender, EventArgs e)
 
62
                {
 
63
                        ((Gtk.Widget)sender).Destroyed -= HandleDestroyed;
 
64
                        this.viewContent = null;
 
65
                }
62
66
                
63
67
                public bool CanHandle (FilePath fileName, string mimeType, Project ownerProject)
64
68
                {