summaryrefslogtreecommitdiff
path: root/fluid/proj/undo.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/proj/undo.cxx')
-rw-r--r--fluid/proj/undo.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/fluid/proj/undo.cxx b/fluid/proj/undo.cxx
index 0f1a478fb..01d1b68c2 100644
--- a/fluid/proj/undo.cxx
+++ b/fluid/proj/undo.cxx
@@ -82,7 +82,7 @@ char *Undo::filename(int level) {
void Undo::redo() {
// int undo_item = main_menubar->find_index(undo_cb);
// int redo_item = main_menubar->find_index(redo_cb);
- once_type_ = OnceType::ALWAYS;
+ once_type_ = FLD_UNDO_ONCETYPE_ALWAYS;
if (current_ >= last_) {
fl_beep();
@@ -126,7 +126,7 @@ void Undo::redo() {
void Undo::undo() {
// int undo_item = main_menubar->find_index(undo_cb);
// int redo_item = main_menubar->find_index(redo_cb);
- once_type_ = OnceType::ALWAYS;
+ once_type_ = FLD_UNDO_ONCETYPE_ALWAYS;
if (current_ <= 0) {
fl_beep();
@@ -184,8 +184,8 @@ void Undo::undo() {
\return 1 if the checkpoint was set, 0 if this is a repeating event
*/
int Undo::checkpoint(OnceType type) {
- if (type == OnceType::ALWAYS) {
- once_type_ = OnceType::ALWAYS;
+ if (type == FLD_UNDO_ONCETYPE_ALWAYS) {
+ once_type_ = FLD_UNDO_ONCETYPE_ALWAYS;
return 0;
}
if (paused_) return 0;
@@ -209,7 +209,7 @@ void Undo::checkpoint() {
// int undo_item = main_menubar->find_index(undo_cb);
// int redo_item = main_menubar->find_index(redo_cb);
- once_type_ = OnceType::ALWAYS;
+ once_type_ = FLD_UNDO_ONCETYPE_ALWAYS;
// Save the current UI to a checkpoint file...
const char *file = filename(current_);