Commit 6a688930 authored by Paolo Borelli's avatar Paolo Borelli Committed by Paolo Borelli

Handle G_IO_ERROR_CANT_CREATE_BACKUP

2009-02-16  Paolo Borelli  <pborelli@katamail.com>

	* gedit/gedit-tab.c:
	* gedit/gedit-io-error-message-area.c:
	Handle G_IO_ERROR_CANT_CREATE_BACKUP


svn path=/trunk/; revision=6901
parent 48feaaa5
2009-02-16 Paolo Borelli <pborelli@katamail.com>
* gedit/gedit-tab.c:
* gedit/gedit-io-error-message-area.c:
Handle G_IO_ERROR_CANT_CREATE_BACKUP
2009-02-16 Sebastien Bacher <seb128@ubuntu.com>
* plugins/time/Makefile.am: install the .ui in the correct directory
......
......@@ -894,8 +894,10 @@ gedit_no_backup_saving_error_message_area_new (const gchar *uri,
g_return_val_if_fail (uri != NULL, NULL);
g_return_val_if_fail (error != NULL, NULL);
g_return_val_if_fail (error->domain == GEDIT_DOCUMENT_ERROR, NULL);
g_return_val_if_fail (error->code == GEDIT_DOCUMENT_ERROR_CANT_CREATE_BACKUP, NULL);
g_return_val_if_fail (((error->domain == GEDIT_DOCUMENT_ERROR &&
error->code == GEDIT_DOCUMENT_ERROR_CANT_CREATE_BACKUP) ||
(error->domain == G_IO_ERROR &&
error->code == G_IO_ERROR_CANT_CREATE_BACKUP)), NULL);
full_formatted_uri = gedit_utils_uri_for_display (uri);
......
......@@ -1318,8 +1318,10 @@ document_saved (GeditDocument *document,
G_CALLBACK (externally_modified_error_message_area_response),
tab);
}
else if (error->domain == GEDIT_DOCUMENT_ERROR &&
error->code == GEDIT_DOCUMENT_ERROR_CANT_CREATE_BACKUP)
else if ((error->domain == GEDIT_DOCUMENT_ERROR &&
error->code == GEDIT_DOCUMENT_ERROR_CANT_CREATE_BACKUP) ||
(error->domain == G_IO_ERROR &&
error->code == G_IO_ERROR_CANT_CREATE_BACKUP))
{
/* This error is recoverable */
emsg = gedit_no_backup_saving_error_message_area_new (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment