[banshee] [Banshee.Moblin] Disable quitting, hide the main UI



commit b408d59b0ee38287c3724550368ea3fd7fc2a90d
Author: Aaron Bockover <abockover novell com>
Date:   Wed Oct 14 23:41:55 2009 -0400

    [Banshee.Moblin] Disable quitting, hide the main UI

 .../Banshee.Moblin/Banshee.Moblin/MoblinService.cs |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/Extensions/Banshee.Moblin/Banshee.Moblin/MoblinService.cs b/src/Extensions/Banshee.Moblin/Banshee.Moblin/MoblinService.cs
index fba5f71..cf869ac 100644
--- a/src/Extensions/Banshee.Moblin/Banshee.Moblin/MoblinService.cs
+++ b/src/Extensions/Banshee.Moblin/Banshee.Moblin/MoblinService.cs
@@ -83,6 +83,11 @@ namespace Banshee.Moblin
         
         private void Initialize ()
         {
+            Application.ShutdownRequested += () => {
+                elements_service.PrimaryWindow.Hide ();
+                return false;
+            };
+
             if (MoblinPanel.Instance != null) {
                 var container = MoblinPanel.Instance.ParentContainer;
                 foreach (var child in container.Children) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]