mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
e33d60fa77
2000-04-28 Gene Z. Ragan <gzr@eazel.com> * libnautilus-extensions/nautilus-icon-text-item.c * libnautilus-extensions/nautilus-icon-text-item.h * libnautilus-extensions/nautilus-undo-manager-private.h Fixed the following FIXME bugs: 684 686 687 Hooked up the undo mechanism to work properly with the renaming widget. * libnautilus-extensions/nautilus-undo-manager.c * libnautilus-extensions/nautilus-undo-manager.h Add configuration defaults to sets the UndoManager to not use the redo functionality and sets the depth of the undo list to one transaction. (nautilus_undo_manager_enable_redo): Function to toggle on or off the ability to redo undone transactions. (nautilus_undo_manager_set_queue_depth): Function to set the max depth of the undo/redo queues (free_undo_manager_list_data): New utility function to clean up data in undo/redo list (prune_undo_manager_list): New utility function that prunes a set number of items from either the undo or redo list. (nautilus_undo_manager_add_undo_transaction): Manually insert an externally created undo transaction into the undo queue. (nautilus_undo_manager_add_redo_transaction): Manually insert an externally created undo transaction into the redo queue. * libnautilus-extensions/nautilus-undo-transaction.c * libnautilus-extensions/nautilus-undo-transaction.h (nautilus_undo_transaction_destroy): Added destructor function for a NautilusUndoTransaction object * src/nautilus-window-menus.c (update_undo_menu_item): Fixed bug 755. Connected to signal sent by undo manager that informs Undo menu item sensitivity to be set.
44 lines
No EOL
1.4 KiB
C
44 lines
No EOL
1.4 KiB
C
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
|
|
/* nautulus-undo-manager-private.h
|
|
*
|
|
* Copyright (C) 2000 Eazel, Inc.
|
|
*
|
|
* Author: Gene Z. Ragan <gzr@eazel.com>
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Library General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Library General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Library General Public
|
|
* License along with this library; if not, write to the
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
* Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
|
|
#ifndef NAUTILUS_UNDO_MANAGER_PRIVATE_H
|
|
#define NAUTILUS_UNDO_MANAGER_PRIVATE_H
|
|
|
|
#include <glib.h>
|
|
|
|
#include "nautilus-undo-transaction.h"
|
|
|
|
/* Private data */
|
|
NautilusUndoManager *global_undo_manager;
|
|
|
|
struct NautilusUndoManagerDetails {
|
|
NautilusUndoTransaction *transaction; /* Current active and unique transaction */
|
|
GList *undo_list;
|
|
GList *redo_list;
|
|
gboolean transaction_in_progress;
|
|
gboolean enable_redo;
|
|
gint queue_depth;
|
|
};
|
|
|
|
#endif /* NAUTILUS_UNDO_MANAGER_PRIVATE_H */ |