1. 28 Oct, 2001 1 commit
  2. 24 Oct, 2001 1 commit
  3. 02 Apr, 2001 1 commit
    • Ramiro Estrugo's avatar
      reviewed by: Gene Ragan <gzr@eazel.com> · 40036342
      Ramiro Estrugo authored
      	* acconfig.h:
      	* configure.in:
      	Add a NAUTILUS_SOURCE_DIRECTORY that contains the location of the
      	nautilus source code, so that some checks can work without having
      	to do 'make install'
      	* components/services/install-view/nautilus-service-install-view.c:
      	Initialize preferences so that smooth widgets and other nautilus
      	specific preferences work.
      	* components/services/summary/nautilus-summary-view.c:
      	Initialize preferences so that smooth widgets and other nautilus
      	specific preferences work.
      	* libnautilus-extensions/Makefile.am:
      	Remove macros that arent needed any more.
      	* libnautilus-extensions/nautilus-entry.h:
      	* libnautilus-extensions/nautilus-entry.c:
      	(nautilus_entry_initialize), (obscure_cursor),
      	(nautilus_entry_key_press), (nautilus_entry_motion_notify),
      	(nautilus_entry_set_text), (nautilus_entry_insert_text),
      	(nautilus_entry_delete_text), (nautilus_entry_initialize_class),
      	Make all the attributes private.
      	* libnautilus-extensions/nautilus-font-manager.c:
      	(at_exit_handler), (nautilus_free_static_storage_at_exit),
      	(gnome_vfs_init_if_needed), (font_description_table_add),
      	(font_description_table_new), (directory_contains_file),
      	Remove dependency on nautilus-file-utilities.  Update for new
      	machanism for finding data in the source directory so that checks
      	work even when Nautilus has not undergone 'make install.'
      	* libnautilus-extensions/nautilus-global-preferences.c:
      	Keep track of preferences smooth graphics mode changes and call
      	the new smooth widget api for changing the smoothness of all
      	tracked widgets.
      	* libnautilus-extensions/nautilus-scalable-font.c:
      	Remove a rogue unused #include.
      	* libnautilus-extensions/nautilus-smooth-widget.h:
      	* libnautilus-extensions/nautilus-smooth-widget.c:
      	Dont use preferences to track global smoothness changes.  Add a
      	function to that instead.
      	* src/nautilus-location-bar.c: (nautilus_location_bar_initialize):
      	Update for privatized NautilusEntry attributes.
  4. 16 Mar, 2001 1 commit
    • Darin Adler's avatar
      reviewed by: John Sullivan <sullivan@eazel.com> · dcb478cf
      Darin Adler authored
      	Fix bug 6495 (Emacs-style keybindings not working in location bar
      	and other NautilusEntry fields) by adding an expert preference to
      	control whether the Emacs shortcuts or the ones in the menu bar
      	take precedence. I started with Maciej's patch and did many
      	Fix bug 1788 ("Select All" needs to be implemented for text): I
      	had to add Select All so it won't do the icon view's Select All
      	when you do a select all with the location bar focused.
      	Fix bug 5612 (clicking to deselect causes incorrect menu
      	sensitivity) by adding another signal handler for button clicks.
      	Fix bug 7581 (When trying to restart Nautilus after crash from bug
      	7579 I get a Segmentation Fault). I was just lucky enough to run
      	into the problem on my machine.
      	* libnautilus-extensions/nautilus-global-preferences.h:
      	* libnautilus-extensions/nautilus-global-preferences.c:
      	(global_preferences_create_dialog): Added the new Emacs-shortcut
      	preference with the wording requested in the bug report.
      	* libnautilus-extensions/nautilus-entry.h:
      	* libnautilus-extensions/nautilus-entry.c:
      	(emacs_shortcuts_preference_changed_callback): Track the
      	(nautilus_entry_initialize): Set up the callback to track the
      	(nautilus_entry_destroy): Tear down the callback to track the
      	(nautilus_entry_key_press): Allow the emacs shortcuts built into
      	GtkEntry to work if the preference is set that way. Also, only
      	emit the selection_changed signal if the key is actually handled.
      	(nautilus_entry_motion_notify): Simplify the logic, since it's
      	OK to send the selection_changed signal a little too often.
      	(select_all_at_idle): Handle the case where the object is
      	(nautilus_entry_select_all_at_idle): Ref the object to handle the
      	case where the object is destroyed before the idle happens.
      	(nautilus_entry_button_press): Send a selection_changed message,
      	since pressing the button can cause a selection change.
      	(nautilus_entry_button_release): Send a selection_changed message,
      	since pressing the button can cause a selection change.
      	(nautilus_entry_initialize_class): Add new default handlers. Also,
      	move to bottom of file so we don't need so many forward
      	* libnautilus/nautilus-clipboard-ui.xml: Add a Select All Text
      	* libnautilus/nautilus-clipboard.c: (select_all): New function to
      	select all the text in a GtkEditable. Sadly it needs a special
      	case for GtkText.
      	(select_all_idle_callback): Callback used to select the text from
      	(select_all_callback): Callback that sets up the idle. Called from
      	the bonobo verb.
      	(initialize_clipboard_component_with_callback_data): Add the
      	callback for Select All.
      	* librsvg/rsvg.c: (rsvg_state_init): Initialize more fields,
      	including font_size.
      	(rsvg_text_handler_characters): Don't try to draw if the font
      	size is 0 or negative.
      	* librsvg/art_render_mask.c: (art_render_mask_render): Handle
      	cases where x1 < x0. The old code would seg. fault. This was the
      	reason we got a crash in bug 7581.
      	* configure.in: Upped the required version of gnome-vfs.
  5. 23 Feb, 2001 1 commit
  6. 13 Feb, 2001 1 commit
  7. 23 Dec, 2000 1 commit
    • Gene Z. Ragan's avatar
      reviewed by: Pavel Cisler<pavel@eazel.com> · c95712a8
      Gene Z. Ragan authored
      2000-12-22  Gene Z. Ragan  <gzr@eazel.com>
      	reviewed by: Pavel Cisler<pavel@eazel.com>
      	Fixed bug 4951, No error given selecting unmountable "Disks" volume.
      	I added a pipe to monitor the result of the mount/umount command.
      	If an error is in the pipe, a details error dialog is displayed.
      	A generic mount failed error is first and the details button reveals
      	the error message returned in the pipe.
      	* libnautilus-extensions/nautilus-volume-monitor.c: (find_command),
      	(open_error_pipe), (close_error_pipe),
      	Renamed xfer to transfer.
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(parent_for_error_dialog), (transfer_dialog_clicked_callback),
      	(create_transfer_dialog), (handle_transfer_ok),
      	(build_error_string), (handle_transfer_vfs_error),
      	(handle_transfer_overwrite), (handle_transfer_duplicate),
      	(update_transfer_callback), (sync_transfer_callback),
      	(handle_new_folder_vfs_error), (new_folder_transfer_callback),
      	(nautilus_file_operations_delete), (do_empty_trash):
      	Added compatibility call.
      	* libnautilus-extensions/nautilus-entry.c:
      	* libnautilus-extensions/nautilus-entry.h:
  8. 28 Nov, 2000 1 commit
    • Gene Z. Ragan's avatar
      reviewed by: Pavel Cisler <pavel@eazel.com> · 824a18bc
      Gene Z. Ragan authored
      2000-11-28  Gene Z. Ragan  <gzr@eazel.com>
      	reviewed by: Pavel Cisler <pavel@eazel.com>
      	* libnautilus-extensions/nautilus-entry.c:
      	Set cursor_obscured flag to false and update event mask
      	to allow pointer moved events.
      	Display the cursor if it was previouslly hidden.
      	New function that hides the cursor when the user begins typing.
      	Call obscure_cursor function.
      	* libnautilus-extensions/nautilus-entry.h:
      	Added cursor_obscured flag to entry class.
      	* libnautilus-extensions/nautilus-gdk-extensions.c:
      	* libnautilus-extensions/nautilus-gdk-extensions.h:
      	New function to hide the cursor of the widget passed in.
  9. 22 Nov, 2000 1 commit
    • Rebecca Schulman's avatar
      reviewed by: Pavel Cisler <pavel@eazel.com> · e31b0b92
      Rebecca Schulman authored
      2000-11-21  Rebecca Schulman  <rebecka@eazel.com>
      	reviewed by: Pavel Cisler <pavel@eazel.com>
      	Fixes for bugs 690 and 733, to make the clipboard
      	work for file editing in place, and make sensitivity
      	work. Paste doesn't work correctly still, and a bug
      	is filed for this issue.
      	* libnautilus-extensions/nautilus-entry.h:
      	* libnautilus-extensions/nautilus-entry.c:
      	(nautilus_entry_initialize_class), (nautilus_entry_key_press),
      	(nautilus_entry_motion_notify), (nautilus_entry_set_text),
      	(nautilus_entry_set_selection), (nautilus_entry_insert_text),
      	Added a new signal to nautilus entry, called "selection_changed"
      	that is fired whenever the region selected in an editiable widget
      	is changed.  This is used to determine how to set clipboard sensitivity
      	* libnautilus-extensions/nautilus-icon-container.h:
      	* libnautilus-extensions/nautilus-icon-container.c:
      	Add a new signal "renaming_icon", which tells the icon view
      	to set up clipboard capabilities for the new editable widget
      	* libnautilus-extensions/nautilus-icon-private.h:
      	* libnautilus-extensions/nautilus-icon-text-item.h:
      	* libnautilus-extensions/nautilus-icon-text-item.c:
      	(iti_stop_editing), (iti_entry_text_changed_by_clipboard),
      	(iti_start_editing), (iti_destroy), (iti_start_selecting),
      	(iti_stop_selecting), (iti_event),
      	Sad hacks that I had to add on top of this already scary file so
      	that the editable, which is in its own offscreen window somewhere,
      	communicates to the clipboard what is actually going on when text
      	is entered and selections are changed.  This includes adding a
      	new signal when text is changed, to make sure the entry knows about
      	it, firing an initial grab focus for the widget so that the widget
      	turns on, passing on more of the events of the canvas
      	widget, including motion notifies and focus events, and
      	keeping a persistent copy of the last renaming entry in the icon
      	container so that pastes for that widget will still work.
      	* libnautilus/nautilus-clipboard.h:
      	* libnautilus/nautilus-clipboard.c: (set_menu_item_sensitive),
      	(merge_in_clipboard_menu_items), (merge_out_clipboard_menu_items),
      	(focus_changed_callback), (grab_focus_callback),
      	Reorganized some of the code, and also added new callbacks
      	to deal with sensitivity changes.
      	* src/file-manager/fm-directory-view.h:
      	* src/file-manager/fm-directory-view.c:
      	Add a new function that the icon view uses to
      	pass the bonobo control for clipboard set up
      	* src/file-manager/fm-icon-view.c: (renaming_icon_callback),
      	Set up clipboard capabilities when the renaming widget is
      	* src/nautilus-location-bar.c: (nautilus_location_bar_new):
      	* components/notes/nautilus-notes.c: (make_notes_view):
      	* src/nautilus-simple-search-bar.c:
      	Changed calls to clipboard set up routines to include
      	the new shares_selection_changes parameter. Widgets that
      	use the "selection_changed" signal (NautilusEntries)
      	say "TRUE" here, otherwise selection doesn't work quite
      	right, and FALSE is used instead.
      	* src/nautilus-search-bar-criterion.c: (get_size_location_for):
      	Deal with the case when a user has entered a non-numeric size
      	in a smart way, by using nautilus_str_to_int.  This is related
      	to bug 2438, but is not a complete fix.
  10. 12 Sep, 2000 1 commit
  11. 12 Jun, 2000 1 commit
    • Gene Ragan's avatar
      New file and functions to handle undo in NautilusEntry and GtkEditables. · 822c600f
      Gene Ragan authored
      	* libnautilus-extensions/nautilus-undo-signal-handlers.c:
      	* libnautilus-extensions/nautilus-undo-signal-handlers.h:
      	(free_editable_undo_data), (free_editable_object_data),
      	(editable_insert_text_callback), (editable_delete_text_callback),
      	(editable_key_press_event), (nautilus_undo_editable_set_undo_key):
      	New file and functions to handle undo in NautilusEntry and
      	GtkEditables.  This file is intended to contain signal handlers
      	that enable undo for a variety of GTK widgets. Calling a
      	setup_for_undo function will prepare the widget to handle
      	undo functionality.
      	* libnautilus-extensions/Makefile.am:
      	Added entries for new files nautilus-undo-signal-handlers.c
      	and nautilus-undo-signal-handlers.h
      	* components/notes/nautilus-notes.c: (make_notes_view):
      	Fixed bug #973.  Add undo to notes component.
      	* components/websearch/ntl-web-search.c: (make_obj):
      	Changed to use new undo signal handlers.
      	* libnautilus-extensions/nautilus-entry.c:
      	(nautilus_entry_initialize), (nautilus_entry_key_press),
      	(nautilus_entry_set_text), (nautilus_entry_delete_text):
      	Removed old undo code that had been rendered obsolete by the
      	new signal handlers mentioned above.
      	* src/nautilus-bookmarks-window.c: (create_bookmarks_window):
      	Changed to use new undo signal handlers.
  12. 08 Jun, 2000 1 commit
    • Gene Z. Ragan's avatar
      Fixed bug 983. Added user_changed signal. · f50da8f0
      Gene Z. Ragan authored
      2000-06-08  Gene Z. Ragan  <gzr@eazel.com>
      	* libnautilus-extensions/nautilus-entry.c:
      	Fixed bug 983.  Added user_changed signal.
      	(nautilus_entry_destroy), (nautilus_entry_set_text),
      	(nautilus_entry_insert_text), (nautilus_entry_delete_text),
      	(free_undo_data), (register_edit_undo),
      	Cleanups in the way undo was being registered.  Created
      	local undo data structure and removed cached undo text
      	from class.  Localized checking of undo registered
      	boolean to a single location.
      	Added callback coonected to user changed signal.
      	Undo registering is handled here.
      	* src/nautilus-bookmarks-window.c: (create_bookmarks_window),
      	(on_select_row), (on_text_field_focus_in_event),
      	(on_text_field_focus_out_event), (repopulate):
      	Updated code to properly handle undo.
      	* src/nautilus-location-bar.c:
      	Updated code to properly handle undo.
  13. 26 May, 2000 1 commit
    • Gene Z. Ragan's avatar
      More work on undo. Note that undo in text entry fields still misbehaves. · 7c045c92
      Gene Z. Ragan authored
      2000-05-25  Gene Z. Ragan  <gzr@eazel.com>
      	More work on undo.  Note that undo in text entry fields still
      	misbehaves.  More improvements are on the way.
      	* components/websearch/ntl-web-search.c:
      	Removed obsolete enable undo code.
      	* libnautilus-extensions/nautilus-entry.c:
      	* libnautilus-extensions/nautilus-entry.h:
      	(nautilus_entry_initialize_class), (nautilus_entry_key_press),
      	(nautilus_entry_insert_text), (nautilus_entry_delete_text),
      	(register_edit_undo), (nautilus_entry_set_undo_key):
      	Removed the enable_undo function and made undo functionality
      	a default feature of NautilusEntry.
      	* libnautilus/nautilus-undo-transaction.c:
      	* libnautilus/nautilus-undoable.c:
      	* libnautilus/nautilus-undoable.h:
      	(nautilus_undoable_save_undo_snapshot), (nautilus_undo_unregister):
      	* src/file-manager/fm-properties-window.c: (create_basic_page):
      	Removed obsolete enable undo code.
      	* src/nautilus-bookmarks-window.c: (on_text_field_focus_in_event),
      	(on_text_field_focus_out_event), (on_window_delete_event):
      	Removed obsolete enable undo code.
      	* src/nautilus-location-bar.c:
      	* src/nautilus-location-bar.h:
      	Removed obsolete enable undo code.
      	* src/ntl-window.c: (nautilus_window_constructed):
      	Removed obsolete enable undo code.
  14. 18 May, 2000 1 commit
    • Darin Adler's avatar
      Change format to make popt "pop" out more. · 7e7fc3ec
      Darin Adler authored
      	* HACKING: Change format to make popt "pop" out more.
      	* libnautilus-extensions/nautilus-entry.h:
      	* src/file-manager/fm-properties-window.c: (create_basic_page):
      	* src/nautilus-bookmarks-window.c: (on_text_field_focus_in_event),
      	* src/nautilus-location-bar.c: (nautilus_location_bar_enable_undo):
      	* src/nautilus-location-bar.h:
      	* src/nautilus-window-menus.c: (edit_menu_undo_callback),
      	(get_or_create_bookmarks_window), (nautilus_bookmarks_exiting),
      	(edit_bookmarks), (nautilus_window_initialize_menus),
      	* src/ntl-app.c: (nautilus_app_init), (nautilus_app_destroy):
      	* libnautilus-extensions/nautilus-icon-container.c:
      	* libnautilus-extensions/nautilus-entry.c:
      	(nautilus_entry_key_press), (nautilus_entry_enable_undo):
      	* libnautilus/nautilus-undo-manager.c:
      	(prune_undo_manager_list), (nautilus_get_undo_manager),
      	(nautilus_attach_undo_manager), (nautilus_share_undo_manager):
      	* libnautilus/nautilus-undo-manager.h:
      	* src/ntl-window-private.h:
      	* src/ntl-window.c: (nautilus_window_constructed),
      	* src/ntl-window.h:
      	Got rid of the undo manager parameter for the enable_undo
      	Eliminated code that sets up the undo manager except for the top
      	widgets. We only need it attached to windows and to the top widget
      	in each component.
      	Change callers to get the undo manager in a few simple ways
      	instead of calling gtk_object_get_data directly. Added some calls
      	to attach the undo manager to an arbitrary object.
      	* libnautilus/nautilus-undo.idl: Added comments to the IDL and
      	also added the Undo::Context class.
      	* libnautilus/nautilus-view-component.idl: Removed the dependency
      	on the undo IDL and the undo_manager attribute.
      	* src/nautilus-bookmarks-window.h:
      	* src/nautilus-bookmarks-window.c: (create_bookmarks_window):
      	Changed interface to take object to inherit the undo manager from
      	instead of the undo manager itself. Got rid of unnecesary undo
      	manager setting.
      	(nautilus_bookmarks_window_save_geometry): Also changed interface
      	to use GtkWindow instead of GtkWidget.
  15. 17 May, 2000 1 commit
    • Gene Z. Ragan's avatar
      CVS: · 19159e79
      Gene Z. Ragan authored
      2000-05-17  Gene Z. Ragan  <gzr@eazel.com>
      											      CVS: ----------------------------------------------------------------------
      	First phase of modifying undo code.  These changes				      CVS: Enter Log.  Lines beginning with `CVS:' are removed automatically
      	affect the way undo is handled internally to Nautilus and			      CVS:
      	also defines a new IDL.  This is work in progress.				      CVS: Committing in .
      	* libnautilus-extensions/nautilus-entry.c:					      CVS: Modified Files:
      	Modified to use gtk_object_get_data() mechanism to locate undo manager		      CVS:    ChangeLog libnautilus/.cvsignore libnautilus/Makefile.am
      											      CVS:    libnautilus/nautilus-undo-manager-private.h
      	* libnautilus-extensions/nautilus-icon-container.c:				      CVS:    libnautilus/nautilus-undo-manager.c
      	(nautilus_icon_container_start_renaming_selected_item): 			      CVS:    libnautilus/nautilus-undo-manager.h
      	Modified to use gtk_object_get_data() mechanism to locate undo manager		      CVS:    libnautilus/nautilus-undo-transaction.h
      											      CVS:    libnautilus/nautilus-undoable.c
      	* libnautilus-extensions/nautilus-icon-text-item.c: (iti_event),		      CVS:    libnautilus/nautilus-undoable.h
      	(restore_from_undo_snapshot_callback):						      CVS:    libnautilus/nautilus-view-component.idl
      	Modified to use gtk_object_get_data() mechanism to locate undo manager		      CVS:    libnautilus-extensions/nautilus-entry.c
      											      CVS:    libnautilus-extensions/nautilus-entry.h
      	* libnautilus/.cvsignore:							      CVS:    libnautilus-extensions/nautilus-icon-container.c
      	Added generated IDL source and header files to ignore				      CVS:    libnautilus-extensions/nautilus-icon-text-item.c
      											      CVS:    src/nautilus-bookmarks-window.c
      	* libnautilus/Makefile.am:							      CVS:    src/nautilus-bookmarks-window.h src/nautilus-location-bar.c
      	Modified makefile to include new IDL file for undo manager			      CVS:    src/nautilus-location-bar.h src/nautilus-window-menus.c
      											      CVS:    src/ntl-app.c src/ntl-window-private.h src/ntl-window.c
      	* libnautilus/nautilus-undo-manager.c:						      CVS:    src/ntl-window.h src/file-manager/fm-properties-window.c
      	(impl_Nautilus_Undo_Manager__destroy),						      CVS: Added Files:
      	(impl_Nautilus_Undo_Manager__create),						      CVS:    libnautilus/nautilus-undo.idl
      	(impl_Nautilus_Undo_Manager__append),						      CVS: Removed Files:
      	(impl_Nautilus_Undo_Manager__forget),						      CVS:    libnautilus/nautilus-undo-manager-component.idl
      	(nautilus_undo_manager_initialize),						      CVS: ----------------------------------------------------------------------
      	(nautilus_undo_manager_undo), (nautilus_undo_manager_redo),
      	(nautilus_undo_manager_can_undo), (nautilus_undo_manager_can_redo),
      	(destroy), (nautilus_undo_manager_enable_redo),
      	(free_undo_manager_list_data), (prune_undo_manager_list):
      	Changes to support new IDL and new undo manager mechanism.
      	* libnautilus/nautilus-undo.idl:
      	New undo manager IDL file
      	* libnautilus/nautilus-undo-manager-component.idl:
      	Removed old undo manager IDL file
      	* src/file-manager/fm-properties-window.c:
      	Modified to use gtk_object_get_data() mechanism to locate undo manager
      	* src/nautilus-bookmarks-window.c:
      	Modified to use gtk_object_get_data() mechanism to locate undo manager
      	* src/nautilus-location-bar.c:
      	Modified to use gtk_object_get_data() mechanism to locate undo manager
      	* src/nautilus-window-menus.c:
      	Modified to use gtk_object_get_data() mechanism to locate undo manager
      	* src/ntl-app.c:
      	(impl_Nautilus_Application__create), (nautilus_app_get_type),
      	(nautilus_app_class_init), (nautilus_app_init), (nautilus_app_new),
      	(nautilus_app_destroy), (nautilus_app_startup),
      	Modified to use gtk_object_get_data() mechanism to locate undo manager.
      	Added and modified IDL C stubs to match new IDL interface.
      	* src/ntl-window.c:
      	Changed order that arguments are set at time of main window create so the app instance
      	variable is valid when the main window is contructed.
  16. 03 May, 2000 2 commits
    • Gene Z. Ragan's avatar
      libnautilus-extensions/nautilus-entry.c Refined undo support. · 1f47ad6c
      Gene Z. Ragan authored
      2000-05-03  Gene Z. Ragan <gzr@eazel.com>
      	* libnautilus-extensions/nautilus-entry.c
      	* libnautilus-extensions/nautilus-entry.h:
      	Refined undo support.
      	New function to set internal handling of ctl-z for undo.
      	* libnautilus-extensions/nautilus-icon-container.c
      	Removed deletion of undo transaction.  This is now handled
      	by the owner of the widget.
      	* libnautilus-extensions/nautilus-undo-manager.c
      	New function to unregister a GtkObject form the undo manager.
      	Any transaction that contains the object is removed from the
      	undo and redo lists.  This should be called for any object that
      	is no longer available for user interaction.
      	* libnautilus-extensions/nautilus-undo-transaction.c
      	Function added to support nautilus_undo_manager_unregister_object()
      	call in the undo manager.  Each NautilusUndoable in a transaction
      	is checked for the object to be removed.
      	* src/file-manager/fm-icon-view.c:
      	* src/file-manager/fm-properties-window.c
      	Added call to unregister rename widget form undo manager.
      	* src/nautilus-bookmarks-window.c
      	Added undo support for entry widgets.
      	* src/nautilus-location-bar.c
      	Changed to support modified undo manager APIs.
    • Gene Z. Ragan's avatar
      Added check for ctl-z. An undo is requested when the key combination is · 99572400
      Gene Z. Ragan authored
      2000-05-02  Gene Z. Ragan  <gzr@eazel.com>
      	* libnautilus-extensions/nautilus-entry.c
      	Connected widget to undo manager.
      	Added check for ctl-z.  An undo is requested when the key combination
      	is triggered.
      	Added undo registration when text is modified.
      	Standard undo manager callbacks
      	Added new function. Pass in boolean value to enable or disable
      	undo functionality.
  17. 17 Apr, 2000 1 commit
    • John Sullivan's avatar
      Fixed bugs, mostly related to editable text fields. · c4002e6e
      John Sullivan authored
      	* README: Made the contents of this file slightly helpful.
      	* data/mime/nautilus.keys: Added an obscure MIME type that
      	someone reported running into.
      	* libnautilus-extensions/nautilus-entry.h,
      	* libnautilus-extensions/nautilus-entry.c: New files. Define a
      	subclass of GtkEntry (one-line text editing field) that fixes
      	bugs and adds convenience functions.
      	(nautilus_entry_key_press): Override key_press handler to treat
      	the keypad Enter key the same as the other Enter key (in GtkEntry
      	it inserts a "/r" into the text).
      	(nautilus_entry_select_all): Select all text, and move the text
      	cursor position to the end.
      	(nautilus_entry_select_all_at_idle): Same, but do it at the next
      	idle opportunity. Useful since nautilus_entry_select_all won't
      	work right if called in a key_press signal handler.
      	* libnautilus-extensions/Makefile.am: Build these two new files.
      	* src/file-manager/fm-properties-window.c:
      	(name_field_activate): New function, updates file name and
      	selects all text.
      	(create_properties_window): Make name_field be a NautilusEntry.
      	This fixes half of bug 433 (Enter keys don't work properly in
      	properties window). Also attach to "activate" signal and update
      	name change then. This fixes other half of bug 433. Also start
      	with name field selected & focused. This fixes bug 432 (properties
      	window should appear with name text selected).
      	(name_field_update_to_match_file): Only update the displayed text
      	if the new name coming in is different. This was needed to make
      	select-all-on-activate work.
      	(name_field_done_editing): Don't accept empty string as name;
      	silently revert back to original name.
      	* src/nautilus-bookmarks-window.c:
      	(create_bookmarks_window): Change name & uri text fields to
      	NautilusEntry; this causes keypad Enter key to behave like other
      	Enter key. Also connect to focus_in and activate signals.
      	(update_bookmark_from_text): New function, extracted from
      	(on_text_field_focus_out_event): Deselect all text after updating
      	(on_text_field_focus_in_event): New function, select all text.
      	(name_or_uri_field_activate): New function, update bookmark and
      	select all text.
      	* src/nautilus-location-bar.c:
      	(nautilus_location_bar_initialize): Use NautilusEntry instead of
      	GtkEntry. This makes keypad Enter act like other Enter in uri-entry
      	* src/ntl-window-msgs.c:
      	(nautilus_window_end_location_change_callback): Make "Nautilus can't
      	handle this type of file" message mention (human-readable version of)
      	file type.