summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-05-12 21:22:57 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-05-12 21:22:57 (GMT)
commitb4f74086bc18e8d816af1d49606295c975420241 (patch)
tree47b062152f7dc310ca9e2773eb825ce65883eca0 /doc
parent4c0630f07e5f4720094070cdd78a0a58c5696aad (diff)
downloadtk-b4f74086bc18e8d816af1d49606295c975420241.zip
tk-b4f74086bc18e8d816af1d49606295c975420241.tar.gz
tk-b4f74086bc18e8d816af1d49606295c975420241.tar.bz2
Documented the <<UndoStack>> event
Diffstat (limited to 'doc')
-rw-r--r--doc/event.n4
-rw-r--r--doc/text.n4
2 files changed, 8 insertions, 0 deletions
diff --git a/doc/event.n b/doc/event.n
index 045339e..54ad42e 100644
--- a/doc/event.n
+++ b/doc/event.n
@@ -352,6 +352,10 @@ user-driven
.QW "tab to widget"
action.
.TP
+\fB<<UndoStack>>\fR
+This is sent to a text widget when its undo stack or redo stack becomes
+empty or unempty.
+.TP
\fB<<WidgetViewSync>>\fR
This is sent to a text widget when its internal data become obsolete,
and again when these internal data are back in sync with the widget
diff --git a/doc/text.n b/doc/text.n
index c788fa5..96e7ccc 100644
--- a/doc/text.n
+++ b/doc/text.n
@@ -897,6 +897,10 @@ separator is already present at the top of the undo stack no other will be
inserted. That means that two separators on the undo stack are always
separated by at least one insert or delete action.
.PP
+The \fB<<UndoStack>>\fR virtual event is generated every time the undo stack
+or the redo stack becomes empty or unempty. This event is generated once for
+each peer widget.
+.PP
The undo mechanism is also linked to the modified flag. This means that
undoing or redoing changes can take a modified text widget back to the
unmodified state or vice versa. The modified flag will be set automatically to