[longomatch] Make hotkeys work when detaching the player
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Make hotkeys work when detaching the player
- Date: Tue, 28 Oct 2014 09:49:41 +0000 (UTC)
commit 7a7e1a550f36009c461ea04f82b970f1a4392765
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Mon Oct 20 21:17:55 2014 +0200
Make hotkeys work when detaching the player
LongoMatch.GUI/Gui/Component/AnalysisComponent.cs | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/AnalysisComponent.cs
b/LongoMatch.GUI/Gui/Component/AnalysisComponent.cs
index c6369df..38b63ff 100644
--- a/LongoMatch.GUI/Gui/Component/AnalysisComponent.cs
+++ b/LongoMatch.GUI/Gui/Component/AnalysisComponent.cs
@@ -91,14 +91,16 @@ namespace LongoMatch.Gui.Component
playerWindow.Icon = Stetic.IconLoader.LoadIcon (this, "longomatch",
IconSize.Button);
playerWindow.DeleteEvent += (o, args) => DetachPlayer ();
box = new EventBox ();
-
- box.KeyPressEvent += (o, args) => OnKeyPressEvent (args.Event);
+ box.KeyPressEvent += (o, args) => Config.EventsBroker.EmitKeyPressed (this,
+ (int)
args.Event.Key,
+ (int)
args.Event.State);
playerWindow.Add (box);
box.Show ();
+ box.CanFocus = true;
playerWindow.Show ();
-
playercapturer.Reparent (box);
+ playerWindow.Focus = box;
videowidgetsbox.Visible = false;
} else {
Log.Debug ("Attaching player again");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]