[longomatch] Enable key actions in the new window
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Enable key actions in the new window
- Date: Mon, 6 Feb 2012 02:13:05 +0000 (UTC)
commit df9659315c700770d83545e1129a23d6043f0383
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Thu Feb 2 23:35:05 2012 +0100
Enable key actions in the new window
LongoMatch.GUI/Gui/MainWindow.cs | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/MainWindow.cs b/LongoMatch.GUI/Gui/MainWindow.cs
index 2c1b061..e88bcda 100644
--- a/LongoMatch.GUI/Gui/MainWindow.cs
+++ b/LongoMatch.GUI/Gui/MainWindow.cs
@@ -311,12 +311,21 @@ namespace LongoMatch.Gui
detachedPlayer = detach;
if (detach) {
+ EventBox box;
Log.Debug("Detaching player");
+
playerWindow = new Gtk.Window(Constants.SOFTWARE_NAME);
playerWindow.Icon = Stetic.IconLoader.LoadIcon(this, "longomatch", IconSize.Button);
playerWindow.DeleteEvent += (o, args) => DetachPlayer(false);
+ box = new EventBox();
+
+ box.KeyPressEvent += (o, args) => OnKeyPressEvent(args.Event);
+ playerWindow.Add(box);
+
+ box.Show();
playerWindow.Show();
- player.Reparent(playerWindow);
+
+ player.Reparent(box);
buttonswidget.Visible = true;
timeline.Visible = true;
if (Config.useGameUnits) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]