[longomatch] Rename StopEvent to CaptureFinished and fire the event
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Rename StopEvent to CaptureFinished and fire the event
- Date: Thu, 25 Mar 2010 20:48:04 +0000 (UTC)
commit b3ca99f333ef04a69ad19f3085686dc44eac6203
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sat Mar 6 23:57:13 2010 +0100
Rename StopEvent to CaptureFinished and fire the event
CesarPlayer/Gui/CapturerBin.cs | 9 +++++----
CesarPlayer/gtk-gui/gui.stetic | 1 -
CesarPlayer/gtk-gui/objects.xml | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/CesarPlayer/Gui/CapturerBin.cs b/CesarPlayer/Gui/CapturerBin.cs
index 4643f60..6717e4c 100644
--- a/CesarPlayer/Gui/CapturerBin.cs
+++ b/CesarPlayer/Gui/CapturerBin.cs
@@ -33,7 +33,7 @@ namespace LongoMatch.Gui
[System.ComponentModel.ToolboxItem(true)]
public partial class CapturerBin : Gtk.Bin
{
- public event EventHandler StopEvent;
+ public event EventHandler CaptureFinished;
ICapturer capturer;
@@ -118,16 +118,17 @@ namespace LongoMatch.Gui
protected virtual void OnStopbuttonClicked (object sender, System.EventArgs e)
{
MessageDialog md = new MessageDialog((Window)this.Toplevel, DialogFlags.Modal, MessageType.Question, ButtonsType.YesNo,
- Catalog.GetString("You choosed stopping the current capture."+"\n"+
+ Catalog.GetString("You are going to stop and finish the current capture."+"\n"+
"Do you want to proceed?"));
if (md.Run() == (int)ResponseType.Yes){
Stop();
recbutton.Visible = true;
pausebutton.Visible = false;
stopbutton.Visible = false;
- if (StopEvent != null)
- StopEvent(this, new EventArgs());
+ if (CaptureFinished != null)
+ CaptureFinished(this, new EventArgs());
}
+ md.Destroy();
}
protected virtual void OnTick (int ellapsedTime){
diff --git a/CesarPlayer/gtk-gui/gui.stetic b/CesarPlayer/gtk-gui/gui.stetic
index 72325cf..b55567f 100644
--- a/CesarPlayer/gtk-gui/gui.stetic
+++ b/CesarPlayer/gtk-gui/gui.stetic
@@ -256,7 +256,6 @@
<child>
<widget class="Gtk.Label" id="timelabel">
<property name="MemberName" />
- <property name="LabelProp" translatable="yes" />
</widget>
<packing>
<property name="Position">3</property>
diff --git a/CesarPlayer/gtk-gui/objects.xml b/CesarPlayer/gtk-gui/objects.xml
index 09a86ff..b202e02 100644
--- a/CesarPlayer/gtk-gui/objects.xml
+++ b/CesarPlayer/gtk-gui/objects.xml
@@ -23,7 +23,7 @@
<itemgroups />
<signals>
<itemgroup label="CapturerBin Signals">
- <signal name="StopEvent" />
+ <signal name="CaptureFinished" />
</itemgroup>
</signals>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]