[Xfce4-commits] <xfburn:master> Add confirmation dialog before aborting the burning process
David Mohr
noreply at xfce.org
Fri May 3 06:38:01 CEST 2013
Updating branch refs/heads/master
to 17a898e5fdb335fa7241c0d3aa39f83db6430386 (commit)
from 26657b61db34860c51759260ad6152a5f429c01b (commit)
commit 17a898e5fdb335fa7241c0d3aa39f83db6430386
Author: David Mohr <david at mcbf.net>
Date: Thu May 2 22:30:55 2013 -0600
Add confirmation dialog before aborting the burning process
xfburn/xfburn-progress-dialog.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/xfburn/xfburn-progress-dialog.c b/xfburn/xfburn-progress-dialog.c
index 1448bf4..7aac682 100644
--- a/xfburn/xfburn-progress-dialog.c
+++ b/xfburn/xfburn-progress-dialog.c
@@ -367,6 +367,18 @@ stop (XfburnProgressDialog *dialog)
static void
cb_button_stop_clicked (GtkWidget *button, XfburnProgressDialog *dialog)
{
+ gint res;
+ GtkWidget *popup;
+
+ popup = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO,
+ _("Are you sure you want to abort?"));
+
+ res = gtk_dialog_run (GTK_DIALOG (popup));
+ gtk_widget_destroy (popup);
+
+ if (res != GTK_RESPONSE_YES)
+ return;
+
stop (dialog);
}
More information about the Xfce4-commits
mailing list