Commit 882f6f9e authored by Gene Z. Ragan's avatar Gene Z. Ragan Committed by Gene Ragan
Browse files

Fixed bug 971, enable undo in file editing part of properties window.

2000-07-10  Gene Z. Ragan  <gzr@eazel.com>

	Fixed bug 971, enable undo in file editing part of
	properties window.

	* src/file-manager/fm-properties-window.c:
	(create_basic_page):
	Enabled entry for undo and enabled the use of ctl-z
	to invoke undo while properties dialog has focus.
parent dfe08514
2000-07-10 Gene Z. Ragan <gzr@eazel.com>
Fixed bug 971, enable undo in file editing part of
properties window.
* src/file-manager/fm-properties-window.c:
(create_basic_page):
Enabled entry for undo and enabled the use of ctl-z
to invoke undo while properties dialog has focus.
2000-07-10 Ramiro Estrugo <ramiro@eazel.com> 2000-07-10 Ramiro Estrugo <ramiro@eazel.com>
* src/nautilus-window-toolbars.c: (toolbar_services_callback): * src/nautilus-window-toolbars.c: (toolbar_services_callback):
......
...@@ -1014,8 +1014,6 @@ create_basic_page (GtkNotebook *notebook, NautilusFile *file) ...@@ -1014,8 +1014,6 @@ create_basic_page (GtkNotebook *notebook, NautilusFile *file)
BASIC_PAGE_ICON_AND_NAME_ROW, BASIC_PAGE_ICON_AND_NAME_ROW,
BASIC_PAGE_ICON_AND_NAME_ROW + 1); BASIC_PAGE_ICON_AND_NAME_ROW + 1);
nautilus_undo_setup_nautilus_entry_for_undo ( NAUTILUS_ENTRY (name_field));
/* Attach parameters and signal handler. */ /* Attach parameters and signal handler. */
nautilus_file_ref (file); nautilus_file_ref (file);
gtk_object_set_data_full (GTK_OBJECT (name_field), gtk_object_set_data_full (GTK_OBJECT (name_field),
...@@ -1026,6 +1024,10 @@ create_basic_page (GtkNotebook *notebook, NautilusFile *file) ...@@ -1026,6 +1024,10 @@ create_basic_page (GtkNotebook *notebook, NautilusFile *file)
/* Update name field initially before hooking up changed signal. */ /* Update name field initially before hooking up changed signal. */
name_field_update_to_match_file (NAUTILUS_ENTRY (name_field)); name_field_update_to_match_file (NAUTILUS_ENTRY (name_field));
/* Set up name field for undo */
nautilus_undo_setup_nautilus_entry_for_undo ( NAUTILUS_ENTRY (name_field));
nautilus_undo_editable_set_undo_key (GTK_EDITABLE (name_field), TRUE);
gtk_signal_connect (GTK_OBJECT (name_field), "focus_in_event", gtk_signal_connect (GTK_OBJECT (name_field), "focus_in_event",
GTK_SIGNAL_FUNC (name_field_focus_in), GTK_SIGNAL_FUNC (name_field_focus_in),
NULL); NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment