The change of modified state of a text buffer in an irreversible action is lost
GTK 4.12.4
Code to reproduce the issue:
GtkTextBuffer *buffer = gtk_text_buffer_new (NULL);
gtk_text_buffer_set_modified (buffer, TRUE);
gtk_text_buffer_begin_irreversible_action (buffer);
gtk_text_buffer_set_modified (buffer, FALSE);
gtk_text_buffer_end_irreversible_action (buffer);
g_printerr ("modified: %d\n", gtk_text_buffer_get_modified (buffer));
The reverse change (FALSE -> TRUE) is also lost. These changes were preserved with GTK 3/GSV 4 (gtk_source_buffer_begin_not_undoable_action()
, gtk_source_buffer_end_not_undoable_action()
).