[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: i_callbacks.c
User: cnieves
Date: 06/10/22 06:26:45
Modified: . Tag: glist_dev i_callbacks.c
Log:
src/i_callbacks.c: don't save the undo state for view commands
if we are inside a command. Otherwise we can't go back to the
previous state if the action is cancelled.
Don't use the rotated_inside variable in the cancel callback,
since this variable is not used anymore. It will be removed later.
Revision Changes Path
No revision
No revision
1.69.2.4 +13 -8 eda/geda/gaf/gschem/src/i_callbacks.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: i_callbacks.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/i_callbacks.c,v
retrieving revision 1.69.2.3
retrieving revision 1.69.2.4
diff -u -b -r1.69.2.3 -r1.69.2.4
--- i_callbacks.c 22 Oct 2006 10:08:45 -0000 1.69.2.3
+++ i_callbacks.c 22 Oct 2006 10:26:44 -0000 1.69.2.4
@@ -1423,6 +1423,7 @@
/* scroll bar stuff */
a_zoom(w_current, ZOOM_FULL, DONTCARE, 0);
+ if (w_current->inside_action == 0)
o_undo_savestate(w_current, UNDO_VIEWPORT_ONLY);
}
@@ -1496,6 +1497,7 @@
exit_if_null(w_current);
a_zoom(w_current, ZOOM_IN, MENU, 0);
+ if (w_current->inside_action == 0)
o_undo_savestate(w_current, UNDO_VIEWPORT_ONLY);
}
@@ -1513,6 +1515,7 @@
exit_if_null(w_current);
a_zoom(w_current, ZOOM_OUT, MENU, 0);
+ if (w_current->inside_action == 0)
o_undo_savestate(w_current, UNDO_VIEWPORT_ONLY);
}
@@ -1531,6 +1534,7 @@
exit_if_null(w_current);
a_zoom(w_current, ZOOM_IN, HOTKEY, 0);
+ if (w_current->inside_action == 0)
o_undo_savestate(w_current, UNDO_VIEWPORT_ONLY);
}
@@ -1548,6 +1552,7 @@
exit_if_null(w_current);
a_zoom(w_current, ZOOM_OUT, HOTKEY, 0);
+ if (w_current->inside_action == 0)
o_undo_savestate(w_current, UNDO_VIEWPORT_ONLY);
}
@@ -1657,6 +1662,7 @@
i_set_state(w_current, SELECT);
i_update_toolbar(w_current);
} */
+ if (w_current->inside_action == 0)
o_undo_savestate(w_current, UNDO_VIEWPORT_ONLY);
}
@@ -3528,8 +3534,7 @@
exit_if_null(w_current);
- if ( (w_current->inside_action) &&
- (w_current->rotated_inside != 0)) {
+ if (w_current->inside_action) {
o_undo_callback(w_current, UNDO_ACTION);
w_current->rotated_inside = 0;
}
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs