gtktexthistory: allow set modified in irreversible action
Allow setting the modified flag, but skip propagating the history state update as it will be done by gtk_text_history_end_irreversible_action(). Fixes #6236 Closes #6236
This commit is contained in:
@@ -1083,7 +1083,6 @@ gtk_text_history_modified_changed (GtkTextHistory *self,
|
||||
|
||||
return_if_not_enabled (self);
|
||||
return_if_applying (self);
|
||||
return_if_irreversible (self);
|
||||
|
||||
/* If we have a new save point, clear all previous modified states. */
|
||||
gtk_text_history_clear_modified (self);
|
||||
@@ -1115,7 +1114,8 @@ gtk_text_history_modified_changed (GtkTextHistory *self,
|
||||
self->is_modified = !!modified;
|
||||
self->is_modified_set = TRUE;
|
||||
|
||||
gtk_text_history_update_state (self);
|
||||
if (!self->irreversible)
|
||||
gtk_text_history_update_state (self);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user