diff options
author | Milan Crha <mcrha@redhat.com> | 2014-01-11 00:18:49 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2014-01-11 00:18:49 +0800 |
commit | 63a1f0eab3e15e0d64e24bd5a2659a61347cfe9c (patch) | |
tree | 4af77bd941992bb173dac1e4480f51fb30fb5b1a /e-util/e-selectable.c | |
parent | 04ed82b0530ca7fa34008876b056378dff6b76fb (diff) | |
download | gsoc2013-evolution-63a1f0eab3e15e0d64e24bd5a2659a61347cfe9c.tar gsoc2013-evolution-63a1f0eab3e15e0d64e24bd5a2659a61347cfe9c.tar.gz gsoc2013-evolution-63a1f0eab3e15e0d64e24bd5a2659a61347cfe9c.tar.bz2 gsoc2013-evolution-63a1f0eab3e15e0d64e24bd5a2659a61347cfe9c.tar.lz gsoc2013-evolution-63a1f0eab3e15e0d64e24bd5a2659a61347cfe9c.tar.xz gsoc2013-evolution-63a1f0eab3e15e0d64e24bd5a2659a61347cfe9c.tar.zst gsoc2013-evolution-63a1f0eab3e15e0d64e24bd5a2659a61347cfe9c.zip |
Bug #333184 - Add Undo support to component editors
Diffstat (limited to 'e-util/e-selectable.c')
-rw-r--r-- | e-util/e-selectable.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/e-util/e-selectable.c b/e-util/e-selectable.c index d19adb8304..6b011ee33b 100644 --- a/e-util/e-selectable.c +++ b/e-util/e-selectable.c @@ -134,6 +134,32 @@ e_selectable_select_all (ESelectable *selectable) interface->select_all (selectable); } +void +e_selectable_undo (ESelectable *selectable) +{ + ESelectableInterface *interface; + + g_return_if_fail (E_IS_SELECTABLE (selectable)); + + interface = E_SELECTABLE_GET_INTERFACE (selectable); + + if (interface->undo != NULL) + interface->undo (selectable); +} + +void +e_selectable_redo (ESelectable *selectable) +{ + ESelectableInterface *interface; + + g_return_if_fail (E_IS_SELECTABLE (selectable)); + + interface = E_SELECTABLE_GET_INTERFACE (selectable); + + if (interface->redo != NULL) + interface->redo (selectable); +} + GtkTargetList * e_selectable_get_copy_target_list (ESelectable *selectable) { |