diff options
author | Stefano Karapetsas <[email protected]> | 2011-12-26 19:52:59 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2011-12-26 19:52:59 +0100 |
commit | cdd4cad2ce3930bf1d484ab12371a5d6a354ea00 (patch) | |
tree | 029f4f723976e1480812a984e81b8e961e14d39c /src/caja-window-menus.c | |
parent | 390b49cb93699309e1250143e744b2e61ac81cfe (diff) | |
download | caja-cdd4cad2ce3930bf1d484ab12371a5d6a354ea00.tar.bz2 caja-cdd4cad2ce3930bf1d484ab12371a5d6a354ea00.tar.xz |
ported nautilus-elementary UNDO-REDO (bzr rev 60)
Diffstat (limited to 'src/caja-window-menus.c')
-rw-r--r-- | src/caja-window-menus.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/caja-window-menus.c b/src/caja-window-menus.c index c11b2869..774bb7c9 100644 --- a/src/caja-window-menus.c +++ b/src/caja-window-menus.c @@ -273,6 +273,7 @@ action_stop_callback (GtkAction *action, caja_window_slot_stop_loading (slot); } +#ifdef TEXT_CHANGE_UNDO static void action_undo_callback (GtkAction *action, gpointer user_data) @@ -280,6 +281,7 @@ action_undo_callback (GtkAction *action, caja_undo_manager_undo (CAJA_WINDOW (user_data)->application->undo_manager); } +#endif static void action_home_callback (GtkAction *action, @@ -849,10 +851,12 @@ static const GtkActionEntry main_entries[] = NULL, N_("Edit Caja preferences"), G_CALLBACK (action_preferences_callback) }, + #ifdef TEXT_CHANGE_UNDO /* name, stock id, label */ { "Undo", NULL, N_("_Undo"), "<control>Z", N_("Undo the last text change"), G_CALLBACK (action_undo_callback) }, + #endif /* name, stock id, label */ { "Up", GTK_STOCK_GO_UP, N_("Open _Parent"), "<alt>Up", N_("Open the parent folder"), G_CALLBACK (action_up_callback) |