[gtk/matthiasc/for-master: 1/2] text history: Update state when enabled changes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 1/2] text history: Update state when enabled changes
- Date: Sun, 6 Sep 2020 21:02:25 +0000 (UTC)
commit 4d45c2669cff32c9d9855ba08f7841975ac585f1
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Sep 6 16:59:56 2020 -0400
text history: Update state when enabled changes
This makes can-undo go FALSE when we disable the
text history, as it should.
gtk/gtktexthistory.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtktexthistory.c b/gtk/gtktexthistory.c
index fc80b892a5..645d1822eb 100644
--- a/gtk/gtktexthistory.c
+++ b/gtk/gtktexthistory.c
@@ -1037,6 +1037,8 @@ gtk_text_history_set_enabled (GtkTextHistory *self,
clear_action_queue (&self->undo_queue);
clear_action_queue (&self->redo_queue);
}
+
+ gtk_text_history_update_state (self);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]