Save document on modification.

This commit is contained in:
Ulrich Eckhardt 2014-11-14 23:43:54 +01:00
parent ea8713c43f
commit 45d9cf5ebf

View File

@ -487,9 +487,16 @@ _moo_edit_get_actions (MooEdit *doc)
static void static void
modified_changed_cb (GtkTextBuffer *buffer, modified_changed_cb (GtkTextBuffer *buffer,
MooEdit *edit) MooEdit *edit)
{
if (1)
{
moo_edit_save(edit, NULL);
}
else
{ {
moo_edit_set_modified (edit, gtk_text_buffer_get_modified (buffer)); moo_edit_set_modified (edit, gtk_text_buffer_get_modified (buffer));
} }
}
static void static void