[longomatch] Prompt before going to pause in the recording
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Prompt before going to pause in the recording
- Date: Sun, 25 Nov 2012 10:41:37 +0000 (UTC)
commit 10de19a7627733383527164735e4ab3089f074a9
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sun Nov 25 01:34:48 2012 +0100
Prompt before going to pause in the recording
LongoMatch.GUI.Multimedia/Gui/CapturerBin.cs | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI.Multimedia/Gui/CapturerBin.cs b/LongoMatch.GUI.Multimedia/Gui/CapturerBin.cs
index 6676551..c27602d 100644
--- a/LongoMatch.GUI.Multimedia/Gui/CapturerBin.cs
+++ b/LongoMatch.GUI.Multimedia/Gui/CapturerBin.cs
@@ -130,6 +130,16 @@ namespace LongoMatch.Gui
if(capturer == null)
return;
+ if (capturing) {
+ MessageDialog md = new MessageDialog((Gtk.Window)this.Toplevel, DialogFlags.Modal,
+ MessageType.Question, ButtonsType.YesNo,
+ Catalog.GetString("Do you want to pause the recording?"));
+ var res = md.Run();
+ md.Destroy();
+ if(res == (int)ResponseType.No) {
+ return;
+ }
+ }
capturing = !capturing;
recbutton.Visible = !capturing;
pausebutton.Visible = capturing;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]