anjuta r4688 - in trunk: . libanjuta/interfaces plugins/scintilla
- From: sgranjoux svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r4688 - in trunk: . libanjuta/interfaces plugins/scintilla
- Date: Mon, 2 Feb 2009 21:13:38 +0000 (UTC)
Author: sgranjoux
Date: Mon Feb 2 21:13:38 2009
New Revision: 4688
URL: http://svn.gnome.org/viewvc/anjuta?rev=4688&view=rev
Log:
* plugins/scintilla/text_editor.c,
libanjuta/interfaces/libanjuta.idl:
Fix #567206 â Build doesn't start if auto-save fails
Modified:
trunk/ChangeLog
trunk/libanjuta/interfaces/libanjuta.idl
trunk/plugins/scintilla/text_editor.c
Modified: trunk/libanjuta/interfaces/libanjuta.idl
==============================================================================
--- trunk/libanjuta/interfaces/libanjuta.idl (original)
+++ trunk/libanjuta/interfaces/libanjuta.idl Mon Feb 2 21:13:38 2009
@@ -96,6 +96,7 @@
* @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 @@
* @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);
Modified: trunk/plugins/scintilla/text_editor.c
==============================================================================
--- trunk/plugins/scintilla/text_editor.c (original)
+++ trunk/plugins/scintilla/text_editor.c Mon Feb 2 21:13:38 2009
@@ -1616,11 +1616,9 @@
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 @@
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]