[longomatch] Introduce ugly workaround for video window position bug on OSX



commit 88162081d1d73fb5870842943f69e02a7b2006cc
Author: Julien Moutte <julien fluendo com>
Date:   Tue Oct 28 15:27:00 2014 +0100

    Introduce ugly workaround for video window position bug on OSX

 LongoMatch.GUI/Gui/Component/AnalysisComponent.cs |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/AnalysisComponent.cs 
b/LongoMatch.GUI/Gui/Component/AnalysisComponent.cs
index 4a9d8dc..8868aa6 100644
--- a/LongoMatch.GUI/Gui/Component/AnalysisComponent.cs
+++ b/LongoMatch.GUI/Gui/Component/AnalysisComponent.cs
@@ -121,7 +121,9 @@ namespace LongoMatch.Gui.Component
                                Log.Debug ("Detaching player");
                                
                                playerWindow = new Gtk.Window (Constants.SOFTWARE_NAME);
-                               playerWindow.SetDefaultSize (playercapturer.Allocation.Width, 
playercapturer.Allocation.Height);
+                               int player_width = playercapturer.Allocation.Width;
+                               int player_height = playercapturer.Allocation.Height;
+                               playerWindow.SetDefaultSize (player_width, player_height);
                                playerWindow.Icon = Stetic.IconLoader.LoadIcon (this, "longomatch", 
IconSize.Button);
                                playerWindow.DeleteEvent += (o, args) => DetachPlayer ();
                                box = new EventBox ();
@@ -136,6 +138,8 @@ namespace LongoMatch.Gui.Component
                                playerWindow.Show ();
                                playercapturer.Reparent (box);
                                playerWindow.Focus = box;
+                               // Hack to reposition video window in widget for OSX
+                               playerWindow.Resize (player_width + 10, player_height);
                                videowidgetsbox.Visible = false;
                        } else {
                                Log.Debug ("Attaching player again");


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