1. 18 Jan, 2003 2 commits
    • Dave Camp's avatar
      Free the path. · 4366006f
      Dave Camp authored
      2003-01-18  Dave Camp  <dave@ximian.com>
      
      	* src/file-manager/fm-list-view.c (fm_list_view_start_renaming_file):
      	Free the path.
      4366006f
    • Dave Camp's avatar
      Don't initiate a rename on mouse clicks. Patch from Marten Ter Borgh · 1d70f58e
      Dave Camp authored
      2003-01-18  Dave Camp  <dave@ximian.com>
      
      	* src/file-manager/fm-list-view.c: (cell_renderer_edited),
      	(create_and_set_up_tree_view), (fm_list_view_start_renaming_file):
      	Don't initiate a rename on mouse clicks.
      	Patch from Marten Ter Borgh <marten-devel@terborgh.demon.nl>,
      	fixes bug #83552.
      1d70f58e
  2. 13 Jan, 2003 3 commits
    • Dave Camp's avatar
      Only handle keypresses on the bin window. · e0d92d61
      Dave Camp authored
      2003-01-12  Dave Camp  <dave@ximian.com>
      
      	* src/file-manager/fm-list-view.c (key_press_callback): Only
      	handle keypresses on the bin window.
      
      	Fixes #102259, thanks to Pasupathi <pasupathi.duraisamy@wipro.com>
      	for helping to track this down.
      e0d92d61
    • Dave Camp's avatar
      In single click mode, don't activate if shift or control is held down. · f9567581
      Dave Camp authored
      2003-01-12  Dave Camp  <dave@ximian.com>
      
      	* src/file-manager/fm-list-view.c (button_press_callback): In
      	single click mode, don't activate if shift or control is held
      	down.  This matches the icon view behavior.
      
      	Fixes #81896.
      f9567581
    • Dave Camp's avatar
      Handle activation and the popup menu from here. · 28ecd710
      Dave Camp authored
      2003-01-12  Dave Camp  <dave@ximian.com>
      
      	* src/file-manager/fm-list-view.c: (button_press_callback): Handle
      	activation and the popup menu from here.
      	(create_and_set_up_tree_view): Don't connect to
      	button_release_event or event_after.
      
      	Fixes #91176.
      28ecd710
  3. 06 Nov, 2002 1 commit
  4. 10 Sep, 2002 1 commit
    • Dave Camp's avatar
      Activate files on space. · 399bf43c
      Dave Camp authored
      2002-09-10  Dave Camp  <dave@ximian.com>
      
      	* libnautilus-private/nautilus-icon-container.c: (keyboard_space):
      	* src/file-manager/fm-list-view.c: (key_press_callback): Activate
      	files on space.
      399bf43c
  5. 26 Jul, 2002 1 commit
    • Dave Camp's avatar
      Added eggtreemultidnd.[ch]. · 34733e86
      Dave Camp authored
      2002-07-26  Dave Camp  <dave@ximian.com>
      
      	* libnautilus-private/Makefile.am: Added eggtreemultidnd.[ch].
      	* libnautilus-private/eggtreemultidnd.c:
      	* libnautilus-private/eggtreemultidnd.h: New files.
      	* src/file-manager/fm-list-model.c:
      	(fm_list_model_multi_row_draggable),
      	(fm_list_model_file_for_path),
      	(each_path_get_data_binder), (fm_list_model_multi_drag_data_get),
      	(fm_list_model_multi_drag_data_delete),
      	(fm_list_model_set_drag_view), (fm_list_model_get_drag_types),
      	(fm_list_model_multi_drag_source_init), (fm_list_model_get_type):
      	Implemented the multi drag source.
      	* src/file-manager/fm-list-model.h:
      	* src/file-manager/fm-list-view.c: (event_after_callback): Moved
      	the context menu out of here...
      	(button_release_callback): to here.
      	(button_press_callback): Pass the current view and the position
      	to the model.
      	(create_and_set_up_tree_view): Enable drag source on the view.
      34733e86
  6. 25 Jul, 2002 1 commit
    • Dave Camp's avatar
      New functions. (create_tree): Create a NautilusTreeViewDragDest. · 8fed4ca3
      Dave Camp authored
      2002-07-25  Dave Camp  <dave@ximian.com>
      
      	* components/tree/nautilus-tree-view.c: (get_root_uri_callback),
      	(get_file_for_path_callback), (move_copy_items_callback): New
      	functions.
      	(create_tree): Create a NautilusTreeViewDragDest.
      	(nautilus_tree_view_dispose): Unref the DragDest object.
      	(nautilus_tree_view_class_init): initialize dispose.
      	* libnautilus-private/Makefile.am: Build
      	nautilus-tree-view-drag-dest.[ch].
      	* libnautilus-tree-view-drag-dest.c:
      	* libnautilus-tree-view-drag-dest.h: New files.
      	* libnautilus-private/nautilus-dnd.c:
      	(nautilus_drag_selection_includes_special_link): Moved here
      	from nautilus-icon-dnd.c.
      	* libnautilus-private/nautilus-dnd.h: Prototype for
      	nautilus_drag_selection_includes_special_link.
      	* libnautilus-private/nautilus-file.c:
      	(nautilus_file_get_drop_target_uri): Moved here from
      	fm-directory-view.
      	* libnautilus-private/nautilus-file.h:
      	* libnautilus-private/nautilus-icon-dnd.c:
      	(nautilus_icon_container_receive_dropped_icons): Call
      	nautilus_drag_selection_includes_special_link().
      	* libnautilus-private/nautilus-marshal.list: New marshallers.
      	* src/file-manager/fm-icon-view.c:
      	(get_icon_drop_target_uri_callback): Use
      	nautilus_file_get_drop_target_uri().
      	* src/file-manager/fm-list-view.c: (get_root_uri_callback),
      	(get_file_for_path_callback), (move_copy_items_callback): New
      	functions.
      	(create_and_set_up_tree_view): Create a NautilusViewDragDest
      	object.
      	(fm_list_view_dispose): Unref the DragDest object.
      8fed4ca3
  7. 02 Jul, 2002 1 commit
  8. 01 Jul, 2002 1 commit
    • David Emory Watson's avatar
      Remove all old script menus before rebuilding... · 418943b3
      David Emory Watson authored
      2002-07-01  David Emory Watson  <dwatson@cs.ucr.edu>
      
      	* src/file-manager/fm-directory-view.c:
      	(update_scripts_menu): Remove all old script menus before rebuilding...
      
      	* src/file-manager/fm-list-view.c:
      	(button_press_callback): Fix memory leak.
      418943b3
  9. 12 Jun, 2002 1 commit
    • David Emory Watson's avatar
      New, protects us from illegal preferences. · 29133f4d
      David Emory Watson authored
      2002-06-03  David Emory Watson  <dwatson@cs.ucr.edu>
      
      	* src/file-manager/fm-list-view.c:
      	(get_derfault_zoom_level): New, protects us from illegal preferences.
      	(set_zoom_level_from_metadata_and_preferences),
      	(fm_list_view_reset_to_defaults),
      	(fm_list_view_set_zoom_level),
      	(fm_list_view_restore_default_zoom_level): Update.
      	(fm_list_view_scale_font_size): Replace switch with loop and always
      	use default font at default zoom level.
      	(click_policy_changed_callback): Make underlines appear or disappear
      	when the click policy changes.
      
      2002-06-02  David Emory Watson  <dwatson@cs.ucr.edu>
      
      	* components/text/nautilus-text-view.c:
      	(nautilus_text_view_instance_init): Turn on word wrapping.
      29133f4d
  10. 03 Jun, 2002 1 commit
  11. 21 May, 2002 1 commit
    • Michael Meeks's avatar
      move this code (event_after_callback): into here, it seems we get the · fc8d249c
      Michael Meeks authored
      2002-05-21  Michael Meeks  <michael@ximian.com>
      
      	* src/file-manager/fm-list-view.c
      	(list_activate_callback): move this code
      	(event_after_callback): into here, it seems we get
      	the event after the callback whether handled or not.
      	(create_and_set_up_tree_view): unhook list_activate.
      
      2002-05-20  Michael Meeks  <michael@ximian.com>
      
      	* src/nautilus-window-menus.c
      	(refresh_bookmarks_menu): hold refs on the window,
      	in case we re-enter during bookmark build and destroy
      	it.
      fc8d249c
  12. 17 May, 2002 2 commits
    • Damon Chaplin's avatar
      new function to activate the selected items when Return is pressed, to · 7a004540
      Damon Chaplin authored
      2002-05-17  Damon Chaplin  <damon@ximian.com>
      
      	* src/file-manager/fm-list-view.c (key_press_callback): new function
      	to activate the selected items when Return is pressed, to match the
      	icon view. Fixes bug #74976.
      7a004540
    • Michael Meeks's avatar
      require libbonoboui >= 1.116.1 [ CVS ] · a8708eb8
      Michael Meeks authored
      2002-05-17  Michael Meeks  <michael@ximian.com>
      
      	* configure.in: require libbonoboui >= 1.116.1 [ CVS ]
      
      	* src/file-manager/fm-list-model.c
      	(fm_list_model_clear): add pre-condition.
      
      	* src/file-manager/fm-list-view.c
      	(create_and_set_up_tree_view): hold a ref on the model.
      	(fm_list_view_dispose): impl.
      	(fm_list_view_class_init): upd.
      	(fm_list_view_clear): only clear a non NULL model.
      
      	* src/file-manager/fm-icon-view.c
      	(get_icon_container): return NULL if we've no container.
      	(fm_icon_view_clear): tolerate a NIL icon_container
      	( on a 2nd dispose perhaps )
      
      	* libnautilus-private/nautilus-directory-background.c
      	(nautilus_file_background_read_desktop_settings): check
      	the wallpaper_filename is not empty.
      
      	* src/file-manager/fm-directory-view.c
      	(fm_directory_view_destroy): hoist pointer
      	NULLification up the method.
      
      2002-05-16  Michael Meeks  <michael@ximian.com>
      
      	* libnautilus-private/nautilus-bookmark.c
      	(nautilus_bookmark_get_pixmap_and_mask): kill, unused.
      a8708eb8
  13. 13 May, 2002 1 commit
    • David Emory Watson's avatar
      Update to use click_policy_auto_value. (rows_reordered_callback): Renamed · eb5a45f8
      David Emory Watson authored
      
      2002-05-10  David Emory Watson  <dwatson@cs.ucr.edu>
      
      	* src/file-manager/fm-list-view.c:
      	(list_activate_callback),
      	(click_policy_changed),
      	(fm_list_view_class_init): Update to use click_policy_auto_value.
      	(rows_reordered_callback): Renamed to
      	(sort_column_changed_callback): this and only write preferences to disk
      	if they differ from the defaults.
      	(default_sort_order_changed_callback)
      	(fm_list_view_instance_init): React to changes in the defaults.
      
      	* src/file-manager/fm-list-model.c:
      	* src/file-manager/fm-list-model.h:
      	(fm_list_model_get_nautilus_file_sort_type): Renamed to
      	(fm_list_model_get_sort_type_from_sort_column_id): this.
      	(fm_list_model_compare_func): Update.
      	(fm_list_model_add_file): Update.
      eb5a45f8
  14. 05 May, 2002 1 commit
    • David Emory Watson's avatar
      Make list view default to 75% zoom to get "nice" looking font size while · 70fac9c9
      David Emory Watson authored
      2002-05-05  David Emory Watson  <dwatson@cs.ucr.edu>
      
      	* libnautilus-private/nautilus-global-preferences.c: Make list view
      	default to 75% zoom to get "nice" looking font size while maintaining
      	range of different font sizes.
      
      	* src/file-manager/fm-list-view.c:
      	(button_press_callback): Don't let the list view unselect anything when
      	the user attempts to get the right-click menu on a selection.
      	(fm_list_view_set_zoom_level): Invent equivalent of XXX_LARGE and make
      	the font size at all zoom levels one bigger.
      70fac9c9
  15. 02 May, 2002 1 commit
    • David Emory Watson's avatar
      Implement zooming for the list view and other small cleanups. · 987a36d4
      David Emory Watson authored
      2002-05-01  David Emory Watson  <dwatson@cs.ucr.edu>
      
      	Implement zooming for the list view and other small cleanups.
      
      	* src/file-manager/fm-list-view.c:
      	(create_and_set_up_tree_view): Keep track of cell renderers.
      	(fm_list_view_begin_loading): Set initial zoom level.
      	(set_zoom_level_from_metadata_and_preferences),
      	(fm_list_view_set_zoom_level),
      	(fm_list_view_bump_zoom_level),
      	(fm_list_view_zoom_to_level),
      	(fm_list_view_restore_default_zoom_level),
      	(fm_list_view_can_zoom_in),
      	(fm_list_view_can_zoom_out),
      	(default_zoom_level_changed): Impl.
      	(fm_list_view_class_init): Hook up zoom auto value.
      	(fm_list_view_instance_init): Use while_alive to monitor changes to
      	default_zoom_level and click_policy.
      	(fm_list_view_finalize): Update click_policy callback.
      
      	Added a column for each pixbuf size to the model.
      
      	* src/file-manager/fm-list-model.c,
      	src/file-manager/fm-list-model.h:
      	(fm_list_model_get_column_type): Update.
      	(fm_list_model_get_column_id_from_zoom_level),
      	(fm_list_model_get_zoom_level_from_column_id): Impl.
      	(fm_list_model_get_value): Update.
      987a36d4
  16. 24 Apr, 2002 1 commit
  17. 18 Apr, 2002 1 commit
    • Anders Carlsson's avatar
      Remove NAUTILUS_PREFERENCES_CAN_ADD_CONTENT. · f8239032
      Anders Carlsson authored
      2002-04-19  Anders Carlsson  <andersca@gnu.org>
      
      	* libnautilus-private/nautilus-global-preferences.c:
      	* libnautilus-private/nautilus-global-preferences.h:
      	Remove NAUTILUS_PREFERENCES_CAN_ADD_CONTENT.
      
      	* src/file-manager/fm-list-view.c: (event_after_callback),
      	(button_release_callback), (create_and_set_up_tree_view):
      	When in single-click mode, activate files on button release
      	instead of button press.
      
      	* src/nautilus-property-browser.c:
      	(nautilus_property_browser_init),
      	(nautilus_property_browser_destroy),
      	(nautilus_property_browser_new),
      	(nautilus_color_selection_dialog_new), (add_new_pattern),
      	(add_color_to_browser), (show_color_selection_window),
      	(nautilus_property_browser_update_contents):
      	Fix the add and remove dialogs and add a few mnemonics. Fixes
      	#79123.
      
      	* src/nautilus-sidebar-title.c: (update_title), (update_more_info),
      	(update_emblems), (update_notes):
      	Remove fixed FIXMEs.
      f8239032
  18. 10 Apr, 2002 1 commit
    • David Emory Watson's avatar
      Fix mixed up comparison. (set_sort_order_from_metadata_and_preferences), · f29d7eec
      David Emory Watson authored
      2002-04-07  David Emory Watson  <dwatson@cs.ucr.edu>
      
      	* src/file-manager/fm-list-model.c:
      	(fm_list_model_add_file): Fix mixed up comparison.
      	(set_sort_order_from_metadata_and_preferences),
      	(fm_list_view_reset_to_defaults): Should be GTK_SORT_DESCENDING when
      	sort_reversed, bug 77174.
      	* src/file-manager/fm-list-view.c:
      	(fm_list_view_finalize): Oops, I screwed up the disconnect last time...
      f29d7eec
  19. 08 Apr, 2002 1 commit
  20. 05 Apr, 2002 1 commit
    • David Emory Watson's avatar
      This fixes single click activation in the list view, bug 76197. · 6c7f6cd6
      David Emory Watson authored
      2002-03-30  David Emory Watson  <dwatson@cs.ucr.edu>
      
      	This fixes single click activation in the list view, bug 76197.
      
      	* src/file-manager/fm-list-view.c:
      	(list_activate_callback): only do this if the double click activation
      	preference is set.
      	(event_after_callback): handle single click activation preference.
      	(click_policy_changed): new function to handle whether file names
      	are underlined or not.
      	(create_and_set_up_tree_view): connect click policy preference callback
      	(fm_list_view_finalize): disconnect.
      6c7f6cd6
  21. 11 Mar, 2002 1 commit
    • Anders Carlsson's avatar
      Move the "Rename" verb into fm-directory-view and implement rename · 9e0012f1
      Anders Carlsson authored
      2002-03-11  Anders Carlsson  <andersca@gnu.org>
      
      	* src/file-manager/fm-directory-view.c: (process_old_files),
      	(queue_pending_files), (fm_directory_view_can_rename_file),
      	(can_rename_file), (start_renaming_file),
      	(reveal_newly_added_folder), (rename_file_callback),
      	(real_merge_menus), (real_update_menus),
      	(fm_directory_view_class_init):
      	* src/file-manager/fm-directory-view.h:
      	* src/file-manager/fm-icon-view.c:
      	(fm_icon_view_can_rename_file), (fm_icon_view_start_renaming_file),
      	(fm_icon_view_merge_menus), (fm_icon_view_update_menus),
      	(fm_icon_view_class_init):
      	* src/file-manager/fm-list-model.c:
      	(fm_list_model_get_column_type), (fm_list_model_get_value):
      	* src/file-manager/fm-list-model.h:
      	* src/file-manager/fm-list-view.c: (cell_renderer_edited),
      	(create_and_set_up_tree_view), (fm_list_view_start_renaming_file),
      	(fm_list_view_class_init):
      	* src/file-manager/nautilus-directory-view-ui.xml:
      	* src/file-manager/nautilus-icon-view-ui.xml:
      	Move the "Rename" verb into fm-directory-view and implement rename
      	callbacks for both the list and icon view.
      9e0012f1
  22. 07 Mar, 2002 2 commits
    • Darin Adler's avatar
      Because lots of recent bugs were due to "signal handler called after · 136742e4
      Darin Adler authored
      	* Tons of files:
      	Because lots of recent bugs were due to "signal handler called after
      	object gone" problems, switched many calls of g_signal_connect and
      	g_signal_connect_swapped to use g_signal_connect_object instead.
      	Also did other signal-related cleanup and changed some destroys to
      	finalizes.
      
      	* libnautilus/nautilus-view-standard-main.h:
      	We no longer need to include nautilus-view.h in here. So include it
      	in the files that use this instead.
      
      	Did merges from stable branch:
      
      	2001-10-25  Darin Adler  <darin@bentspoon.com>
      
              * libnautilus-private/nautilus-directory.c:
              (call_files_changed_common), (call_files_changed_free_list),
              (call_files_changed_unref_free_list),
              (nautilus_directory_notify_files_changed): Move call to
              nautilus_directory_add_file_to_work_queue into a better
              bottleneck; now it catches all the notify cases, not just changed.
              Also tell it to re-get top-left text and link info too when we get
              a changed notice.
      
              * src/file-manager/fm-directory-view.c: (queue_pending_files):
              Don't use the timeout (and the hysteresis) when queuing files once
              the initial directory load is complete. Doing this was causing
              delays processing changes that came in later, which we don't want.
      
              * src/nautilus-sidebar-title.c: (item_count_ready), (monitor_add),
      	(update_all), (nautilus_sidebar_title_set_file): Monitor the
      	directory count once we get it the first time. This makes sure
      	that changes in the directory count get reflected in the sidebar
      	without creating a race with the main view to see who calculates
      	it first.
      
      	2001-10-25  Alex Larsson  <alexl@redhat.com>
      
              * libnautilus-private/nautilus-directory.c
      	(nautilus_directory_notify_files_changed): Call
      	nautilus_directory_add_file_to_work_queue() when file_info is
      	invalidated.  Otherwise it will not be read again.
      136742e4
    • Alexander Larsson's avatar
      (merges from stable): · abf700ab
      Alexander Larsson authored
      2002-03-06  Alexander Larsson  <alla@lysator.liu.se>
      
      	(merges from stable):
      
      	* libnautilus-private/nautilus-monitor.c:
      	(process_fam_notifications): Tweak comment.
      
      	* src/nautilus-window-manage-views.c:
      	(cancel_viewed_file_changed_callback), (update_for_new_location):
      	Monitor the existence of the currently viewed file, so we notice
      	when the file is deleted.
      
              * src/file-manager/fm-directory-view.h:
      	Add emblems_changes method.
      
              * src/file-manager/fm-directory-view.c:
      	(file_changed_callback): Call emblems_changed.
      	(fm_directory_view_add_relative_emblems_to_exclude,
      	real_get_emblem_names_to_exclude):
      	exclude non-writable emblems if directory is not
      	writable.
      
      	* src/file-manager/fm-icon-view.c:
      	Implement emblem_changes.
      
      	* src/file-manager/fm-list-view.c:
      	Add GNOME2_CONVERSION_COMPLETE where the emblem icon
      	update is needed.
      abf700ab
  23. 06 Mar, 2002 1 commit
    • Michael Meeks's avatar
      don't try to set properties on a remote container that is being / has been · 7f7c846b
      Michael Meeks authored
      2002-03-06  Michael Meeks  <michael@ximian.com>
      
      	* src/file-manager/fm-icon-view.c
      	(fm_icon_view_update_menus): don't try to set properties
      	on a remote container that is being / has been torn down.
      
      	* libnautilus-private/nautilus-global-preferences.c
      	(default_icon_view_sort_order_or_manual_layout_changed_callback),
      	(nautilus_global_preferences_set_default_folder_viewer),
      	(default_folder_viewer_changed_callback): upd. for enum code.
      
      	* libnautilus-private/nautilus-icon-canvas-item.c
      	(nautilus_icon_canvas_item_class_init): use
      	eel_preferences_add_auto_enum instead of auto_int.
      
      	* src/file-manager/fm-list-view.c
      	(fm_list_view_class_init): ditto.
      
      	* src/file-manager/fm-icon-view.c
      	(get_default_sort_order, get_default_zoom_level_font_size),
      	(get_default_zoom_level, fm_icon_view_init): ditto.
      
      	* libnautilus-private/nautilus-thumbnails.c
      	(prefer_global_thumbnails_location): ditto.
      
      	* libnautilus-private/nautilus-icon-factory.c
      	(should_display_image_file_as_itself): ditto.
      
      	* libnautilus-private/nautilus-icon-container.c
      	(nautilus_icon_container_class_init): ditto.
      
      2002-03-05  Michael Meeks  <michael@ximian.com>
      
      	* components/music/nautilus-music-view.c
      	(nautilus_music_view_init): use
      	eel_preferences_get_enum instead of get_integer
      
      	* src/nautilus-switchable-search-bar.c
      	(nautilus_search_uri_to_search_bar_mode),
      	(nautilus_switchable_search_bar_new): ditto.
      
      	* src/file-manager/fm-icon-view.c
      	(fm_icon_view_update_click_mode): ditto.
      
      	* src/file-manager/fm-directory-view.c
      	(get_executable_text_file_action): ditto.
      
      	* libnautilus-private/nautilus-metafile.c
      	(can_use_public_metafile): ditto.
      
      	* libnautilus-private/nautilus-file.c
      	(show_directory_item_count_changed_callback),
      	(show_text_in_icons_changed_callback): use get_enum
      
      	* libnautilus-private/nautilus-global-preferences.c
      	(preference_defaults): add the PREFERENCE_ENUM type
      	and make this a string, as GConf expects.
      
      	* configure.in: add the GConf magic.
      
      	* libnautilus-private/Makefile.am (schemadir):
      	add schema installation bits.
      7f7c846b
  24. 05 Mar, 2002 5 commits
    • Darin Adler's avatar
      New. (tree_selection_not_empty): New. (tree_view_has_selection): New. · 84c9b32b
      Darin Adler authored
              * src/file-manager/fm-list-view.c:
              (tree_selection_foreach_set_boolean): New.
              (tree_selection_not_empty): New.
              (tree_view_has_selection): New.
              (event_after_callback): Handle only clicks in the bin_window.
              Also, decide which menu to display by whether an item is selected
              or not rather than by where the click is.
              (button_press_callback): Deselect all items when you click on the
              background.
              (create_and_set_up_tree_view): Connect the new handler.
      84c9b32b
    • Anders Carlsson's avatar
      Display the background context menu if no item is selected. · e697f507
      Anders Carlsson authored
      2002-03-05  Anders Carlsson  <andersca@gnu.org>
      
      	* src/file-manager/fm-list-view.c
      	(event_after_callback):
      	Display the background context menu if no item is
      	selected.
      e697f507
    • Darin Adler's avatar
      Fix a stray NautilusFile unref that could cause big trouble. · cbd843d8
      Darin Adler authored
      	* src/file-manager/fm-directory-view.c: (real_file_limit_reached):
      	Fix a stray NautilusFile unref that could cause big trouble.
      
      	* src/file-manager/fm-list-view.c: (event_after_callback): New,
      	puts up a menu when you right-click.
      	(create_and_set_up_tree_view): Attach new handler.
      	(fm_list_view_reset_to_defaults): Make this compile.
      cbd843d8
    • Darin Adler's avatar
      Put a default one in here, since there are only really icon locations for · e839e479
      Darin Adler authored
      	* src/file-manager/fm-directory-view.c:
      	(real_get_selected_icon_locations): Put a default one in here, since
      	there are only really icon locations for FMIconView.
      	(fm_directory_view_class_init): Set up default get_selected_icon_locations.
      
      	* src/file-manager/fm-list-model.c:
      	(fm_list_model_get_sort_column_id_from_attribute): Allow NULL.
      	(fm_list_model_get_sort_column_id_from_sort_type): Handle all types.
      
      	* src/file-manager/fm-list-view.c:
      	(set_sort_order_from_metadata_and_preferences): Fix to handle unknown
      	values in metadata.
      	(fm_list_view_reset_to_defaults): New.
      	(fm_list_view_class_init): Hoom up the new reset_to_defaults function.
      e839e479
    • Darin Adler's avatar
      Formatting tweaks. · c3955f71
      Darin Adler authored
      	* src/file-manager/fm-directory-view.c: Formatting tweaks.
      
      	* src/file-manager/fm-list-model.c: (remove_link_saving_prev):
      	Fix bug where it would skip every other node.
      
      	* src/file-manager/fm-list-view.c: (fm_list_view_select_all): New.
      	(fm_list_view_class_init): Add placeholders for things we need to
      	implement to satisfy FMDirectoryView. Implement one: select all.
      c3955f71
  25. 05 Feb, 2002 1 commit
    • Darin Adler's avatar
      Remove. Remove. Remove. Remove. Remove. · 61fe873c
      Darin Adler authored
      	* components/tree/nautilus-tree-change-queue.c: Remove.
      	* components/tree/nautilus-tree-change-queue.h: Remove.
      	* components/tree/nautilus-tree-view-dnd.c: Remove.
      	* components/tree/nautilus-tree-view-dnd.h: Remove.
      	* components/tree/nautilus-tree-view-private.h: Remove.
      
      	* libnautilus-private/Makefile.am:
      	* libnautilus-private/nautilus-dnd.c:
      	* libnautilus-private/nautilus-dnd.h:
      	Move eel-dnd.[ch] back into Nautilus, because it currently is
      	completely file-manager-specific.
      
      	* libnautilus-private/nautilus-file-dnd.c:
      	* libnautilus-private/nautilus-file-dnd.h:
      	* libnautilus-private/nautilus-icon-dnd.c:
      	* libnautilus-private/nautilus-icon-dnd.h:
      	* src/file-manager/fm-icon-view.c:
      	* src/file-manager/fm-list-view.c:
      	Change to use eel-dnd.[ch] in their new location in Nautilus.
      
      	* src/file-manager/fm-directory-view.c: Add included needed due
      	to include changes.
      61fe873c
  26. 25 Jan, 2002 1 commit
    • Darin Adler's avatar
      GNOME2_CONVERSION_COMPLETE eradication campaign · cae57667
      Darin Adler authored
      	* libnautilus-private/nautilus-icon-factory.c: (cache_icon_new):
      	No last_unref_handler any more.
      	(cache_icon_unref): Just keep one ref for the factory, just like
      	in the old days, since we don't have a "last_unref_handler" any
      	more.
      	(nautilus_icon_factory_possibly_free_cached_icon): Look at
      	ref_count rather than looking at "outstanding" flag.
      	(nautilus_icon_factory_get_pixbuf_for_icon): Just ref, no fancy
      	"oustanding" logic.
      	(embed_text): Rewrite to use Pango.
      
      	* src/file-manager/fm-list-model.h: Tweak formatting and order.
      	* src/file-manager/fm-list-model.c: Tweak formatting and order.
      	* src/file-manager/fm-list-view.h: Tweak formatting and order.
      	* src/file-manager/fm-list-view.c: Tweak formatting and order.
      
      	* src/file-manager/fm-properties-window.c:
      	(select_image_button_callback): Turn this code back on.
      
      	* src/nautilus-bookmarks-window.c: (on_row_move): Remove puts.
      
      	* src/nautilus-complex-search-bar.c:
      	(nautilus_complex_search_bar_queue_resize): GnomeDock -> BonoboDock.
      
      	* src/nautilus-property-browser.c: (nautilus_emblem_dialog_new):
      	Finish porting to GtkDialog.
      	(nautilus_color_selection_dialog_new): Finish porting to
      	GtkDialog.
      	(add_new_pattern): Re-enable some code.
      	(labeled_image_configure): Re-enable some code, take out other stuff.
      	(labeled_image_new): Take out some dead code.
      	(property_browser_category_button_new): Take out some dead code.
      
      	* src/nautilus-sidebar-tabs.c: (tab_item_destroy),
      	(tab_indicator_changed_callback),
      	(nautilus_sidebar_tabs_connect_view):
      	Use a listener object now, not a listener ID.
      
      	* src/nautilus-simple-search-bar.c:
      	(nautilus_simple_search_bar_class_init): Remove some undo code.
      
      	* src/nautilus-switchable-navigation-bar.c:
      	(nautilus_switchable_navigation_bar_set_mode): GnomeDock -> BonoboDock.
      
      	* src/nautilus-switchable-search-bar.c:
      	(nautilus_switchable_search_bar_set_mode): GnomeDock -> BonoboDock.
      
      	* src/nautilus-view-frame.c: (destroy_view): Make deregister code use
      	the BonoboUIEngine instead of the BonoboWindow.
      cae57667
  27. 17 Jan, 2002 1 commit
    • Anders Carlsson's avatar
      New file. · cb1f493d
      Anders Carlsson authored
      2002-01-17  Anders Carlsson  <andersca@gnu.org>
      
      	* src/file-manager/fm-list-model.c: New file.
      
      	* src/file-manager/fm-list-model.h: New file.
      
      	* src/file-manager/fm-list-view.c: Port to GtkTreeView.
      
      	* src/file-manager/fm-list-view.h: Port to GtkTreeView.
      
      	* src/file-manager/fm-directory-view.c (fm_directory_view_destroy):
      	Stop and clear the directory view before setting view to NULL because
      	clearing the directory when nautilus_view is NULL can trigger an assertion.
      cb1f493d
  28. 09 Jan, 2002 1 commit
    • Darin Adler's avatar
      Some destroy/finalize fixes. · 47c7d714
      Darin Adler authored
      	* src/file-manager/fm-directory-view.c:
      	(fm_directory_view_destroy), (fm_directory_view_finalize),
      	(fm_directory_view_class_init):
      	* src/file-manager/fm-icon-view.c: (fm_icon_view_finalize),
      	(fm_icon_view_class_init):
      	* src/file-manager/fm-list-view.c: (fm_list_view_class_init),
      	(fm_list_view_finalize):
      	Some destroy/finalize fixes.
      47c7d714
  29. 08 Jan, 2002 1 commit
    • Darin Adler's avatar
      Fixed to use g_iconv instead of iconv, starting with a patch from Jean · 81054a09
      Darin Adler authored
      	* libnautilus-private/nautilus-desktop-file-loader.c:
      	(validated_strdup): Fixed to use g_iconv instead of iconv,
      	starting with a patch from Jean Schurger <jschurger@schurger.org>.
      
      	* libnautilus-private/nautilus-font-factory.c: Remove.
      	* libnautilus-private/nautilus-font-factory.h: Remove.
      	* libnautilus-private/Makefile.am:
      	Remove nautilus-font-factory.[ch].
      
      	* libnautilus-private/nautilus-icon-canvas-item.c:
      	(nautilus_icon_canvas_item_finalize),
      	(nautilus_icon_canvas_item_set_arg),
      	(nautilus_icon_canvas_item_get_arg), (draw_or_measure_label_text),
      	(nautilus_icon_canvas_item_class_init):
      	Get rid of the "font" arg. We'll have to replace this with something
      	that works with Pango -- maybe just a font name.
      
      	* src/file-manager/fm-list-view.c: (truncate_middle_callback),
      	(get_cell_text): Turn off the GdkFont ellipsizing code. I hope this
      	just goes away when Anders finishes his port to GtkTextView.
      
      	* src/file-manager/fm-properties-window.c:
      	(fm_properties_window_class_init), (real_destroy), (real_finalize):
      	Fix a bug where it would try to disconnect a signal on an object
      	that is already NULL by that time.
      
      	* src/nautilus-profiler.c:
      	(nautilus_profiler_bonobo_ui_report_callback): Disable the dump
      	window, pending a port to GtkTextView instead of GtkText.
      
      	* components/music/nautilus-music-view.c:
      	* components/news/nautilus-news.c:
      	* components/notes/nautilus-notes.c:
      	* components/text/nautilus-text-view.c:
      	* libnautilus-private/nautilus-file-operations-progress.c:
      	* libnautilus-private/nautilus-file-operations.c:
      	* libnautilus-private/nautilus-icon-container.c:
      	* src/file-manager/fm-icon-view.c:
      	* src/nautilus-sidebar-title.c:
      	Get rid of some includes of unused headers.
      81054a09
  30. 12 Dec, 2001 1 commit
    • Michael Meeks's avatar
      protect vs. double destroy. · f9769d4c
      Michael Meeks authored
      2001-12-12  Michael Meeks  <michael@ximian.com>
      
      	* src/nautilus-window.c (nautilus_window_destroy):
      	protect vs. double destroy.
      
      	* src/nautilus-window-manage-views.c (disconnect_view):
      	start macro definitions on the first line.
      
      	* src/nautilus-sidebar.c (nautilus_sidebar_destroy):
      	protect vs. double destroy.
      
      	* src/nautilus-sidebar-tabs.c
      	(nautilus_sidebar_tabs_destroy): protect vs. double destroy
      	and theoretical re-enterancy hazard.
      
      	* src/nautilus-sidebar-title.c
      	(nautilus_sidebar_title_destroy): protect vs. double
      	destroys.
      
      	* src/nautilus-application.c (create_object): re-enable
      	list view.
      
      	* src/file-manager/fm-list-view.c: re-enable.
      f9769d4c
  31. 09 Nov, 2001 1 commit