[longomatch] Use the eventbox provided by the GstPlayer



commit 7443c135bf9d572867c20c4cb59c524a3572f077
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Mon Aug 17 19:38:40 2009 +0200

    Use the eventbox provided by the GstPlayer

 CesarPlayer/Gui/PlayerBin.cs                    |    2 ++
 CesarPlayer/gtk-gui/LongoMatch.Gui.PlayerBin.cs |    6 +++---
 CesarPlayer/gtk-gui/gui.stetic                  |    4 ++--
 3 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/CesarPlayer/Gui/PlayerBin.cs b/CesarPlayer/Gui/PlayerBin.cs
index 0ddba4c..df84e37 100644
--- a/CesarPlayer/Gui/PlayerBin.cs
+++ b/CesarPlayer/Gui/PlayerBin.cs
@@ -290,8 +290,10 @@ namespace LongoMatch.Gui
 			player.ReadyToSeek += new EventHandler(OnReadyToSeek);
 			
 			playerWidget = (Widget)player;
+			playerWidget.ButtonPressEvent += new ButtonPressEventHandler(OnVideoboxButtonPressEvent);
 			playerWidget.Show();
 			videobox.Add(playerWidget);			
+				
 		}
 		
 #endregion
diff --git a/CesarPlayer/gtk-gui/LongoMatch.Gui.PlayerBin.cs b/CesarPlayer/gtk-gui/LongoMatch.Gui.PlayerBin.cs
index 7986dd7..b5a818b 100644
--- a/CesarPlayer/gtk-gui/LongoMatch.Gui.PlayerBin.cs
+++ b/CesarPlayer/gtk-gui/LongoMatch.Gui.PlayerBin.cs
@@ -17,7 +17,7 @@ namespace LongoMatch.Gui {
         
         private Gtk.VBox vbox2;
         
-        private Gtk.EventBox videobox;
+        private Gtk.HBox videobox;
         
         private Gtk.HBox controlsbox;
         
@@ -59,8 +59,9 @@ namespace LongoMatch.Gui {
             this.vbox2.Name = "vbox2";
             this.vbox2.Spacing = 6;
             // Container child vbox2.Gtk.Box+BoxChild
-            this.videobox = new Gtk.EventBox();
+            this.videobox = new Gtk.HBox();
             this.videobox.Name = "videobox";
+            this.videobox.Spacing = 6;
             this.vbox2.Add(this.videobox);
             Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.videobox]));
             w1.Position = 0;
@@ -302,7 +303,6 @@ namespace LongoMatch.Gui {
             this.nextbutton.Hide();
             this.controlsbox.Hide();
             this.Show();
-            this.videobox.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnVideoboxButtonPressEvent);
             this.closebutton.Clicked += new System.EventHandler(this.OnClosebuttonClicked);
             this.playbutton.Clicked += new System.EventHandler(this.OnPlaybuttonClicked);
             this.pausebutton.Clicked += new System.EventHandler(this.OnPausebuttonClicked);
diff --git a/CesarPlayer/gtk-gui/gui.stetic b/CesarPlayer/gtk-gui/gui.stetic
index aaa26bb..a4c826e 100644
--- a/CesarPlayer/gtk-gui/gui.stetic
+++ b/CesarPlayer/gtk-gui/gui.stetic
@@ -83,9 +83,9 @@
             <property name="MemberName" />
             <property name="Spacing">6</property>
             <child>
-              <widget class="Gtk.EventBox" id="videobox">
+              <widget class="Gtk.HBox" id="videobox">
                 <property name="MemberName" />
-                <signal name="ButtonPressEvent" handler="OnVideoboxButtonPressEvent" />
+                <property name="Spacing">6</property>
                 <child>
                   <placeholder />
                 </child>



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