[longomatch] Try a different approach to force video window visibility when our widget becomes visible directly o
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Try a different approach to force video window visibility when our widget becomes visible directly o
- Date: Tue, 11 Nov 2014 17:57:55 +0000 (UTC)
commit fd7bf809569b0c2570e1bba2e62a8a9b2cefe017
Author: Julien Moutte <julien fluendo com>
Date: Thu Nov 6 12:23:08 2014 +0100
Try a different approach to force video window visibility when our widget becomes visible directly or
indirectly
LongoMatch.GUI.Multimedia/Gui/VideoWindow.cs | 18 +++++++-----------
1 files changed, 7 insertions(+), 11 deletions(-)
---
diff --git a/LongoMatch.GUI.Multimedia/Gui/VideoWindow.cs b/LongoMatch.GUI.Multimedia/Gui/VideoWindow.cs
index d8c70c7..96013ca 100644
--- a/LongoMatch.GUI.Multimedia/Gui/VideoWindow.cs
+++ b/LongoMatch.GUI.Multimedia/Gui/VideoWindow.cs
@@ -41,23 +41,19 @@ namespace LongoMatch.Gui
videoeventbox.ButtonPressEvent += HandleButtonPressEvent;
videoeventbox.ScrollEvent += HandleScrollEvent;
videoeventbox.BorderWidth = 0;
+ videoeventbox.VisibilityNotifyEvent += HandleVisibilityNotifyEvent;
frame.Add (Window);
videoeventbox.Add (frame);
ShowAll ();
}
- public new bool Visible {
- get {
- return base.Visible;
- }
- set {
- base.Visible = value;
- if (value && Window.GdkWindow != null) {
- // 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 ();
- }
+ void HandleVisibilityNotifyEvent (object o, VisibilityNotifyEventArgs args)
+ {
+ if (videoeventbox.Visible && Window.GdkWindow != null) {
+ // 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 ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]