[chronojump] Trying to fix splashWin permanent on mac sometimes



commit e9350091a4c5565253acca4513c8b8c6dc11f189
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Apr 8 18:25:50 2015 +0200

    Trying to fix splashWin permanent on mac sometimes

 src/chronojump.cs |    3 +++
 src/gui/splash.cs |   15 +++++++++++++++
 2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/src/chronojump.cs b/src/chronojump.cs
index 106a099..b08fcc4 100644
--- a/src/chronojump.cs
+++ b/src/chronojump.cs
@@ -627,6 +627,9 @@ public class ChronoJump
                fakeSplashButton.Clicked -= new EventHandler(on_splash_ended);
                if(splashWin != null)
                        splashWin.Destroy();
+               else
+                       SplashWindow.Hide();
+
                LogB.Information("splash screen ENDED!");
                readMessageToStart();
        }
diff --git a/src/gui/splash.cs b/src/gui/splash.cs
index c1672f8..721abed 100644
--- a/src/gui/splash.cs
+++ b/src/gui/splash.cs
@@ -144,6 +144,21 @@ public class SplashWindow
                }
        }
 
+       //on 1.5.0 on mac, does not crash on splashwin but sometimes it does not disappear the splash   
+       //hide splashWin
+       //TODO: rewrite all the splashWin flow here and on chronojump.cs
+       static public void Hide () {
+               LogB.Debug("splash_window hide start ");
+               if(SplashWindowBox.splash_window != null) {
+                       LogB.Debug("splash_window hide != null");
+
+                       SplashWindowBox.splash_window.Visible = false;
+                       
+                       LogB.Debug("splash_window hide hidden");
+               }
+               LogB.Debug("splash_window hide end");
+       }
+
        private void on_delete_event (object o, DeleteEventArgs args) {
                splash_window.Destroy ();
        }


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