[longomatch] Turn the compile-time check for Windows into a runtime check, when working around a problem in Gtk r
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Turn the compile-time check for Windows into a runtime check, when working around a problem in Gtk r
- Date: Tue, 31 Mar 2015 17:29:07 +0000 (UTC)
commit f76774e1d0d8d8a8e515cd0963b363cac0262431
Author: Xavi Artigas <xartigas fluendo com>
Date: Thu Mar 19 17:11:17 2015 +0100
Turn the compile-time check for Windows into a runtime check, when working around a problem in Gtk
regarding the video window visibility.
LongoMatch.GUI.Multimedia/Gui/VideoWindow.cs | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/LongoMatch.GUI.Multimedia/Gui/VideoWindow.cs b/LongoMatch.GUI.Multimedia/Gui/VideoWindow.cs
index 0cb8e92..b5d1393 100644
--- a/LongoMatch.GUI.Multimedia/Gui/VideoWindow.cs
+++ b/LongoMatch.GUI.Multimedia/Gui/VideoWindow.cs
@@ -41,10 +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
+ if (Environment.OSVersion.Platform == PlatformID.Win32NT) {
+ // Workaround for GTK bugs on Windows not showing the video window
+ videoeventbox.VisibilityNotifyEvent += HandleVisibilityNotifyEvent;
+ }
frame.Add (Window);
videoeventbox.Add (frame);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]