Save document on modification.
This commit is contained in:
parent
ea8713c43f
commit
45d9cf5ebf
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user