summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-undo-manager.h
diff options
context:
space:
mode:
authorGene Z. Ragan <gzr@eazel.com>2000-06-02 05:51:35 +0000
committerGene Ragan <gzr@src.gnome.org>2000-06-02 05:51:35 +0000
commitf1cc9405bd240ed989732b72a273eae48d42fa80 (patch)
treed625a8db9983cff69d39d33ec5173d4829d9deea /libnautilus-private/nautilus-undo-manager.h
parent2dcd63aca7f0978711b6f389c0dedff2a4240f8d (diff)
downloadnautilus-f1cc9405bd240ed989732b72a273eae48d42fa80.tar.gz
New call to be used internally to get the current undo transaction. An
2000-06-01 Gene Z. Ragan <gzr@eazel.com> * libnautilus/nautilus-undo-manager.c: * libnautilus/nautilus-undo-manager.h: (nautilus_undo_manager_get_current_undo_transaction): New call to be used internally to get the current undo transaction. An example of this call being used is in the menu code that displays the current undo operation name. * libnautilus/nautilus-undo-transaction.c: (impl_Nautilus_Undo_Transaction__get_undo_description), (impl_Nautilus_Undo_Transaction__get_redo_description), (impl_Nautilus_Undo_Transaction__get_operation_name), (impl_Nautilus_Undo_Transaction__undo), Added actual functionlality to these calls. They now work as advertised. (nautilus_undo_transaction_new), Made changed needed to actually use the operation name and description that is passed in. (nautilus_undo_transaction_destroy), Clean up stored operation name and description strings. * src/nautilus-window-menus.c: (update_undo_menu_item): The undo operation name is now displayed in the menu item.
Diffstat (limited to 'libnautilus-private/nautilus-undo-manager.h')
-rw-r--r--libnautilus-private/nautilus-undo-manager.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-undo-manager.h b/libnautilus-private/nautilus-undo-manager.h
index 671acbeb2..668733d1b 100644
--- a/libnautilus-private/nautilus-undo-manager.h
+++ b/libnautilus-private/nautilus-undo-manager.h
@@ -58,7 +58,7 @@ struct NautilusUndoManagerClass {
/* GtkObject */
GtkType nautilus_undo_manager_get_type (void);
-NautilusUndoManager *nautilus_undo_manager_new (void);
+NautilusUndoManager *nautilus_undo_manager_new (void);
/* Prototypes */
gboolean nautilus_undo_manager_can_undo (NautilusUndoManager *manager);
@@ -79,4 +79,8 @@ void nautilus_undo_manager_stash_global_undo (Nautilus_Undo_Manager undo_
Nautilus_Undo_Manager nautilus_undo_manager_get_global_undo (void);
+Nautilus_Undo_Transaction nautilus_undo_manager_get_current_undo_transaction (NautilusUndoManager *manager);
+
+
+
#endif