[longomatch] Only apply the visibility hack on Microsoft Windows.	Indeed this tries to address a GDK bug only vis
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [longomatch] Only apply the visibility hack on Microsoft Windows.	Indeed this tries to address a GDK bug only vis
- Date: Wed, 21 Jan 2015 10:52:54 +0000 (UTC)
commit 4ccfb62b5ad23d88650260981884befac9a7fc33
Author: Julien Moutte <julien fluendo com>
Date:   Mon Jan 12 15:37:33 2015 +0100
    Only apply the visibility hack on Microsoft Windows.
    Indeed this tries to address a GDK bug only visible on Windows, no need to use it on other platforms as 
it could create some problems like a crash observed in the capturerbin on OSX.
 LongoMatch.GUI.Multimedia/Gui/VideoWindow.cs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI.Multimedia/Gui/VideoWindow.cs b/LongoMatch.GUI.Multimedia/Gui/VideoWindow.cs
index 0a3ed4e..0cb8e92 100644
--- a/LongoMatch.GUI.Multimedia/Gui/VideoWindow.cs
+++ b/LongoMatch.GUI.Multimedia/Gui/VideoWindow.cs
@@ -41,7 +41,10 @@ namespace LongoMatch.Gui
                        videoeventbox.ButtonPressEvent += HandleButtonPressEvent;
                        videoeventbox.ScrollEvent += HandleScrollEvent;
                        videoeventbox.BorderWidth = 0;
+#if OSTYPE_WINDOWS
+                       // Workaround for GTK bugs on Windows not showing the video window
                        videoeventbox.VisibilityNotifyEvent += HandleVisibilityNotifyEvent;
+#endif
 
                        frame.Add (Window);
                        videoeventbox.Add (frame);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]