コード例 #1
0
 public void Destroy()
 {
     if (widget != null)
     {
         widget.Destroy();
         widget.Dispose();
         widget = null;
     }
 }
コード例 #2
0
        public void Dispose()
        {
            if (installedSource != null) {
                installedSource.SetSubstituteAudioDisplay (null);
                installedSource = null;
            }

            contents.Destroy ();
            contents.Dispose ();
            contents = null;
        }
コード例 #3
0
        public void Dispose()
        {
            if (installedSource != null)
            {
                installedSource.SetSubstituteAudioDisplay(null);
                installedSource = null;
            }

            contents.Destroy();
            contents.Dispose();
            contents = null;
        }
コード例 #4
0
        public void Initialize()
        {
            // Hack alert!
            Addin visualizations = AddinManager.Registry.GetAddin("Banshee.OpenVP.Visualizations");

            if (visualizations != null)
            {
                visualizations.Enabled = true;
            }

            contents = new VisualizationDisplayWidget();

            ServiceManager.SourceManager.SourceAdded   += OnSourceAdded;
            ServiceManager.SourceManager.SourceRemoved += OnSourceRemoved;

            InstallDisplay(ServiceManager.SourceManager.FindSources <NowPlayingSource>().FirstOrDefault());
        }
 public void Destroy()
 {
     if (widget != null) {
         widget.Destroy();
         widget.Dispose();
         widget = null;
     }
 }
コード例 #6
0
        public void Initialize()
        {
            // Hack alert!
            Addin visualizations = AddinManager.Registry.GetAddin("Banshee.OpenVP.Visualizations");
            if (visualizations != null)
                visualizations.Enabled = true;

            contents = new VisualizationDisplayWidget();

            ServiceManager.SourceManager.SourceAdded += OnSourceAdded;
            ServiceManager.SourceManager.SourceRemoved += OnSourceRemoved;

            InstallDisplay (ServiceManager.SourceManager.FindSources<NowPlayingSource>().FirstOrDefault());
        }