Author: pollux
Date: 2006-12-23 12:37:09 +0000 (Sat, 23 Dec 2006)
New Revision: 24173

Modified:
   xfburn/trunk/xfburn/xfburn-progress-dialog.c
Log:
Apply patch from Jasper to prevent crash when closing the Blanking CD dialog 
(fix bug #2679)

Modified: xfburn/trunk/xfburn/xfburn-progress-dialog.c
===================================================================
--- xfburn/trunk/xfburn/xfburn-progress-dialog.c        2006-12-23 02:25:17 UTC 
(rev 24172)
+++ xfburn/trunk/xfburn/xfburn-progress-dialog.c        2006-12-23 12:37:09 UTC 
(rev 24173)
@@ -499,12 +499,12 @@
 static void
 cb_dialog_response (XfburnProgressDialog * dialog, gint response_id, 
XfburnProgressDialogPrivate * priv)
 {
+  g_signal_emit (G_OBJECT (dialog), signals[FINISHED], 0);
   if (response_id == GTK_RESPONSE_CANCEL) {
     if (priv->pid_command > 0) {
       kill (priv->pid_command, SIGTERM);
       priv->pid_command = -1;
     }
-    
     gtk_widget_set_sensitive (priv->button_stop, FALSE);
     priv->status = XFBURN_PROGRESS_DIALOG_STATUS_CANCELLED;
   } else if (response_id == GTK_RESPONSE_CLOSE)
@@ -688,7 +688,9 @@
 xfburn_progress_dialog_set_status (XfburnProgressDialog * dialog, 
XfburnProgressDialogStatus status)
 {
   XfburnProgressDialogPrivate *priv = XFBURN_PROGRESS_DIALOG_GET_PRIVATE 
(dialog);
-  
+
+  if (status == XFBURN_PROGRESS_DIALOG_STATUS_COMPLETED)
+    g_signal_emit (G_OBJECT (dialog), signals[FINISHED], 0);
   priv->status = status;
 }
 

_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to