1. 08 Sep, 2000 1 commit
  2. 07 Sep, 2000 2 commits
    • Mathieu Lacage's avatar
      add support for NautilusDragInfo. add new scroll calculation fucntion. · ec647092
      Mathieu Lacage authored
      2000-09-07  Mathieu Lacage  <mathieu@eazel.com>
      
      	* components/tree/nautilus-tree-view.c: add support for NautilusDragInfo.
      	* libnautilus-extensions/nautilus-drag.c: add new scroll calculation fucntion.
      	(nautilus_drag_autoscroll_calculate_delta):
      	* libnautilus-extensions/nautilus-drag.h: add decalrtion of scroll function
      	plus bits and pieces of constants used everywhere.
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(auto_scroll_timeout_callback): move this to the shared version of the scroll
      	* libnautilus-extensions/nautilus-list.c: implement auto scrolling.
      	(nautilus_list_drag_leave), (nautilus_list_real_scroll),
      	(auto_scroll_timeout_callback), (nautilus_list_start_auto_scroll),
      	(nautilus_list_stop_auto_scroll), (nautilus_list_drag_motion):
      ec647092
    • Mathieu Lacage's avatar
      First work toward bug 2353, fixes bug 2570, 1289 · 0f1d07d9
      Mathieu Lacage authored
      2000-09-07  Mathieu Lacage  <mathieu@eazel.com>
      
      	First work toward bug 2353, fixes bug 2570, 1289
      
      	* components/tree/nautilus-tree-view.c: fix a dnd bug in
      	gtk_drag_dest_set.
      	* libnautilus-extensions/nautilus-drag.c: (nautilus_drag_init):
      	initialize the new field drop_occured to FALSE.
      	* libnautilus-extensions/nautilus-drag.h: new field drop_occured.
      	* libnautilus-extensions/nautilus-icon-dnd.c: use the new field
      	and make it behave slightly more sanely by doing actual actions
      	in data_received instead of drag_drop. This is the only way to avoid
      	race conditions. (drag_data_received_callback), (drag_motion_callback),
      	(drag_drop_callback)
      	* libnautilus-extensions/nautilus-list.c:
      	(nautilus_list_initialize_class), (nautilus_list_dnd_initialize),
      	(nautilus_list_initialize), (nautilus_list_drag_start),
      	(nautilus_list_ensure_drag_data), (nautilus_list_drag_begin),
      	(nautilus_list_drag_end), (nautilus_list_drag_leave),
      	(nautilus_list_find_drop_target), (nautilus_list_get_drop_action),
      	(nautilus_list_drag_motion), (nautilus_list_drag_drop),
      	(nautilus_list_drag_data_received):
      	add support for the drop_occured field, fix the same bug as in tree view
      	and make it behave slightly more sanely as in icon view.
      	The tree view now needs some work to catch up with all those changes.
      	* src/file-manager/fm-list-view.c: (fm_list_handle_dropped_icons):
      	space.
      0f1d07d9
  3. 28 Aug, 2000 1 commit
    • John Sullivan's avatar
      Added more bug numbers to FIXMEs. 94 to go. · 8bc0bad7
      John Sullivan authored
      	* libnautilus-extensions/nautilus-icon-canvas-item.c: (map_pixbuf),
      	(draw_label_text_aa), (nautilus_icon_canvas_item_event):
      	* libnautilus-extensions/nautilus-icon-container.c: (icon_free),
      	(get_all_icon_bounds), (lay_down_icons_tblr), (lay_down_icons),
      	(nautilus_icon_container_move_icon), (stop_rubberbanding),
      	(destroy), (hide_rename_widget):
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(nautilus_icon_container_dropped_icon_feedback),
      	(receive_dropped_keyword), (auto_scroll_timeout_callback),
      	(nautilus_icon_container_find_drop_target),
      	(nautilus_icon_dnd_update_drop_target), (nautilus_icon_dnd_fini):
      	* libnautilus-extensions/nautilus-link-set.c: (link_set_path_name),
      	(expand_uri):
      	* libnautilus-extensions/nautilus-link.c:
      	(nautilus_link_get_root_property),
      	(nautilus_link_get_additional_text), (make_local_path),
      	(nautilus_link_get_image_uri), (nautilus_link_get_link_uri),
      	(nautilus_link_get_link_type):
      	* src/nautilus-sidebar-title.c:
      	(nautilus_sidebar_title_select_text_color), (update_font),
      	(update_title), (update_more_info), (update_emblems),
      	(update_notes):
      8bc0bad7
  4. 23 Aug, 2000 2 commits
    • John Sullivan's avatar
      Checked in this patch from Ken Kocienda, which fixes · 16d1c8c7
      John Sullivan authored
      	bug 390 (wrong magic number used when computing alpha
      	threshhold). Thanks Ken!
      
      	* libnautilus-extensions/nautilus-gdk-pixbuf-extensions.h:
      	New #define for NAUTILUS_STANDARD_ALPHA_THRESHHOLD
      
      	* components/music/nautilus-music-view.c:
      	(nautilus_music_view_update_from_uri):
      	* libnautilus-extensions/nautilus-bookmark.c:
      	(nautilus_bookmark_get_pixmap_and_mask):
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(nautilus_icon_dnd_begin_drag):
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(nautilus_icon_factory_get_pixmap_and_mask_for_file):
      	* libnautilus-extensions/nautilus-list-column-title.c:
      	(load_up_indicator):
      	* libnautilus-extensions/nautilus-list.c: (draw_cell):
      	* src/file-manager/fm-properties-window.c:
      	(get_pixmap_and_mask_for_properties_window),
      	(create_image_widget_for_emblem):
      	* src/nautilus-bookmarks-window.c:
      	* src/nautilus-complex-search-bar.c:
      	(load_find_them_pixmap_widget):
      	* src/nautilus-property-browser.c: (set_emblem_image_from_file),
      	(element_clicked_callback), (make_properties_from_directory_path):
      	* src/nautilus-sidebar-title.c: (add_emblem):
      	* src/nautilus-theme-selector.c: (add_theme):
      	* src/nautilus-window.c: (nautilus_window_realize):
      	Replaced all uses of correct or incorrect magic numbers
      	with NAUTILUS_STANDARD_ALPHA_THRESHHOLD in calls to
      	gdk_pixbuf_render_pixmap_and_mask.
      16d1c8c7
    • Gene Z. Ragan's avatar
      Work in progress to support dragging onto NautilusLink files. Dragging on · 3184fe2b
      Gene Z. Ragan authored
      2000-08-22  Gene Z. Ragan  <gzr@eazel.com>
      
      	Work in progress to support dragging onto
      	NautilusLink files.  Dragging on the trash
      	still does not work.
      
      	* libnautilus-extensions/nautilus-icon-container.c:
      	* libnautilus-extensions/nautilus-icon-container.h:
      	(nautilus_icon_container_initialize_class),
      	(nautilus_icon_container_get_icon_uri),
      	(nautilus_icon_container_get_icon_drop_target_uri):
      	New signal to return the target URI of a drag target.
      	This was done to support dragging onto NautilyusLink files.
      
      	* libnautilus-extensions/nautilus-drag.c:
      	(nautilus_drag_can_accept_item):
      	Add call to nautilus_icon_container_get_icon_drop_target_uri
      	and remove call to nautilus_icon_container_get_icon_uri
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	* libnautilus-extensions/nautilus-icon-private.h:
      	(nautilus_icon_container_find_drop_target):
      	Some code cleanup to fix a leak.
      
      	* libnautilus-extensions/nautilus-link.c:
      	* libnautilus-extensions/nautilus-link.h:
      	(nautilus_link_can_accept_drag):
      	New function that currently return TRUE for all links.
      
      	* src/file-manager/fm-icon-view.c: (get_icon_uri_callback),
      	(get_icon_drop_target_uri_callback), (create_icon_container):
      	Connect to new signal and add implementation.
      3184fe2b
  5. 17 Aug, 2000 2 commits
    • Andy Hertzfeld's avatar
      implemented task 2078, we need a better drag and drop based way to delete · bdb1a8e7
      Andy Hertzfeld authored
      
      	implemented task 2078, we need a better drag and drop based way
      	to delete emblems, by adding a special "erase" emblem and adding
      	code to special-case it to delete the emblems.
      bdb1a8e7
    • Gene Z. Ragan's avatar
      Fixed bug 2197, moving a file to trash while in renaming mode leaves · 56de1e56
      Gene Z. Ragan authored
      2000-08-16  Gene Z. Ragan  <gzr@eazel.com>
      
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(icon_toggle_selected), (icon_destroy),
      	(nautilus_icon_container_remove):
      	Fixed bug 2197, moving a file to trash while in renaming mode
      	leaves renaiming item behind.
      	Call end_renaming_mode in nautilus_icon_container_remove.
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(nautilus_icon_container_free_drag_data):
      	Changed gtk_object_unref call to gtk_object_destroy to
      	fix a crash.  Hopefully this didn't
      	introduce a memory leak.
      56de1e56
  6. 16 Aug, 2000 1 commit
    • Darin Adler's avatar
      More of the implementation of all the trash functions. About 1/3 done now. · 95b6ad0c
      Darin Adler authored
      	* libnautilus-extensions/nautilus-trash-directory.c:
      	(nautilus_trash_directory_initialize), (trash_destroy),
      	(callback_hash), (callback_equal), (trash_contains_file),
      	(call_when_ready_state_destroy),
      	(call_when_ready_state_check_done), (directory_ready_callback),
      	(trash_call_when_ready), (trash_cancel_callback),
      	(trash_files_callback), (trash_file_monitor_add),
      	(trash_file_monitor_remove), (trash_are_all_files_seen),
      	(trash_is_not_empty): More of the implementation of all the
      	trash functions. About 1/3 done now.
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(nautilus_icon_container_free_drag_data):
      	Use gtk_object_unref so it really gets rid of the object
      	instead of gtk_object_destroy that doesn't free it.
      
      	* libnautilus-extensions/nautilus-list.c: Reformatting.
      
      	* libnautilus/nautilus-zoomable.c:
      	(impl_Nautilus_Zoomable_zoom_out),
      	(impl_Nautilus_Zoomable_zoom_to_fit),
      	(impl_Nautilus_Zoomable__destroy),
      	(impl_Nautilus_Zoomable__create),
      	(nautilus_zoomable_initialize_class):
      	Clean out some old cruft. More cleanup needed.
      
      	* src/file-manager/fm-directory-view.c:
      	(text_attribute_names_changed_callback),
      	(embedded_text_policy_changed_callback),
      	(image_display_policy_changed_callback),
      	(directory_view_font_family_changed_callback),
      	(click_policy_changed_callback),
      	(anti_aliased_mode_changed_callback),
      	(fm_directory_view_bump_zoom_level),
      	(fm_directory_view_zoom_to_level),
      	(fm_directory_view_restore_default_zoom_level),
      	(fm_directory_view_can_zoom_in), (fm_directory_view_can_zoom_out),
      	(fm_directory_view_get_background_widget),
      	(fm_directory_view_get_selection): Use NAUTILUS_CALL_VIRTUAL.
      	(fm_directory_can_move_to_trash): Fix handling of NULL directory.
      	(new_folder_rename_later),
      	(fm_directory_view_get_emblem_names_to_exclude),
      	(fm_directory_view_merge_menus), (fm_directory_view_select_all),
      	(fm_directory_view_set_selection),
      	(fm_directory_view_supports_properties),
      	(fm_directory_view_update_menus): Use NAUTILUS_CALL_VIRTUAL.
      	(fm_directory_view_get_uri): Handle NULL directory.
      
      	* src/file-manager/fm-icon-view.c:
      	(fm_icon_view_get_directory_sort_by),
      	(fm_icon_view_set_directory_sort_by),
      	(fm_icon_view_get_directory_sort_reversed),
      	(fm_icon_view_set_directory_sort_reversed),
      	(fm_icon_view_get_directory_auto_layout),
      	(fm_icon_view_set_directory_auto_layout):
      	Use NAUTILUS_CALL_VIRTUAL.
      
      	* src/file-manager/fm-list-view.c: (fm_list_view_adding_file),
      	(fm_list_view_removing_file), (fm_list_view_file_still_belongs),
      	(get_number_of_columns), (get_link_column),
      	(get_default_sort_attribute), (get_column_specification):
      	Use NAUTILUS_CALL_VIRTUAL.
      
      	* src/nautilus-navigation-bar.c:
      	(nautilus_navigation_bar_get_location),
      	(nautilus_navigation_bar_set_location):
      	Use NAUTILUS_CALL_VIRTUAL.
      
      	* src/nautilus-view-frame-corba.c:
      	(impl_Nautilus_ViewFrame__destroy):
      	* src/nautilus-zoomable-frame-corba.c:
      	(impl_Nautilus_ZoomableFrame__destroy),
      	(impl_Nautilus_ZoomableFrame__create):
      	Remove some unused code.
      95b6ad0c
  7. 07 Aug, 2000 1 commit
    • John Sullivan's avatar
      Fixed bug 1422 (dropping an icon at the edge doesn't update · 45bdc495
      John Sullivan authored
      	the scrollable area)
      
      	Start of bug 1969 (search controls need to adjust sensitivity
      	appropriately)
      
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(nautilus_icon_container_update_scroll_region): Renamed from
      	"update_scroll_region" since it's now in a header file.
      	(relayout), (nautilus_icon_container_clear): Updated for name change.
      	(nautilus_icon_container_move_icon): Added FIXME about how
      	update_scroll_region is handled at different levels at Darin's
      	request.
      	* libnautilus-extensions/nautilus-icon-private.h:
      	Put prototype for nautilus_icon_container_update_scroll_region
      	here so it could be called from drag-and-drop code.
      	* libnautilus-extensions/nautilus-icon-dnd.c: (handle_local_move):
      	Update scroll region after drag.
      
      	* src/nautilus-complex-search-bar.c:
      	(update_options_buttons_state): New function, updates the sensitivity
      	of "Fewer Choices" button based on number of displayed criteria. Later
      	it will also handle "More Choices" button and perhaps others.
      	(nautilus_complex_search_bar_initialize):
      	Call update_options_button_state after creating button widgets.
      	(more_options_callback), (fewer_options_callback): Call
      	update_options_button_state when number of criteria changes.
      45bdc495
  8. 25 Jul, 2000 1 commit
    • Pavel Cisler's avatar
      Work around a bug in gtk-dnd.c that was making it impossible to force a · f2e80a30
      Pavel Cisler authored
      2000-07-25  Pavel Cisler <pavel@eazel.com>
      
      	* libnautilus-extensions/nautilus-drag.c:
      	* libnautilus-extensions/nautilus-drag.h:
      	(nautilus_drag_default_drop_action_for_icons), (drag_motion_callback):
      	Work around a bug in gtk-dnd.c that was making it impossible to
      	force a move when dragging in between two volumes - the default
      	is copy in that case and holding down Control would force it to
      	be a copy too.
      	The fix I did is only correct for icon drags, changed the routine
      	name to reflect that better.
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(nautilus_icon_container_get_drop_action):
      	Fix a typo bug that caused the non-default drop action to be
      	undefined for non-icon drags.
      f2e80a30
  9. 14 Jul, 2000 1 commit
  10. 13 Jul, 2000 1 commit
    • Pavel Cisler's avatar
      Fix a problem where parts of the exposed area weren't being updated · 4b0ebebc
      Pavel Cisler authored
      2000-07-12  Pavel Cisler  <pavel@eazel.com>
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(auto_scroll_timeout_callback):
      	Fix a problem where parts of the exposed area weren't being
      	updated correctly during a fast auto-scroll.
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(nautilus_icon_container_get_drop_action):
      	Fix a crash when nautilus_icon_container_get_drop_action
      	got called too early on during a drag, before
      	drag_data_received_callback got a chance to set state up.
      4b0ebebc
  11. 11 Jul, 2000 2 commits
    • Darin Adler's avatar
      Fixed to compile with latest Bonobo. Doesn't work quite as well as before · 595c8845
      Darin Adler authored
      	* src/nautilus-view-frame.c:
      	Fixed to compile with latest Bonobo. Doesn't work quite as well
      	as before -- we get some Bonobo ref. count asserts all the time --
      	but it's better than nothing I guess. Also did some other code
      	cleanup.
      
      	* libnautilus-extensions/Makefile.am:
      	* libnautilus-extensions/nautilus-alloc.h: [removed]
      	Removed an unused source file.
      
      	* libnautilus-extensions/nautilus-icon-container.c: (icon_free),
      	(stop_rubberbanding), (destroy), (hide_rename_widget):
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(nautilus_icon_container_dropped_icon_feedback),
      	(nautilus_icon_container_free_drag_data), (nautilus_icon_dnd_fini):
      	* src/nautilus-property-browser.c:
      	(nautilus_property_browser_drag_end):
      	* src/nautilus-view-frame-nautilus-view.c: (load_location),
      	(stop_loading), (selection_changed):
      	* src/nautilus-view-frame.c: (nautilus_view_frame_handle_client_destroy),
      	(nautilus_view_frame_load_client), (check_object),
      	(nautilus_view_frame_set_active_errors):
      	* src/nautilus-window-manage-views.c:
      	(nautilus_window_end_location_change_callback):
      	Added FIXMEs to various questionable uses of gtk_object_destroy.
      
      	* src/Makefile.am:
      	Added missing source file and replaced use of .. with $(top_srcdir).
      595c8845
    • Pavel Cisler's avatar
      Pavel Cisler · c4953124
      Pavel Cisler authored
      Added auto-scroll during drag to the icon container.
      c4953124
  12. 07 Jul, 2000 1 commit
    • Pavel Cisler's avatar
      Clean fix up action handling - respect suggested actions, handle actions · c2cfad09
      Pavel Cisler authored
      2000-07-07  Pavel Cisler <pavel@eazel.com>
      
      	* libnautilus-extensions/nautilus-drag.c:
      	(nautilus_drag_default_drop_action),
      	(nautilus_drag_drop_action_ask):
      	Clean fix up action handling - respect suggested actions, handle
      	actions better if they are different than GDK_ACTION_COPY and GDK_ACTION_MOVE.
      
      	* libnautilus-extensions/nautilus-drag.c:
      	(nautilus_drag_default_drop_action):
      	Fix a crash in the new drop context menu when Cancel gets selected.
      
      	* libnautilus-extensions/nautilus-drag.h:
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(start_stretching), (button_release_event), (motion_notify_event),
      	(show_context_menu_callback), (handle_icon_button_press):
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(nautilus_icon_container_receive_dropped_icons),
      	(nautilus_icon_container_get_drop_action):
      	* libnautilus-extensions/nautilus-icon-private.h:
      	Fix 1551 - Make drop context menu show up when drag started with
      	right click. Turned out to be a bit harder than estimated.
      	To do this I made the right-click context menu come up with a slight
      	delay - a drag may be started if the mouse is moved before the delay
      	expires.
      	Renamed and reworked the click/drag state machine a bit.
      c2cfad09
  13. 06 Jul, 2000 1 commit
    • Pavel Cisler's avatar
      Fix a problem that I introduced with my recent change to drag&drop - · 51f5b159
      Pavel Cisler authored
      2000-07-06  Pavel Cisler  <pavel@eazel.com>
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(nautilus_icon_container_get_drop_action):
      	Fix a problem that I introduced with my recent change to
      	drag&drop - colors, background images, etc would no longet
      	get accepted in the icon view.
      	Made nautilus_icon_container_get_drop_action only check
      	the selection list and the drop target if the dragged data
      	is a file operation drag&drop.
      51f5b159
  14. 05 Jul, 2000 2 commits
    • Pavel Cisler's avatar
      Did most of bug 1371: Implemented a drop context menu that allows users to · 4b45756b
      Pavel Cisler authored
      2000-07-05  Pavel Cisler <pavel@eazel.com>
      
      	* libnautilus-extensions/nautilus-drag.c:
      	(nautilus_drag_modifier_based_action),
      	(nautilus_drag_drop_action_ask):
      	* libnautilus-extensions/nautilus-drag.h:
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(motion_notify_event):
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(nautilus_icon_container_receive_dropped_icons),
      	(nautilus_icon_dnd_init):
      	* libnautilus-extensions/nautilus-list.c:
      	(nautilus_list_initialize), (nautilus_list_drag_start):
      	* src/file-manager/fm-list-view.c: (fm_list_handle_dropped_icons):
      	Did most of bug 1371:
      	Implemented a drop context menu that allows users to choose between
      	Copy, Move and link.
      	Added the GDK_ACTION_ASK selector and added support for it.
      4b45756b
    • Pavel Cisler's avatar
      Fixed 1215 - inter-volume move now removes the source files. Made it so · 45e5a79f
      Pavel Cisler authored
      2000-07-04  Pavel Cisler <pavel@eazel.com>
      
      	* src/file-manager/dfos-xfer-progress-dialog.c:
      	* src/file-manager/dfos-xfer-progress-dialog.h:
      	(handle_xfer_ok),
      	(fs_xfer), (fs_move_to_trash), (fs_delete), (fs_empty_trash):
      	* src/file-manager/dfos-xfer-progress-dialog.c:
      	(dfos_xfer_progress_dialog_clear):
      	Fixed 1215 - inter-volume move now removes the source files.
      	Made it so that when an inter-volume copy has ended and source files
      	are removed, the progress dialog updates. Added a new cleanup phase
      	string.
      
      	* src/file-manager/dfos-xfer-progress-dialog.c:
      	(dfos_xfer_progress_dialog_new_file),
      	(set_text_unescaped_trimmed):
      	Added code to unescape paths in progress dialogs.
      
      	* src/file-manager/dfos-xfer.c:
      	* src/file-manager/dfos-xfer.h:
      	(nautilus_convert_to_unescaped_string_for_display),
      	(handle_xfer_vfs_error), (handle_xfer_overwrite):
      	Added code to unescape paths in error dialogs.
      
      	* libnautilus-extensions/nautilus-drag.c:
      	(nautilus_drag_default_drop_action),
      	(nautilus_drag_modifier_based_action):
      	* libnautilus-extensions/nautilus-drag.h:
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(handle_nonlocal_move), (nautilus_icon_container_find_drop_target),
      	(nautilus_icon_container_receive_dropped_icons),
      	(nautilus_icon_container_get_drop_action), (drag_motion_callback):
      	* libnautilus-extensions/nautilus-list.c:
      	(nautilus_list_drag_motion):
      	Reworked a whole lot to allow me to update the default copy action
      	based on the drag&drop context - an inter-volume drag&drop will now
      	suggest a copy as a default.
      	Moved out more sharable code into nautilus-drag.c.
      	Added a common routine for figuring out the drop target.
      
      	* src/file-manager/fm-directory-view.c: (fm_directory_is_trash),
      	(fm_directory_can_move_to_trash):
      	Fixed a bunch of asserts caused by unreffing NULL uris.
      45e5a79f
  15. 29 Jun, 2000 1 commit
    • Pavel Cisler's avatar
      Got rid of the crufty old way drag&drop motion used to handle updating the · 1e53144a
      Pavel Cisler authored
      2000-06-29  Pavel Cisler <pavel@eazel.com>
      
      	* libnautilus-extensions/nautilus-icon-dnd.h:
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(nautilus_icon_dnd_init),
      	(nautilus_icon_dnd_begin_drag), (drag_motion_callback),
      	(drag_drop_callback):
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(motion_notify_event), (key_press_event):
      	Got rid of the crufty old way drag&drop motion used to handle
      	updating the drop action.
      
      	* libnautilus-extensions/nautilus-drag.h:
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	* libnautilus-extensions/nautilus-drag.c:
      	(nautilus_drag_modifier_based_action):
      	Moved to the common drag&drop file so I can share it
      	between the list and icon view.
      
      	* libnautilus-extensions/nautilus-list.c:
      	(nautilus_list_initialize), (nautilus_list_motion),
      	(nautilus_list_drag_motion):
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(confirm_switch_to_manual_layout):
      	Reformatted a bit.
      1e53144a
  16. 28 Jun, 2000 1 commit
    • Darin Adler's avatar
      Changed to use new call that's for receiving dropped images. · 711e7694
      Darin Adler authored
      	* components/music/nautilus-music-view.c:
      	(nautilus_music_view_drag_data_received):
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(receive_dropped_tile_image):
      	* src/nautilus-sidebar.c: (receive_dropped_uri_list):
      	Changed to use new call that's for receiving dropped images.
      
      	* src/nautilus-sidebar.c: (background_settings_changed_callback),
      	(background_appearance_changed_callback),
      	(background_reset_callback), (nautilus_sidebar_update_info):
      	Changed signal handlers to use the normal form instead of
      	connect_object. Changed the reset callback to stop the reset
      	signal from going any further now that there's a default handler
      	for reset.
      
      	* libnautilus-extensions/nautilus-directory-background.c:
      	(background_reset_callback): Add a call to stop the reset signal
      	from going any further now that there's a default handler for
      	reset.
      
      	* libnautilus-extensions/nautilus-background.h:
      	* libnautilus-extensions/nautilus-background.c:
      	(nautilus_background_initialize_class),
      	(nautilus_background_receive_dropped_background_image),
      	(nautilus_background_set_tile_image_uri),
      	(nautilus_background_reset), (nautilus_background_real_reset):
      	Made nautilus_background_reset set the color and image to NULL by
      	default instead of doing nothing. Also added a new call to receive
      	a dropped background image and only pay attention to the special
      	"reset" image name there instead of hacking it into
      	_set_tile_image_uri itself.
      
      	* libnautilus-extensions/nautilus-stock-dialogs.h:
      	* libnautilus-extensions/nautilus-stock-dialogs.c:
      	(find_message_label), (find_message_label_callback),
      	(show_message_box), (show_ok_box), (nautilus_info_dialog),
      	(nautilus_warning_dialog), (nautilus_error_dialog),
      	(clicked_callback), (nautilus_error_dialog_with_details),
      	(nautilus_yes_no_dialog): Change the API for stock dialogs
      	to be a little simpler, getting rid of the separate parented
      	variant. Also added a new dialog for errors that have a second
      	more detailed error message.
      
      	* libnautilus-extensions/nautilus-program-chooser.c:
      	(nautilus_program_chooser_show_no_choices_message):
      	* libnautilus-extensions/nautilus-program-choosing.c:
      	(nautilus_launch_application_parented):
      	* src/file-manager/fm-error-reporting.c:
      	(fm_report_error_renaming_file), (fm_report_error_setting_group),
      	(fm_report_error_setting_owner),
      	(fm_report_error_setting_permissions):
      	* src/nautilus-property-browser.c: (emblem_image_file_changed),
      	(add_background_to_browser):
      	* src/nautilus-window-manage-views.c:
      	(handle_unreadable_location),
      	(nautilus_window_end_location_change_callback),
      	(report_content_view_failure_to_user):
      	* src/nautilus-window-menus.c: (show_bogus_bookmark_window):
      	Change to use new API for stock dialogs.
      
      	* src/nautilus-application.c: (create_factory),
      	(nautilus_application_initialize),
      	(nautilus_application_check_user_directories),
      	(nautilus_application_startup):
      	Moved OAF registration to application_startup and added some
      	error handling for the case where we have two copies of Nautilus.
      
      	* libnautilus-extensions/nautilus-file.h: Move get_mapped_uri
      	out of the "good part" of the header and add a FIXME.
      
      	* components/services/install/lib/.cvsignore:
      	Ignore some new generated files. Maybe some day I can get Eskil to
      	make these himself as he adds new things.
      711e7694
  17. 26 Jun, 2000 1 commit
    • Darin Adler's avatar
      Ignore some additional generated files. · 63bc589b
      Darin Adler authored
      	* components/services/install/command-line/.cvsignore:
      	* components/services/install/lib/.cvsignore:
      	Ignore some additional generated files.
      
      	* libnautilus-extensions/nautilus-gnome-extensions.h:
      	* libnautilus-extensions/nautilus-gnome-extensions.c:
      	Moved stock dialog functions to nautilus-stock-dialogs.[ch].
      	(nautilus_gnome_canvas_item_request_update_deep),
      	(nautilus_gnome_canvas_request_update_all),
      	(nautilus_gnome_canvas_set_scroll_region),
      	(nautilus_gnome_canvas_set_scroll_region_left_justify):
      	Added a bunch of functions that were previously private inside
      	NautilusIconContainer.
      
      	* libnautilus-extensions/nautilus-gtk-extensions.h:
      	* libnautilus-extensions/nautilus-gtk-extensions.c:
      	(nautilus_gtk_adjustment_set_value),
      	(nautilus_gtk_adjustment_clamp_value):
      	Added functions that treat the value range in a GtkAdjustment the
      	same way scroll bars do, taking the page size into account.
      
      	* libnautilus-extensions/nautilus-horizontal-splitter.h:
      	* libnautilus-extensions/nautilus-horizontal-splitter.c:
      	(nautilus_horizontal_splitter_initialize),
      	(toggle_splitter_position),
      	(nautilus_horizontal_splitter_button_press),
      	(nautilus_horizontal_splitter_button_release):
      	Fixed logic so that splitter will only open or close if you both
      	click and release within the splitter itself.
      
      	* libnautilus-extensions/nautilus-icon-private.h:
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(icon_toggle_selected): Move icons to front when they are selected.
      	(set_scroll_region): Moved workaround that sets scroll region to
      	be large enough to fill the widget allocation into a function in
      	nautilus-gnome-extensions.h. In the process, I fixed the problem
      	where it would do the job wrong when the view was zoomed.
      	(lay_down_icons), (relayout), (reload_icon_positions):
      	Started work on sharing code between automatic layout of the entire
      	container and layout of new icons as the arrive.
      	(nautilus_icon_container_clear), (nautilus_icon_container_add):
      	Got started on the mechanism for laying out new icons as they arrive
      	in bunches instead of one at a time.
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	* libnautilus-extensions/nautilus-program-chooser.c:
      	* libnautilus-extensions/nautilus-program-choosing.c:
      	* src/file-manager/dfos-xfer.c:
      	* src/file-manager/fm-directory-view.c:
      	* src/file-manager/fm-error-reporting.c:
      	* src/nautilus-application.c:
      	* src/nautilus-location-bar.c:
      	* src/nautilus-property-browser.c:
      	* src/nautilus-window-manage-views.c:
      	* src/nautilus-window-menus.c:
      	Added includes to source files that use the stock dialogs.
      
      	* libnautilus-extensions/nautilus-stock-dialogs.h:
      	* libnautilus-extensions/nautilus-stock-dialogs.c:
      	(nautilus_timed_wait_stop), (convert_varargs_to_name_array),
      	(nautilus_simple_dialog), (turn_on_line_wrap_flag),
      	(turn_on_line_wrap_flag_callback), (show_ok_box),
      	(show_yes_no_box), (nautilus_info_dialog),
      	(nautilus_info_dialog_parented), (nautilus_warning_dialog),
      	(nautilus_warning_dialog_parented), (nautilus_error_dialog),
      	(nautilus_error_dialog_parented), (nautilus_yes_no_dialog),
      	(nautilus_yes_no_dialog_parented):
      	Moved all the stock dialog code in here.
      
      	* src/nautilus-sidebar-title.c: (update_icon): Only display the
      	icon when it's ready, instead of showing generic document icon
      	before that time.
      	(update_title), (update_more_info), (update_emblems),
      	(update_notes): Added FIXMEs about doing the same with other info.
      	(nautilus_sidebar_title_button_press_event): Added a FIXME to the
      	half-baked code in here.
      63bc589b
  18. 16 Jun, 2000 1 commit
    • Darin Adler's avatar
      New generated files that needed to be ignored. · 341c93f4
      Darin Adler authored
      	* components/services/trilobite/sample/lib/.cvsignore:
      	New generated files that needed to be ignored.
      
      	* libnautilus-extensions/nautilus-bookmark.c: (get_icon_for_uri):
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(receive_dropped_keyword):
      	* src/nautilus-sidebar.c: (receive_dropped_keyword),
      	(open_with_callback):
      	* src/nautilus-window-manage-views.c: (handle_unreadable_location),
      	(nautilus_window_end_location_change_callback):
      	* src/nautilus-window.c: (view_menu_choose_view_callback):
      	Added FIXME comments for all cases I might have to revisit to
      	finish with bug 866.
      
      	* libnautilus-extensions/nautilus-directory-private.h:
      	* libnautilus-extensions/nautilus-directory.c:
      	(nautilus_search_directory_new),
      	(nautilus_directory_new), (nautilus_directory_is_local),
      	(nautilus_directory_is_search_directory):
      	Removed the is_local and is_search_directory booleans since they
      	are very fast to compute.
      	(nautilus_directory_call_when_ready): Removed the special case for
      	search directories that was causing a problem with NULL
      	directories.  This is better handled inside
      	nautilus-directory-async.c.
      	(nautilus_uri_is_search_uri): Greatly simplified the
      	implementation of the function and moved it out of the
      	"self-check-specific" part of the file.
      
      	* libnautilus-extensions/nautilus-file-utilities.c:
      	(nautilus_format_uri_for_display), (nautilus_make_uri_from_input),
      	(nautilus_get_user_main_directory):
      	Renamed SCHEMA -> SCHEME. Converted code to use
      	nautilus_get_uri_from_local_path instead of just adding a file://
      	on the beginning of path names.
      
      	* libnautilus-extensions/nautilus-file.c: (nautilus_file_get):
      	Did part of the work needed to make this function do its work
      	async. It now only does the I/O if the file is not already known,
      	but there's still the issue of doing the I/O only when requested.
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(receive_dropped_keyword): Fixed storage leaks.
      	(nautilus_icon_container_receive_dropped_icons),
      	(nautilus_icon_dnd_update_drop_target): Added FIXMEs about
      	file-specific stuff that's in here but should be in FMIconView.
      
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(path_represents_svg_image): Changed local svg check to use
      	gnome-vfs instead of NautilusFile.  This is better since we want
      	it to be sync.
      	(load_specific_image): Change to use
      	nautilus_get_local_path_from_uri instead of doing its own file://
      	checks and unescaping.
      
      	* libnautilus-extensions/nautilus-mime-actions.c:
      	(nautilus_mime_get_default_component_for_uri_internal): Call the
      	new public OAF_ServerInfo_duplicate from liboaf instead of our
      	own copy. The one I checked in liboaf has a number of bugs fixed
      	from the one that was in here.
      	(mime_type_get_supertype): Put in a special case for NULL so we
      	don't return "/*" as a supertype for NULL.
      	(nautilus_do_component_query): Call OAF_ServerInfo_duplicate.
      	Also get rid of a NULL check before CORBA_free.
      
      	* libnautilus-extensions/nautilus-stock-dialogs.c:
      	(nautilus_timed_wait_start), (nautilus_timed_wait_free):
      	* libnautilus-extensions/nautilus-stock-dialogs.h:
      	Added a window title to the still-not-implemented code in here.
      
      	* src/file-manager/fm-icon-text-window.c:
      	(create_icon_text_window): Changed the window title to match the
      	menu item.
      
      	* src/nautilus-main.c: Formatting tweaks.
      
      	* src/nautilus-sidebar.c: (receive_dropped_keyword), Fixed a
      	storage leak. Put in a FIXME about the code that is a copy of
      	what's in the icon view.
      341c93f4
  19. 02 Jun, 2000 3 commits
    • Darin Adler's avatar
      Fix typo that caused us to unref a NULL GdkBitmap. · abf488d6
      Darin Adler authored
      	* libnautilus-extensions/nautilus-drag.c:
      	(nautilus_drag_finalize): Fix typo that caused us to unref a NULL
      	GdkBitmap.
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(nautilus_icon_dnd_fini): Fix double-free that caused everything
      	to go haywire.
      
      	* src/file-manager/fm-directory-view.c:
      	(add_component_to_gtk_menu), (add_component_to_bonobo_menu):
      	Marked a couple of strings for localization that were missed.
      abf488d6
    • Pavel Cisler's avatar
      Move more code from nautilus-icon-dnd.c to the common nautilus-drag.c. Add · 38d84fb3
      Pavel Cisler authored
      2000-06-02  Pavel Cisler <pavel@eazel.com>
      
      	* libnautilus-extensions/nautilus-drag.c:
      	* libnautilus-extensions/nautilus-drag.h:
      	(add_one_gnome_icon_list), (add_one_uri_list),
      	(nautilus_drag_drag_data_get):
      	Move more code from nautilus-icon-dnd.c to the common
      	nautilus-drag.c. Add a common nautilus_drag_drag_data_get
      	function that gets passed iterators and assembles selection
      	data.
      
      	* libnautilus-extensions/nautilus-gtk-extensions.c:
      	* libnautilus-extensions/nautilus-gtk-extensions.h:
      	(nautilus_gtk_marshal_NONE__POINTER_INT_INT_INT):
      	Added more marshalling glue. One day there will be enough
      	for everyone.
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(nautilus_icon_container_each_selected_icon):
      	(icon_get_data_binder), (each_icon_get_data_binder),
      	(drag_data_get_callback):
      	Iterators and binders to support the NautilusIconContainer
      	flavor of nautilus_drag_drag_data_get.
      
      	* libnautilus-extensions/nautilus-list.c:
      	* libnautilus-extensions/nautilus-list.h:
      	* src/file-manager/fm-list-view.c:
      	(nautilus_list_initialize_class), (nautilus_list_initialize),
      	(nautilus_list_drag_begin), (nautilus_list_drag_end),
      	(nautilus_list_drag_leave), (nautilus_list_drag_motion),
      	(nautilus_list_drag_data_received), (nautilus_list_set_selection),
      	(nautilus_list_each_selected_row),
      	(row_get_data_binder), (each_icon_get_data_binder),
      	(fm_list_drag_data_get), (create_list):
      	Hookup fm_list_drag_data_get to support drags originating from the
      	list view. Connect the drag_data_get to fm_list_view and
      	handle it there.
      
      	* libnautilus-extensions/nautilus-list.c:
      	* src/file-manager/fm-list-view.c:
      	(nautilus_list_initialize_class), (fm_list_handle_dropped_icons):
      	Fix an improperly marshalled signal.
      38d84fb3
    • Pavel Cisler's avatar
      More list view drag&drop work. Move more code from nautilus-icon-dnd.c to · 2dcd63ac
      Pavel Cisler authored
      2000-06-01  Pavel Cisler  <pavel@eazel.com>
      
      	* libnautilus-extensions/nautilus-drag.h:
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	* libnautilus-extensions/nautilus-drag.c:
      	* libnautilus-extensions/nautilus-list.h:
      	* libnautilus-extensions/nautilus-icon-dnd.h:
      	* libnautilus-extensions/nautilus-list.c:
      	(nautilus_drag_init), (nautilus_drag_finalize),
      	(create_selection_shadow), (set_gnome_icon_list_selection),
      	(nautilus_icon_container_dropped_icon_feedback),
      	(drag_data_received_callback),
      	(nautilus_icon_container_ensure_drag_data), (drag_end_callback),
      	(confirm_switch_to_manual_layout), (handle_local_move),
      	(handle_nonlocal_move),
      	(nautilus_icon_container_receive_dropped_icons),
      	(nautilus_icon_dnd_update_drop_target),
      	(nautilus_icon_container_free_drag_data), (nautilus_icon_dnd_init),
      	(nautilus_icon_dnd_fini), (nautilus_icon_dnd_begin_drag),
      	(drag_drop_callback), (nautilus_list_initialize),
      	(nautilus_list_destroy),
      	(nautilus_list_drag_begin), (nautilus_list_drag_data_get),:
      	More list view drag&drop work. Move more code from nautilus-icon-dnd.c
      	to the shared nautlus-drag.c file. Split common drag&drop state from
      	NautilusIconDndInfo into NautilusDragInfo.
      
      	* libnautilus-extensions/nautilus-list.c:
      	(nautilus_list_drag_motion), (nautilus_list_motion):
      	Start hooking up drag-related signals.
      
      	* libnautilus-extensions/nautilus-list.c:
      	* libnautilus-extensions/nautilus-list.h:
      	(nautilus_list_initialize_class):
      	Get rid of the unused START_DRAG signal.
      2dcd63ac
  20. 30 May, 2000 1 commit
    • Pavel Cisler's avatar
      More drag&drop support calls shared between list and icon view. · ed231e9a
      Pavel Cisler authored
      2000-05-30  Pavel Cisler <pavel@eazel.com>
      
      	* libnautilus-extensions/nautilus-drag.c:
      	* libnautilus-extensions/nautilus-drag.h:
      	(nautilus_drag_items_local), (nautilus_drag_can_accept_item),
      	(nautilus_drag_can_accept_items):
      	More drag&drop support calls shared between list and icon view.
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(nautilus_icon_container_selection_items_local),
      	(receive_dropped_keyword),
      	(nautilus_icon_container_receive_dropped_icons),
      	(nautilus_icon_dnd_update_drop_target):
      	Remove calls that are replaced by nautilus-drag.c equivalents.
      	Tweak some whitespace.
      
      	* libnautilus-extensions/nautilus-gtk-extensions.c:
      	* libnautilus-extensions/nautilus-gtk-extensions.h:
      	(nautilus_gtk_marshal_NONE__INT_INT_INT):
      	Add some more signal glue.
      
      	* libnautilus-extensions/nautilus-list.h:
      	* libnautilus-extensions/nautilus-list.c:
      	(nautilus_list_initialize_class), (nautilus_list_drag_drop),
      	(nautilus_list_row_at):
      	Add more drop handling. Add signal that sends of dropped data
      	and context to fm-list-view.c. Added nautilus_list_row_at
      	that fm-list-view.c needs to handle the drop.
      
      	* src/file-manager/fm-directory-view.c:
      	* src/file-manager/fm-directory-view.h:
      	* src/file-manager/fm-icon-view.c: (icon_view_can_accept_item),
      	(icon_view_get_container_uri), (icon_view_move_copy_items),
      	(create_icon_container), (fm_directory_view_get_uri),
      	(fm_directory_view_move_copy_items),
      	(fm_directory_view_can_accept_item):
      	Rework public calls to not take a container view as an argument
      	and can be used by both list and icon view classes.
      	Add new private signal handler callbacks that replace the
      	public calls.
      
      	* src/file-manager/fm-list-view.c: (fm_list_nautilus_file_at),
      	(fm_list_handle_dropped_icons), (create_list):
      	Drop handling code.
      ed231e9a
  21. 29 May, 2000 1 commit
    • Pavel Cisler's avatar
      Start splitting out drag&drop code common between icon view and list view · 1356a678
      Pavel Cisler authored
      2000-05-29  Pavel Cisler <pavel@eazel.com>
      
      	* libnautilus-extensions/Makefile.am:
      	* libnautilus-extensions/nautilus-drag.c:
      	* libnautilus-extensions/nautilus-drag.h:
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	* libnautilus-extensions/nautilus-icon-dnd.h:
      	* libnautilus-extensions/nautilus-list.c:
      	(nautilus_drag_selection_item_new), (drag_selection_item_destroy),
      	(nautilus_drag_destroy_selection_list),
      	(nautilus_drag_build_selection_list),
      	(create_selection_shadow),
      	(nautilus_icon_container_dropped_icon_feedback),
      	(drag_data_received_callback),
      	(nautilus_icon_container_ensure_drag_data), (drag_end_callback),
      	(nautilus_icon_container_selection_items_local),
      	(nautilus_icon_canvas_item_can_accept_items), (handle_local_move),
      	(handle_nonlocal_move),
      	(nautilus_icon_container_receive_dropped_icons),
      	(nautilus_icon_container_free_drag_data), (nautilus_icon_dnd_fini),
      	(drag_drop_callback), (nautilus_list_initialize), (nautilus_list_drag_end),
      	(nautilus_list_drag_leave), (nautilus_list_drag_drop),
      	(nautilus_list_drag_data_received):
      	Start splitting out drag&drop code common between icon view and list view
      	into a new file.
      	Start adding drag&drop calls to list view.
      	Bunch of renamings.
      1356a678
  22. 22 May, 2000 1 commit
  23. 18 May, 2000 1 commit
    • Pavel Cisler's avatar
      Fixed 636 - don't allow copying into Trash. Also added checks for Trashing · 3af2e054
      Pavel Cisler authored
      2000-05-17  Pavel Cisler  <pavel@eazel.com>
      
      	* src/file-manager/dfos-xfer.c: (fs_xfer), (fs_move_to_trash):
      	Fixed 636 -  don't allow copying into Trash. Also added
      	checks for Trashing the Trash, moving or copying the Trash,
      	Trashing the parents of Trash, moving and copying folders in
      	their children.
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(nautilus_icon_container_selection_items_local):
      	Fix 625: move uri_is_parent into a new call in GnomeVFS and
      	added more features that I needed for the above fix.
      3af2e054
  24. 16 May, 2000 1 commit
    • Darin Adler's avatar
      Quick cleanup pass on FIXMEs. · 6281f2ee
      Darin Adler authored
      	* check-FIXME.pl: Added the count of FIXMEs with bug numbers
      	as well as the count of FIXMEs without.
      
      	* components/services/trilobite/lib/helixcode-utils.c:
      	(xml_get_value), (prune_xml), (check_for_root_user),
      	(check_for_redhat), (determine_redhat_version),
      	(determine_mandrake_version), (determine_turbolinux_version),
      	(determine_suse_version), (determine_debian_version),
      	(determine_distribution_type), (get_distribution_name):
      	A tiny bit of cleanup on these functions. There was some really
      	bad code in here, including code that compared strings with ==.
      	Also a lot of code that does open and then no close, for no
      	good reason, so I added the close.
      
      	* libnautilus-extensions/nautilus-file.c: (rename_callback),
      	(nautilus_file_get_mapped_uri):
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(nautilus_icon_container_update_icon):
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(confirm_switch_to_manual_layout), (nautilus_icon_dnd_begin_drag):
      	* src/file-manager/fm-icon-view.c: (update_layout_menus),
      	(sort_callback), (manual_layout_callback):
      	* src/ntl-view.c: (nautilus_view_destroy_client):
      	Added bug numbers to some FIXMEs.
      6281f2ee
  25. 12 May, 2000 1 commit
    • Darin Adler's avatar
      Added the idl directory. · 57d3420b
      Darin Adler authored
      	* Makefile.am: Added the idl directory.
      
      	* libnautilus-extensions/nautilus-gnome-extensions.h:
      	* libnautilus-extensions/nautilus-gnome-extensions.c:
      	(nautilus_simple_dialog): Turned on line wrapping for the label
      	in the simple dialog.
      	(turn_on_line_wrap_flag), (show_ok_box), (nautilus_error_dialog),
      	(nautilus_error_dialog_parented): Made alternate versions of
      	gnome_error_dialog and gnome_error_dialog_parented that turn on
      	line wrapping for the message label.
      
      	* libnautilus-extensions/nautilus-icon-canvas-item.c:
      	(draw_or_measure_label_text): Made the list of characters to break
      	lines on localizable.
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(confirm_switch_to_manual_layout): Took newlines out of messages
      	since the dialog now does line wrapping.
      
      	* src/file-manager/dfos-xfer.c: (handle_xfer_vfs_error),
      	(handle_xfer_overwrite): Took out some extraneous spaces. I could
      	have also removed the newlines since the functions call something
      	that does line wrapping, but I decided not to.
      
      	* src/file-manager/fm-properties-window.c:
      	(name_field_update_to_match_file): Fixed a double delete bug.
      	This may have been what Ali was running into when he was clicking
      	quickly on all the emblems in succession.
      
      	* src/nautilus-property-browser.c:
      	Did a cleanup pass on the entire file. Marked things localizable
      	and marked some bugs with FIXME among other things.
      
      	* src/ntl-window-msgs.c: (nautilus_window_update_state): Added
      	code to check for NULL so that we won't core dump when trying
      	to "go back" from the first failed view.
      	(nautilus_window_progress_indicate),
      	(nautilus_window_end_location_change_callback): Got rid of newlines
      	from messages and called the function that now does line wrapping.
      57d3420b
  26. 10 May, 2000 1 commit
    • Darin Adler's avatar
      Ignore the generated files in this new directory. · b6258ecd
      Darin Adler authored
      	* components/services/trilobite/src/.cvsignore:
      	Ignore the generated files in this new directory.
      
      	* libnautilus-extensions/nautilus-gnome-extensions.h:
      	* libnautilus-extensions/nautilus-gnome-extensions.c:
      	(convert_varargs_to_name_array), (nautilus_simple_dialog):
      	Moved simple-dialog function from dfos. It just calls
      	gnome_dialog with the right options.
      
      	* libnautilus-extensions/nautilus-gtk-extensions.h:
      	Added another marshal function.
      
      	* libnautilus-extensions/nautilus-icon-container.h:
      	* libnautilus-extensions/nautilus-icon-private.h:
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(reload_icon_positions), (nautilus_icon_container_move_icon),
      	(nautilus_icon_container_initialize_class),
      	(nautilus_icon_container_add),
      	(nautilus_icon_container_request_update_all),
      	(nautilus_icon_container_set_auto_layout),
      	(nautilus_icon_container_freeze_icon_positions),
      	(nautilus_icon_container_sort),
      	(nautilus_icon_container_start_renaming_selected_item):
      	Reorganized signals. Added NautilusIconPosition to simplify
      	the interface for signals that deal with icon position. Removed the
      	now-unused icon_text_edit_occurred signal. Added the layout_changed
      	signal. Added nautilus_icon_container_sort function. Moved some code
      	out of the "omit self check" conditional.
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(confirm_switch_to_manual_layout), (handle_local_move): Added code
      	that switches to manual layout if you move an icon within the window
      	and it's on auto layout.
      
      	* src/file-manager/dfos-xfer.h:
      	* src/file-manager/dfos-xfer.c: (handle_xfer_vfs_error),
      	(handle_xfer_overwrite), (dfos_xfer): Switch code to use the new
      	nautilus_simple_dialog instead of file_operation_alert, which I
      	removed from here.
      
      	* src/file-manager/fm-icon-view.c:
      	(get_stored_icon_position_callback), (update_layout_menus),
      	(fm_icon_view_begin_loading), (auto_layout_callback),
      	(manual_layout_callback), (layout_changed_callback),
      	(fm_icon_view_merge_menus), (icon_position_changed_callback),
      	(create_icon_container):
      	Added workaround for Bonobo bug where it calls the radio menu item
      	callback that was making it always use auto layout. Converted to use
      	the updated signal parameters. Added a signal handler to update the
      	layout menu to match the layout when the layout is changed elsewhere.
      b6258ecd
  27. 09 May, 2000 1 commit
    • Darin Adler's avatar
      Eliminated code that ref's files when they are the target of the · e7aa2e75
      Darin Adler authored
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(nautilus_directory_call_when_ready_internal),
      	(nautilus_directory_cancel_callback_internal),
      	(directory_count_callback), (nautilus_async_destroying_file),
      	(start_getting_directory_counts), (top_left_read_done),
      	(start_getting_top_lefts):
      	Eliminated code that ref's files when they are the target of the
      	call_when_ready list or the current file being read for top left
      	text or the current directory being counted. Instead, cancel the
      	I/O when the file is destroyed (we already had the hook).
      
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(lacks_top_left),
      	* libnautilus-extensions/nautilus-file-private.h:
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_contains_text), (nautilus_file_get_top_left_text):
      	Change top left text reading to only read text files and other
      	regular files with unknown type.
      
      	* libnautilus-extensions/nautilus-gtk-extensions.c:
      	(nautilus_gtk_marshal_NONE__POINTER_POINTER_POINTER_POINTER_POINTER_POINTER):
      	* libnautilus-extensions/nautilus-gtk-extensions.h:
      	Needed a new marshal function.
      
      	* libnautilus-extensions/nautilus-icon-container.h:
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(resort_and_clear), (auto_position_icon), (relayout):
      	Changed around to share more code.
      	(reload_icon_positions): Call to reload icon positions when you
      	switch from auto to manual layout.
      	(idle_handler): Get rid of relayout on idle.
      	(nautilus_icon_container_move_icon): Renamed icon_changed to
      	icon_position_changed.
      	(rubberband_select): Fixed bug where rubberband would never deselect.
      	(nautilus_icon_container_initialize_class): Add a new signal called
      	get_stored_icon_position and also renamed the icon_changed signal to
      	icon_position_changed.
      	(nautilus_icon_container_update_icon): Changed back the
      	get_icon_images interface to return NautilusScaledIcon objects
      	instead of actual pixbufs. This is made possible by the change to
      	include the embedded text as one of the parameters when creating
      	a NautilusScaledIcon.
      	(nautilus_icon_container_add): Merged the two flavors of add and
      	removed the extra parameters. Now the icon position and scale comes
      	from a callback (via signal).
      	(nautilus_icon_container_set_selection): Use a hash table (fixes
      	Bugzilla bug 613).
      	(nautilus_icon_container_select_list_unselect_others): Use a hash
      	table.
      	(nautilus_icon_container_set_auto_layout): Reload the previous
      	icon positions and "freeze" them (store them) when switching from
      	automatic layout to manual.
      	(nautilus_icon_container_freeze_icon_positions): Public function
      	to store all the icon psoitions. For use later with the dialog that
      	you get when you drag an icon.
      	* src/file-manager/fm-icon-view.c:
      	(get_stored_icon_position_callback): Support new interface for
      	getting the icon position. Also used setlocale so metadata always
      	uses a locale-independent format for floating point numbers.
      	(fm_icon_view_add_file), (fm_icon_view_done_adding_files):
      	New simplified interface for adding icons.
      	(auto_layout_callback), (manual_layout_callback): Fixed a bug where
      	we'd always switch to auto layout on startup. It's actually a bug
      	in Bonobo where new radio menu items get callbacks right away.
      	(icon_position_changed_callback): Used setlocale so metadata always
      	uses a locale-independent format for floating point numbers.
      	(get_icon_images_callback): Changed for new simpler embedded text
      	API. Moved the actual pixbuf stuff back into NautilusIconContainer.
      	(create_icon_container): New get_stored_icon_position callback and
      	renamed icon_position_changed callback.
      
      	* libnautilus-extensions/nautilus-icon-dnd.c: (handle_local_move),
      	(handle_nonlocal_move),
      	(nautilus_icon_container_receive_dropped_icons):
      	Restructured the drag code a little bit to make it easy to add the
      	dialog that you get when you drag an icon within an auto-layed-out
      	window (that I will add soon).
      
      	* libnautilus-extensions/nautilus-icon-factory.h:
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(nautilus_scalable_icon_get), (nautilus_scalable_icon_unref),
      	(nautilus_scalable_icon_hash), (nautilus_scalable_icon_equal),
      	(nautilus_icon_factory_get_icon_for_file),
      	(nautilus_icon_factory_get_emblem_icon_by_name),
      	(nautilus_icon_factory_get_emblem_icons_for_file),
      	(get_image_from_cache),
      	(nautilus_icon_factory_get_pixbuf_for_icon),
      	(nautilus_icon_factory_get_pixbuf_for_file), (embed_text),
      	(load_image_with_embedded_text):
      	* src/file-manager/fm-list-view.c:
      	(fm_list_view_get_emblem_pixbufs_for_file):
      	* src/file-manager/fm-properties-window.c:
      	(create_image_widget_for_emblem):
      	* src/nautilus-index-title.c: (nautilus_index_title_update_info):
      	Even though John talked me out of it, I talked myself back into it.
      	Redid the embedded text so it's done entirely inside the icon
      	factory. This keeps the interface simple.
      
      	* libnautilus-extensions/nautilus-icon-private.h: Add a missing
      	newline.
      e7aa2e75
  28. 05 May, 2000 2 commits
    • Darin Adler's avatar
      Moved the "embedded text" feature into the icon factory and · 33910528
      Darin Adler authored
      	NautilusFile.
      
      	* libnautilus-extensions/nautilus-directory-private.h:
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(metafile_read_close), (nautilus_metafile_read_cancel),
      	(metafile_read_failed), (metafile_read_complete),
      	(metafile_read_callback), (metafile_read_some),
      	(metafile_read_open_callback), (metafile_read_start),
      	(nautilus_directory_request_read_metafile), (metafile_write_done),
      	(metafile_write_failed), (metafile_write_callback),
      	(metafile_write_create_callback), (nautilus_metafile_write_start),
      	(metafile_write), (lacks_top_left), (wants_top_left),
      	(has_problem), (select_needy_file), (count_lines),
      	(top_left_read_done), (top_left_read_failed),
      	(top_left_read_complete), (top_left_read_close),
      	(top_left_read_callback), (top_left_read_some),
      	(top_left_open_callback), (start_getting_top_lefts),
      	(state_changed):
      	Added code to read top lefts of files in the background.
      	Restructured things to accomodate this new code nicely with
      	a minimum of copy and paste (there still was plenty of copy
      	and paste so there's room for improvement).
      
      	* libnautilus-extensions/nautilus-directory.c:
      	(nautilus_directory_destroy):
      	Name changes from above required revising some asserts.
      
      	* libnautilus-extensions/nautilus-file-private.h:
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_get_top_left_text): Now it returns something
      	besides just NULL.
      	(nautilus_extract_top_left_text): Function that remembers only
      	the part of the top left text that we want to keep around.
      
      	* libnautilus-extensions/nautilus-gtk-extensions.h:
      	* libnautilus-extensions/nautilus-gtk-extensions.c:
      	(nautilus_gtk_marshal_NONE__POINTER_POINTER_POINTER),
      	(nautilus_gtk_marshal_POINTER__POINTER_INT_INT_POINTER_POINTER):
      	Needed some new marshal functions.
      
      	* libnautilus-extensions/nautilus-icon-canvas-item.h:
      	* libnautilus-extensions/nautilus-icon-canvas-item.c:
      	(nautilus_icon_canvas_item_initialize_class),
      	(nautilus_icon_canvas_item_destroy),
      	(nautilus_icon_canvas_item_set_arg),
      	(nautilus_icon_canvas_item_get_arg),
      	(nautilus_icon_canvas_item_get_image),
      	(nautilus_icon_canvas_item_set_image),
      	(nautilus_icon_canvas_item_draw):
      	Removed the old embedded text support. It came with a whole lot
      	of baggage, also removed.
      
      	* libnautilus-extensions/nautilus-icon-container.h:
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(nautilus_icon_container_update_icon): Moved pixbuf computing code
      	into the FMIconView class. We might decide later to move it back
      	again, but for now the embedded text makes it easier to do it
      	this way.
      	(nautilus_icon_container_initialize_class): Merged
      	get_icon_editable_text and get_icon_additional_text back into
      	a single signal that gets both.
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(nautilus_icon_dnd_begin_drag): Updated for change in icon factory
      	API.
      
      	* src/file-manager/fm-directory-view.c: (finish_loading_uri):
      	Ask for top-left text attribute for all directories.
      
      	* src/file-manager/fm-icon-view.c: (get_icon_images_callback):
      	Moved pixbuf computing code into the FMIconView class. We might
      	decide later to move it back again, but for now the embedded text
      	makes it easier to do it this way.
      	(get_icon_text_callback): Merged get_icon_editable_text and
      	get_icon_additional_text back into a single signal that gets both.
      33910528
    • Andy Hertzfeld's avatar
      added the ability to drop emblems from the property browser onto icons in · 41b7f28c
      Andy Hertzfeld authored
      
             added the ability to drop emblems from the property browser onto
             icons in the icon view; also, added a new background tile
      41b7f28c
  29. 04 May, 2000 1 commit
    • Pavel Cisler's avatar
      Add a simple heuristic to only show the progress dialog for file · b91af809
      Pavel Cisler authored
      2000-05-03  Pavel Cisler  <pavel@eazel.com>
      
      	* src/file-manager/dfos-xfer.c (create_xfer_dialog),
      	(handle_xfer_ok), (handle_xfer_vfs_error), (fs_xfer),
      	(fs_move_to_trash), (fs_empty_trash):
      	Add a simple heuristic to only show the progress dialog
      	for file operations that are likely to take a non-trivial
      	ammount of time in which case the progress dialog flashed
      	on the screen for a split of a second.
      
      	* libnautilus-extensions/nautilus-icon-dnd.c
      	(nautilus_icon_dnd_modifier_based_action):
      	Switch the modifier key for copy to Control. This is a better
      	modifier because Alt had to be held down after the drag started
      	otherwise one would move the window instead of starting a drag.
      b91af809
  30. 03 May, 2000 1 commit
  31. 26 Apr, 2000 1 commit
    • John Sullivan's avatar
      More FIXME-to-bug work. · 75b43729
      John Sullivan authored
      	* libnautilus-extensions/nautilus-icon-container.c,
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	Wrote bug reports for all FIXMEs in these files.
      75b43729
  32. 14 Apr, 2000 1 commit
    • Darin Adler's avatar
      Fixed a bug my changes to GNOME VFS exposed. The callback couldn't handle · 74748cdc
      Darin Adler authored
      	* components/html/ntl-web-browser.c: (browser_vfs_read_callback):
      	Fixed a bug my changes to GNOME VFS exposed. The callback couldn't
      	handle a "bytes_read" of 0.
      
      	* libnautilus/nautilus-directory-private.h:
      	* libnautilus/nautilus-directory.c:
      	* libnautilus/nautilus-directory.h:
      	* src/file-manager/fm-directory-view.c:
      	Added a new interface for monitoring files and directories.
      	Also fixed the self-check code that was failing since the
      	async. changes.
      
      	* libnautilus/nautilus-file.h:
      	Added the interface for monitoring single files, but it isn't
      	implemented yet.
      
      	* libnautilus/nautilus-icon-canvas-item.c:
      	* libnautilus/nautilus-icon-canvas-item.h:
      	* libnautilus/nautilus-icon-container.c:
      	* libnautilus/nautilus-icon-container.h:
      	* libnautilus/nautilus-icon-dnd.c:
      	* libnautilus/nautilus-icon-dnd.h:
      	* libnautilus/nautilus-icon-private.h:
      	Restructured Andy's modifier changes so the canvas item doesn't
      	have to know about modifiers. This makes the canvas item private
      	again. Users of NautilusIconContainer shouldn't have to know
      	about the canvas item.
      
      	* src/file-manager/fm-icon-view.c:
      	Reformatting.
      74748cdc