? report-problem-when-writing.diff
Index: screenshot-xfer.c
===================================================================
RCS file: /cvs/gnome/gnome-utils/gnome-screenshot/screenshot-xfer.c,v
retrieving revision 1.3
diff -u -r1.3 screenshot-xfer.c
--- screenshot-xfer.c	10 Nov 2004 06:20:32 -0000	1.3
+++ screenshot-xfer.c	25 Aug 2005 01:31:41 -0000
@@ -151,7 +151,10 @@
 handle_transfer_vfs_error (GnomeVFSXferProgressInfo *progress_info,
 			   TransferInfo             *transfer_info)
 {
-  g_print ("handle_transfer_vfs_error!\n");
+  GtkWidget *dialog;
+  gchar *vfs_status = NULL;
+  gchar *errmsg = NULL;
+
   remove_timeout (transfer_info);
   if (transfer_info->progress_dialog)
     {
@@ -159,6 +162,18 @@
       transfer_info->progress_dialog = NULL;
     }
   gtk_main_quit ();
+
+  vfs_status = gnome_vfs_result_to_string (progress_info->status);
+  errmsg = g_strdup_printf (_("<b>Unable to save screenshot:</b>\n\n%s"), vfs_status);
+  dialog = gtk_message_dialog_new_with_markup (GTK_WINDOW (transfer_info_get_parent (transfer_info)),
+					       GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL,
+					       GTK_MESSAGE_ERROR,
+					       GTK_BUTTONS_CLOSE,
+					       errmsg);
+  gtk_dialog_run (GTK_DIALOG (dialog));
+  gtk_widget_destroy (dialog);
+  g_free (errmsg);
+
   return 1;
 }
 
