private void Initialize()
        {
            // If Banshee is running from the MeeGo client entry assembly,
            // the MeeGoPanel will have already been created. If not, we
            // assume we're probably not really running in a MeeGo environment,
            // so we just create the panel here (which is likely to just be
            // a separate top-level window for testing).
            panel = MeeGoPanel.Instance;

            if (panel == null)
            {
                Log.Warning("Netbook extension initialized without a panel");
                return;
            }
            else
            {
                elements_service.PrimaryWindow.Hide();
            }

            panel.BuildContents();

            elements_service.PrimaryWindowClose = () => {
                elements_service.PrimaryWindow.Hide();
                return(true);
            };

            // Since the Panel is running, we don't actually ever want to quit!
            Banshee.ServiceStack.Application.ShutdownRequested += () => {
                elements_service.PrimaryWindow.Hide();
                return(false);
            };
        }
        public void Dispose()
        {
            if (panel != null)
            {
                panel.Dispose();
                panel = null;
            }

            interface_action_service = null;
            elements_service         = null;
        }
 public void PresentNetbookInterface()
 {
     Log.Information("Switch to Netbook interface");
     if (panel == null)
     {
         panel = new MeeGoPanel();
         Initialize();
     }
     panel.Show();
     elements_service.PrimaryWindow.Hide();
 }
        private void Initialize()
        {
            // If Banshee is running from the MeeGo client entry assembly,
            // the MeeGoPanel will have already been created. If not, we
            // assume we're probably not really running in a MeeGo environment,
            // so we just create the panel here (which is likely to just be
            // a separate top-level window for testing).
            panel = MeeGoPanel.Instance;

            if (panel == null)
            {
                Log.Information("Netbook extension initialized with hidden panel");
                //AddSwitchToPrimaryInterface ();
                return;
            }

            elements_service.PrimaryWindow.Hide();
            panel.BuildContents();

            elements_service.PrimaryWindowClose = () => {
                elements_service.PrimaryWindow.Hide();
                return(true);
            };
        }
Esempio n. 5
0
        private void Initialize ()
        {
            // If Banshee is running from the MeeGo client entry assembly,
            // the MeeGoPanel will have already been created. If not, we
            // assume we're probably not really running in a MeeGo environment,
            // so we just create the panel here (which is likely to just be
            // a separate top-level window for testing).
            panel = MeeGoPanel.Instance;

            if (panel == null) {
                Log.Warning ("Netbook extension initialized without a panel");
                return;
            } else {
                elements_service.PrimaryWindow.Hide ();
            }

            panel.BuildContents ();

            elements_service.PrimaryWindowClose = () => {
                elements_service.PrimaryWindow.Hide ();
                return true;
            };

            // Since the Panel is running, we don't actually ever want to quit!
            Banshee.ServiceStack.Application.ShutdownRequested += () => {
                elements_service.PrimaryWindow.Hide ();
                return false;
            };
        }
Esempio n. 6
0
        public void Dispose ()
        {
            if (panel != null) {
                panel.Dispose ();
                panel = null;
            }

            interface_action_service = null;
            elements_service = null;
        }
Esempio n. 7
0
        private void Initialize ()
        {
            // If Banshee is running from the MeeGo client entry assembly,
            // the MeeGoPanel will have already been created. If not, we
            // assume we're probably not really running in a MeeGo environment,
            // so we just create the panel here (which is likely to just be
            // a separate top-level window for testing).
            panel = MeeGoPanel.Instance;

            if (panel == null) {
                Log.Information ("Netbook extension initialized with hidden panel");
                //AddSwitchToPrimaryInterface ();
                return;
            }

            elements_service.PrimaryWindow.Hide ();
            panel.BuildContents ();

            elements_service.PrimaryWindowClose = () => {
                elements_service.PrimaryWindow.Hide ();
                return true;
            };

        }
Esempio n. 8
0
 public void PresentNetbookInterface ()
 {
     Log.Information ("Switch to Netbook interface");
     if (panel == null) {
         panel = new MeeGoPanel ();
         Initialize ();
     }
     panel.Show ();
     elements_service.PrimaryWindow.Hide ();
 }