Commit d4961cc8 authored by Sebastien Granjoux's avatar Sebastien Granjoux

Fix #567206 – Build doesn't start if auto-save fails

	* plugins/scintilla/text_editor.c,
	libanjuta/interfaces/libanjuta.idl:
	Fix #567206 – Build doesn't start if auto-save fails

svn path=/trunk/; revision=4688
parent 4f2c5b40
2009-02-02 Sébastien Granjoux <seb.sfo@free.fr>
* plugins/scintilla/text_editor.c,
libanjuta/interfaces/libanjuta.idl:
Fix #567206 – Build doesn't start if auto-save fails
2009-02-02 Sébastien Granjoux <seb.sfo@free.fr>
* plugins/document-manager/anjuta-bookmarks.c:
......@@ -96,6 +96,7 @@ interface IAnjutaFile
* @err: Error propagation and reporting
*
* Saves the content to the original file from which it was loaded.
* The signal saved is always emitted even if the save fails.
*/
void save ();
......@@ -106,6 +107,7 @@ interface IAnjutaFile
* @err: Error propagation and reporting
*
* Saves the content to a different File.
* The signal saved is always emitted even if the save fails.
*/
void save_as (GFile* file);
......
......@@ -1616,11 +1616,9 @@ text_editor_save_file (TextEditor * te, gboolean update)
GtkWindow *parent;
GError *error = NULL;
gboolean ret = FALSE;
if (te == NULL)
return FALSE;
if (IS_SCINTILLA (te->scintilla) == FALSE)
return FALSE;
g_return_val_if_fail (te != NULL, FALSE);
g_return_val_if_fail (IS_SCINTILLA (te->scintilla), FALSE);
text_editor_freeze (te);
text_editor_set_line_number_width(te);
......@@ -2757,8 +2755,11 @@ static void
isaveable_save (IAnjutaFileSavable* editor, GError** e)
{
TextEditor *text_editor = TEXT_EDITOR(editor);
if (text_editor->uri != NULL)
text_editor_save_file(text_editor, FALSE);
else
g_signal_emit_by_name (G_OBJECT (text_editor), "saved", NULL);
}
static void
......
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