Exemple #1
0
        public void Dispose()
        {
            if (brasero != null)
            {
                brasero.Dispose();
                brasero = null;
            }

            if (gconf_proxy != null)
            {
                gconf_proxy.Dispose();
                gconf_proxy = null;
            }

            if (Browser.OpenHandler == (Banshee.Web.Browser.OpenUrlHandler)OpenUrl)
            {
                Browser.OpenHandler = null;
            }
        }
Exemple #2
0
        public void Initialize()
        {
            try {
                // FIXME: this needs to be deferred/delayed initialized
                gconf_proxy = new GConfProxy();
            } catch (Exception e) {
                Hyena.Log.Error("Problem initializing GConfProxy", e);
                gconf_proxy = null;
            }

            try {
                brasero = new Brasero();
                brasero.Initialize();
            } catch {
                brasero = null;
            }

            if (Browser.OpenHandler == null)
            {
                Browser.OpenHandler = OpenUrl;
            }
        }