[longomatch] Close the dialog if cancel is clicked
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Close the dialog if cancel is clicked
- Date: Tue, 7 Sep 2010 20:22:23 +0000 (UTC)
commit ae4ef9076d085c072bd3a5ca1fc342090f628c17
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Fri Sep 3 17:46:33 2010 +0200
Close the dialog if cancel is clicked
LongoMatch/Gui/Dialog/VideoEditionProperties.cs | 6 ++++++
...LongoMatch.Gui.Dialog.VideoEditionProperties.cs | 1 +
LongoMatch/gtk-gui/gui.stetic | 1 +
3 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch/Gui/Dialog/VideoEditionProperties.cs b/LongoMatch/Gui/Dialog/VideoEditionProperties.cs
index 60bc294..edd376b 100644
--- a/LongoMatch/Gui/Dialog/VideoEditionProperties.cs
+++ b/LongoMatch/Gui/Dialog/VideoEditionProperties.cs
@@ -191,5 +191,11 @@ namespace LongoMatch.Gui.Dialog
}
fChooser.Destroy();
}
+ protected virtual void OnButtonCancelClicked (object sender, System.EventArgs e)
+ {
+ this.Destroy();
+ }
+
+
}
}
diff --git a/LongoMatch/gtk-gui/LongoMatch.Gui.Dialog.VideoEditionProperties.cs b/LongoMatch/gtk-gui/LongoMatch.Gui.Dialog.VideoEditionProperties.cs
index 0a042b0..c319783 100644
--- a/LongoMatch/gtk-gui/LongoMatch.Gui.Dialog.VideoEditionProperties.cs
+++ b/LongoMatch/gtk-gui/LongoMatch.Gui.Dialog.VideoEditionProperties.cs
@@ -274,6 +274,7 @@ namespace LongoMatch.Gui.Dialog {
this.DefaultHeight = 223;
this.Show();
this.openbutton.Clicked += new System.EventHandler(this.OnOpenbuttonClicked);
+ this.buttonCancel.Clicked += new System.EventHandler(this.OnButtonCancelClicked);
this.buttonOk.Clicked += new System.EventHandler(this.OnButtonOkClicked);
}
}
diff --git a/LongoMatch/gtk-gui/gui.stetic b/LongoMatch/gtk-gui/gui.stetic
index ce6197e..52cb081 100644
--- a/LongoMatch/gtk-gui/gui.stetic
+++ b/LongoMatch/gtk-gui/gui.stetic
@@ -3188,6 +3188,7 @@ Full HD 1080p (16:9 - 1920x1080)</property>
<property name="Type">StockItem</property>
<property name="StockId">gtk-cancel</property>
<property name="ResponseId">-6</property>
+ <signal name="Clicked" handler="OnButtonCancelClicked" />
<property name="label">gtk-cancel</property>
</widget>
<packing>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]