[longomatch] Better fix for ticket #26543. Hiding EventBox's window has side effects on the them and event handli
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Better fix for ticket #26543. Hiding EventBox's window has side effects on the them and event handli
- Date: Tue, 28 Oct 2014 09:52:55 +0000 (UTC)
commit d1156ecc2a9edcdba8ec5ddb09375f48a5003f59
Author: Julien Moutte <julien fluendo com>
Date: Fri Oct 24 14:56:20 2014 +0200
Better fix for ticket #26543.
Hiding EventBox's window has side effects on the them and event handling over the video. Introduce a
workaround forcing video window visibility instead.
LongoMatch.GUI.Multimedia/Gui/VideoWindow.cs | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.GUI.Multimedia/Gui/VideoWindow.cs b/LongoMatch.GUI.Multimedia/Gui/VideoWindow.cs
index c613f30..818a0b1 100644
--- a/LongoMatch.GUI.Multimedia/Gui/VideoWindow.cs
+++ b/LongoMatch.GUI.Multimedia/Gui/VideoWindow.cs
@@ -41,14 +41,26 @@ namespace LongoMatch.Gui
videoeventbox.ButtonPressEvent += HandleButtonPressEvent;
videoeventbox.ScrollEvent += HandleScrollEvent;
videoeventbox.BorderWidth = 0;
- // This is required to avoid video window visibility issues on Windows.
- videoeventbox.VisibleWindow = false;
frame.Add (Window);
videoeventbox.Add (frame);
ShowAll ();
}
+ public new bool Visible {
+ get {
+ return base.Visible;
+ }
+ set {
+ base.Visible = value;
+ if (value) {
+ // Hack for Windows. Force video window visibility as EventBox
window's might prevent it to be mapped again.
+ // See for more info
https://code.area51.fluendo.com/private/trac/ticket/26543
+ Window.GdkWindow.Show ();
+ }
+ }
+ }
+
public bool Ready {
get;
set;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]