1. 28 Jul, 2000 1 commit
    • Pavel Cisler's avatar
      Bug 1561: Font preferences have no effect on the list view. · bb7871f8
      Pavel Cisler authored
      2000-07-27  Pavel Cisler  <pavel@eazel.com>
      
      	Bug 1561: Font preferences have no effect on the list view.
      
      	* src/file-manager/fm-directory-view.c:
      	(text_attribute_names_changed_callback),
      	(directory_view_font_family_changed_callback),
      	(click_policy_changed_callback),
      	(anti_aliased_mode_changed_callback),
      	(fm_directory_view_initialize), (fm_directory_view_destroy):
      	* src/file-manager/fm-directory-view.h:
      	* src/file-manager/fm-icon-view.c: (fm_icon_view_destroy),
      	(fm_icon_view_text_attribute_names_changed),
      	(fm_icon_view_font_family_changed),
      	(fm_icon_view_click_policy_changed),
      	(fm_icon_view_anti_aliased_mode_changed),
      	(fm_icon_view_initialize_class), (fm_icon_view_initialize),
      	(fm_icon_view_update_icon_container_fonts):
      
      	Moved all the registering of preference change callbacks into
      	FMDirectoryView.
      	Added default signal handlers that get called for each preference
      	item change.
      	Converted original preference change callbacks into default signal
      	handler overrides in FMDirectoryView.
      
      	* src/file-manager/fm-list-view.c: (fm_list_view_initialize_class),
      	(fm_list_view_initialize), (fm_list_view_destroy),
      	(fm_list_view_setup_list), (fm_list_view_update_click_mode),
      	(fm_list_view_font_family_changed):
      	Removed extra preference change callback setup calls, they are now
      	all done in FMDirectoryView for both the icon view and list view.
      	Added a simple font family changed callback that sets the selected
      	font.
      	Called it during list view initialization to make sure the list view
      	comes up with the right saved font.
      bb7871f8
  2. 27 Jul, 2000 1 commit
    • Pavel Cisler's avatar
      Bug 1792 - "New Terminal" command in menus. Added a menu item to the · 0c1ccd7e
      Pavel Cisler authored
      2000-07-27  Pavel Cisler  <pavel@eazel.com>
      
      	* src/file-manager/fm-desktop-icon-view.c:
      	(new_terminal_menu_item_callback),
      	(fm_desktop_icon_view_create_background_context_menu_items):
      	Bug 1792 - "New Terminal" command in menus.
      	Added a menu item to the desktop context menu to start a new
      	terminal.
      
      	* libnautilus-extensions/nautilus-gnome-extensions.c:
      	* libnautilus-extensions/nautilus-gnome-extensions.h:
      	(max_open_files), (nautilus_gnome_terminal_shell_execute),
      	(nautilus_gnome_open_terminal):
      	For the above, added a call to launch a new Terminal, pieced together
      	from the origina GMC code, getting rid of some cruft we do not
      	need and using stock glib calls where possible.
      
      	* src/file-manager/fm-directory-view.c:
      	(new_folder_menu_item_callback), (fm_directory_view_add_menu_item),
      	(fm_directory_view_real_create_background_context_menu_items),
      	(fm_directory_view_real_create_selection_context_menu_items):
      	* src/file-manager/fm-directory-view.h:
      	Did a part of 1063 - "The right click desktop menu needs more commands
      	to match gmc" that is not covered by a separate bug - added a "New
      	Folder" menu item.
      	Fixes 1065 and 1067.
      
      	* src/file-manager/dfos-xfer-progress-dialog.c:
      	(create_titled_label), (dfos_xfer_progress_dialog_initialize):
      	Complete task 1504 - Copy progress dialog needs a visual redesign.
      	Made it so that the Copying:, From: and To: lines are packed more
      	snugly, as per the design. The spacing of the original GtkLabels
      	was too spacy.
      	Used a non-zero border to offset the items more from the dialog edges
      	to make it look more as designed.
      0c1ccd7e
  3. 25 Jul, 2000 1 commit
    • Andy Hertzfeld's avatar
      reorganized the menus. Added a user level menu and removed the settings · 2cadd3ec
      Andy Hertzfeld authored
      
      
      	reorganized the menus.  Added a user level menu and removed the
      	settings menu, moving remaining items to the bottom of the edit
      	menu.  Added symbols to reflect the user levels, and made the
      	menu use the symbol of the current level as it's title.
      	Tweaked the text box for the eazel theme document icon, too.
      2cadd3ec
  4. 18 Jul, 2000 1 commit
    • Darin Adler's avatar
      Another field needed to be initialized to 0, so I used g_new0. · f8c0f0a9
      Darin Adler authored
      	* libnautilus-extensions/nautilus-stock-dialogs.c:
      	(nautilus_timed_wait_start): Another field needed to be
      	initialized to 0, so I used g_new0.
      
      	* src/file-manager/fm-desktop-icon-view.c:
      	(fm_desktop_icon_view_create_background_context_menu_items):
      	Call nautilus_application_close_desktop directly instead of
      	doing it through FMDirectoryView.
      
      	* src/file-manager/fm-directory-view.c:
      	(fm_directory_view_get_uri),
      	(fm_directory_view_can_accept_item): g_return_val_if_fail
      	is better than g_assert for parameter checking on public
      	calls.
      	(fm_directory_view_get_context_menu_index): Menu paths are
      	hard-coded strings, so use strcmp, not g_strcasecmp.
      
      	* src/file-manager/fm-directory-view.h:
      	* src/file-manager/fm-directory-view.c:
      	Get rid of the FMDirectoryView cover for turning off
      	Nautilus's desktop management. Callers can just use the
      	NautilusApplication call directly.
      f8c0f0a9
  5. 13 Jul, 2000 2 commits
    • Mike Engber's avatar
      Changed desktop menu to offer close desktop instead of quit nautilus. · 96835d31
      Mike Engber authored
      
      	* libnautilus/nautilus-view-component.idl:
      	* libnautilus/nautilus-view.c:
      	* libnautilus/nautilus-view.h:
      	* src/file-manager/fm-desktop-icon-view.c:
      	(fm_desktop_icon_view_close_desktop_menu_item_callback),
      	(fm_desktop_icon_view_create_background_context_menu_items):
      	* src/file-manager/fm-directory-view.c:
      	(fm_directory_view_close_desktop):
      	* src/file-manager/fm-directory-view.h:
      	* src/nautilus-application.c: (nautilus_application_windows),
      	(nautilus_application_startup),
      	(nautilus_application_destroy_desktop_window),
      	(nautilus_application_create_desktop_window),
      	(nautilus_application_open_desktop),
      	(nautilus_application_close_desktop),
      	(nautilus_application_destroy_window),
      	(nautilus_application_create_window):
      	* src/nautilus-application.h:
      	* src/nautilus-desktop-window.c: (nautilus_desktop_window_new):
      	* src/nautilus-shell.c: (corba_manage_desktop):
      	* src/nautilus-view-frame-corba.c:
      	(impl_Nautilus_ViewFrame_set_title):
      	* src/nautilus-view-frame-private.h:
      	* src/nautilus-view-frame.c:
      	(nautilus_view_frame_initialize_class),
      	(nautilus_view_frame_set_title):
      	* src/nautilus-view-frame.h:
      	* src/nautilus-window-manage-views.c: (open_location):
      	* src/nautilus-window.c: (nautilus_window_connect_view):
      	Changed desktop menu to offer close desktop instead of
      	quit nautilus. Also, changed the menu item's action to
      	use a direct fn call instead of CORBA.
      96835d31
    • Darin Adler's avatar
      My apologies to all who read the cvs commits list that have · 2d38a2d7
      Darin Adler authored
      	suffered from my "spam" in the past (due to my use of emacs cvs
      	mode to commit).  I will never use emacs cvs mode again so you
      	will see each of my commits only once!
      
      	* src/file-manager/fm-error-reporting.c:
      	(rename_callback_data_free), (rename_callback),
      	(cancel_rename_callback), (fm_rename_file):
      	Finished the 1/2 done code for renaming.
      
      	* src/nautilus-main.c: (main): Removed the call to bonobo_shutdown
      	since Michael decided he won't do it this way any more.
      
      	* src/nautilus-window.c: (nautilus_window_destroy): Added code
      	to unref the UI handler to fix a leak.
      
      	* components/hardware/nautilus-hardware-view.h:
      	* components/loser/content/nautilus-content-loser.h:
      	* components/loser/sidebar/nautilus-sidebar-loser.h:
      	* components/mozilla/nautilus-mozilla-content-view.h:
      	* components/music/nautilus-music-view.h:
      	* components/rpmview/nautilus-rpm-view.h:
      	* components/services/install/lib/eazel-install-corba-callback.h:
      	* components/services/install/lib/eazel-install-public.h:
      	* components/services/install/nautilus-view/nautilus-service-install-view.h:
      	* components/services/inventory/nautilus-view/nautilus-inventory-view.h:
      	* components/services/login/nautilus-view/nautilus-login-view.h:
      	* components/services/startup/nautilus-view/nautilus-service-startup-view.h:
      	* components/services/summary/nautilus-view/nautilus-summary-view.h:
      	* components/services/time/nautilus-view/trilobite-eazel-time-view.h:
      	* components/services/time/service/trilobite-eazel-time-service-public.h:
      	* components/services/trilobite/libtrilobite/trilobite-root-helper.h:
      	* components/services/trilobite/libtrilobite/trilobite-service-passwordquery-public.h:
      	* components/services/trilobite/libtrilobite/trilobite-service-public.h:
      	* components/services/trilobite/sample/lib/sample-service-public.h:
      	* components/tree/nautilus-tree-view.h:
      	* libnautilus/nautilus-view.h:
      	* libnautilus/nautilus-zoomable.h:
      	* src/file-manager/fm-desktop-icon-view.h:
      	* src/file-manager/fm-directory-view.h:
      	* src/file-manager/fm-icon-view.h:
      	* src/file-manager/fm-list-view.h:
      	* src/nautilus-application.h:
      	* src/nautilus-shell.h:
      	* src/nautilus-view-frame.h:
      	Fixed a copied and pasted typo.
      2d38a2d7
  6. 12 Jul, 2000 1 commit
    • Mike Engber's avatar
      Hooked up the quit menu in the desktop context menu to quit Nautilus. Now, · a409c1bb
      Mike Engber authored
      
      	* libnautilus/nautilus-view-component.idl:
      	* libnautilus/nautilus-view.c: (nautilus_view_quit_nautilus):
      	* libnautilus/nautilus-view.h:
      	* src/file-manager/fm-desktop-icon-view.c:
      	(fm_desktop_icon_view_quit_menu_item_callback),
      	(fm_desktop_icon_view_create_background_context_menu_items):
      	* src/file-manager/fm-directory-view.c:
      	(fm_directory_view_quit_nautilus):
      	* src/file-manager/fm-directory-view.h:
      	* src/nautilus-application.c: (nautilus_application_startup),
      	(nautilus_application_destroy_window):
      	* src/nautilus-application.h:
      	* src/nautilus-desktop-window.c: (nautilus_desktop_window_new):
      	* src/nautilus-view-frame-corba.c:
      	(impl_Nautilus_ViewFrame_set_title),
      	(impl_Nautilus_ViewFrame_quit_nautilus):
      	* src/nautilus-view-frame-private.h:
      	* src/nautilus-view-frame.c:
      	(nautilus_view_frame_initialize_class),
      	(nautilus_view_frame_set_title),
      	(nautilus_view_frame_quit_nautilus):
      	* src/nautilus-view-frame.h:
      	* src/nautilus-window-manage-views.c:
      	(nautilus_window_load_content_view):
      	* src/nautilus-window.c: (nautilus_window_quit_nautilus_callback),
      	(nautilus_window_connect_view):
      	Hooked up the quit menu in the desktop context menu to quit Nautilus.
      	Now, if Nautilus is managing the desktop no default window is created
      	and Nautilus does not quit when the last window is closed - i.e. use
      	the quit menu item instead. Bugs 1050 and 1051.
      a409c1bb
  7. 27 Jun, 2000 2 commits
    • Mike Engber's avatar
      Removed zoom_to_default and zoom_parameters_changed. The nautilus-window · 888d3716
      Mike Engber authored
      
      	* libnautilus/nautilus-view-component.idl:
      	* libnautilus/nautilus-zoomable.c:
      	(impl_Nautilus_Zoomable__get_is_continuous),
      	(nautilus_zoomable_initialize_class), (nautilus_zoomable_get_arg),
      	(nautilus_zoomable_ensure_zoomable_frame):
      	* src/file-manager/fm-directory-view.c:
      	(fm_directory_view_initialize), (zoomable_zoom_to_fit_callback),
      	(fm_directory_view_set_zoom_level):
      	* src/file-manager/fm-directory-view.h:
      	* src/file-manager/fm-icon-view.c: (fm_icon_view_begin_loading),
      	(fm_icon_view_set_zoom_level), (fm_icon_view_bump_zoom_level),
      	(fm_icon_view_zoom_to_level),
      	(fm_icon_view_restore_default_zoom_level):
      	* src/file-manager/fm-list-view.c: (fm_list_view_bump_zoom_level),
      	(fm_list_view_zoom_to_level),
      	(fm_list_view_restore_default_zoom_level),
      	(fm_list_view_begin_loading), (fm_list_view_set_zoom_level):
      	* src/nautilus-view-frame.c:
      	(nautilus_view_frame_initialize_class),
      	(nautilus_view_frame_zoom_level_changed):
      	* src/nautilus-view-frame.h:
      	* src/nautilus-window.c: (zoom_to_fit_callback),
      	(nautilus_window_constructed),
      	(nautilus_window_zoom_level_changed_callback),
      	(nautilus_window_connect_view):
      	* src/nautilus-zoom-control.c:
      	(nautilus_zoom_control_class_initialize),
      	(nautilus_zoom_control_initialize),
      	(nautilus_zoom_control_button_press_event):
      	* src/nautilus-zoom-control.h:
      	* src/nautilus-zoomable-frame-corba.c:
      	(impl_Nautilus_ZoomableFrame_report_zoom_level_changed):
      	Removed zoom_to_default and zoom_parameters_changed.
      	The nautilus-window now queries the zoomable for max
      	and min before showing the zoom control.
      888d3716
    • Mike Engber's avatar
      Added report_zoom_parameters_changed to the zoomable interface. This · c108999d
      Mike Engber authored
      
      	* libnautilus-extensions/nautilus-gtk-extensions.c:
      	(nautilus_gtk_marshal_NONE__DOUBLE_DOUBLE_DOUBLE):
      	* libnautilus-extensions/nautilus-gtk-extensions.h:
      	* libnautilus/nautilus-view-component.idl:
      	* libnautilus/nautilus-zoomable.c:
      	(nautilus_zoomable_set_parameters),
      	(nautilus_zoomable_set_zoom_level):
      	* libnautilus/nautilus-zoomable.h:
      	* src/file-manager/fm-directory-view.c:
      	(fm_directory_view_set_zoom_level),
      	(fm_directory_view_set_zoom_parameters):
      	* src/file-manager/fm-directory-view.h:
      	* src/file-manager/fm-icon-view.c: (fm_icon_view_begin_loading),
      	(fm_icon_view_set_zoom_level), (fm_icon_view_init_zoom_params),
      	(fm_icon_view_bump_zoom_level), (fm_icon_view_zoom_to_level),
      	(fm_icon_view_restore_default_zoom_level):
      	* src/file-manager/fm-list-view.c: (fm_list_view_bump_zoom_level),
      	(fm_list_view_zoom_to_level),
      	(fm_list_view_restore_default_zoom_level),
      	(fm_list_view_begin_loading), (fm_list_view_set_zoom_level),
      	(fm_list_view_init_zoom_params):
      	* src/nautilus-view-frame-private.h:
      	* src/nautilus-view-frame.c:
      	(nautilus_view_frame_initialize_class),
      	(nautilus_view_frame_zoom_parameters_changed):
      	* src/nautilus-view-frame.h:
      	* src/nautilus-window.c:
      	(nautilus_window_zoom_level_changed_callback),
      	(nautilus_window_zoom_parameters_changed_callback),
      	(nautilus_window_connect_view):
      	* src/nautilus-zoom-control.c: (nautilus_zoom_control_initialize),
      	(draw_number_and_disable_arrows), (zoom_menu_callback),
      	(create_zoom_menu_item),
      	(nautilus_zoom_control_button_press_event),
      	(nautilus_zoom_control_set_zoom_level),
      	(nautilus_zoom_control_set_min_zoom_level),
      	(nautilus_zoom_control_set_max_zoom_level),
      	(nautilus_zoom_control_get_zoom_level),
      	(nautilus_zoom_control_get_min_zoom_level),
      	(nautilus_zoom_control_get_max_zoom_level):
      	* src/nautilus-zoom-control.h:
      	* src/nautilus-zoomable-frame-corba.c:
      	(impl_Nautilus_ZoomableFrame_report_zoom_level_changed),
      	(impl_Nautilus_ZoomableFrame_report_zoom_parameters_changed):
      	Added report_zoom_parameters_changed to the zoomable
      	interface. This allows the zoom control to get min/max
      	from the zoomable (as opposed to hard coding in values)
      	Also fixed the zoom control to now use just doubles.
      	Renamed the zoom_level_changed message to be report_zoom_level_changed
      	in accordance with convention.
      c108999d
  8. 20 Jun, 2000 1 commit
    • Mike Engber's avatar
      The zoom control is now driven by its zoomable. This corrected the most · bbc80787
      Mike Engber authored
      
      	* src/file-manager/fm-directory-view.c:
      	(fm_directory_view_report_zoom_level_changed):
      	* src/file-manager/fm-directory-view.h:
      	* src/file-manager/fm-icon-view.c: (fm_icon_view_begin_loading),
      	(fm_icon_view_set_zoom_level), (fm_icon_view_bump_zoom_level),
      	(fm_icon_view_zoom_to_level),
      	(fm_icon_view_restore_default_zoom_level):
      	* src/nautilus-view-frame.c: (nautilus_view_frame_load_client):
      	* src/nautilus-window.c:
      	(nautilus_window_zoom_level_changed_callback),
      	(nautilus_window_connect_view),
      	(nautilus_window_real_set_content_view):
      	* src/nautilus-zoom-control.c: (set_zoom_level),
      	(nautilus_zoom_control_button_press_event),
      	(nautilus_zoom_control_reset_zoom_level),
      	(nautilus_zoom_level_from_double),
      	(nautilus_zoom_control_set_zoom_level):
      	The zoom control is now driven by its zoomable. This corrected
      	the most visible problem - getting the correct initial state.
      	Previously, the zoomable never propagated any messages back
      	(not that anyone was listening for them anyway).
      bbc80787
  9. 14 Jun, 2000 2 commits
    • John Sullivan's avatar
      Fixed bug 173 (UI for reverting directory view background · 209786a1
      John Sullivan authored
      	to default). Added "Reset Background" to Settings and
      	context menu.
      
      	* libnautilus-extensions/nautilus-background.h:
      	* libnautilus-extensions/nautilus-background.c:
      	(nautilus_background_is_set), (nautilus_background_reset):
      	New functions for checking whether the background has
      	been set, and for resetting it to the uncustomized state.
      
      	* libnautilus-extensions/nautilus-directory-background.c:
      	(background_changed_callback), (directory_changed_callback):
      	Changed default metadata value from white to NULL.
      
      	* src/file-manager/fm-directory-view.h,
      	* src/file-manager/fm-directory-view.c:
      	(fm_directory_view_initialize_class), (reset_background_callback),
      	(fm_directory_view_get_background_widget),
      	(fm_directory_view_get_background), (compute_menu_item_info),
      	(append_gtk_menu_item_with_view), (append_selection_menu_subtree),
      	(fm_directory_view_real_create_background_context_menu_items),
      	(create_open_with_gtk_menu),
      	(fm_directory_view_real_create_selection_context_menu_items),
      	(insert_bonobo_menu_item), (insert_bonobo_menu_subtree),
      	(reset_bonobo_trash_delete_menu), (reset_bonobo_open_with_menu),
      	(fm_directory_view_real_merge_menus), (update_one_menu_item),
      	(fm_directory_view_real_update_menus): Put "Reset Background"
      	menu item in Settings menu and context menu; keep its
      	sensitivity synched with background state.
      
      	* src/file-manager/fm-icon-view.c:
      	(fm_icon_view_get_background_widget): New function to let
      	superclass get at the NautilusBackground.
      	(fm_icon_view_initialize_class): Wire up new function.
      	(fm_icon_view_initialize), (create_icon_container): Remove
      	unused return value for create_icon_container.
      
      	* src/file-manager/fm-list-view.c:
      	(fm_list_view_get_background_widget): New function to let
      	superclass get at the NautilusBackground.
      	(fm_list_view_initialize_class): Wire up new function.
      	(create_list): Remove unused return value.
      209786a1
    • Andy Hertzfeld's avatar
      made it display the file name in the status bar at low zoom levels · 39dc650f
      Andy Hertzfeld authored
      
      	made it display the file name in the status bar at low zoom levels
      39dc650f
  10. 13 Jun, 2000 2 commits
    • Gene Z. Ragan's avatar
      Fixed bug #306, right click menu in zoom control doesn't work. The menu · e94b24a5
      Gene Z. Ragan authored
      2000-06-13  Gene Z. Ragan  <gzr@eazel.com>
      
      	Fixed bug #306, right click menu in zoom control doesn't work.
      	The menu now works.
      
      	* libnautilus/nautilus-view-component.idl:
      	Added zoom_to_level interface.
      
      	* libnautilus/nautilus-zoomable.c:
      	(impl_Nautilus_Zoomable_zoom_to_level):
      	(nautilus_zoomable_initialize_class):
      	Implimentation of zoom_to_level interface
      
      	* src/file-manager/fm-directory-view.c:
      	* src/file-manager/fm-directory-view.h:
      	(fm_directory_view_initialize_class),
      	(fm_directory_view_initialize), (zoomable_zoom_to_level_callback),
      	(fm_directory_view_zoom_to_level):
      	Added signal handling and callback for new ZOOM_TO_LEVEL signal.
      
      	* src/file-manager/fm-icon-view.c:
      	(fm_icon_view_zoom_to_level),
      	(fm_icon_view_initialize_class):
      	ZOOM_TO_LEVEL handling.
      
      	* src/file-manager/fm-list-view.c: (fm_list_view_initialize_class),
      	(fm_list_view_zoom_to_level),
      	(fm_list_view_restore_default_zoom_level):
      	ZOOM_TO_LEVEL handling.
      
      	* src/nautilus-view-frame.c:
      	* src/nautilus-view-frame.h:
      	(nautilus_view_frame_zoom_to_level):
      	New public function for zoom to level.
      
      	* src/nautilus-window.c:
      	(zoom_to_level_callback):
      	Yes, a zoom to level callback.
      
      	* src/nautilus-zoom-control.c:
      	* src/nautilus-zoom-control.h:
      	(nautilus_zoom_control_class_initialize), (zoom_menu_callback),
      	(create_zoom_menu), (set_zoom_level):
      	Enabled context zoom menu functionality.
      e94b24a5
    • Gene Z. Ragan's avatar
      Fixed bug #305. CLicking in center of zoom control does not change zoom · 9bcb90f3
      Gene Z. Ragan authored
      2000-06-13  Gene Z. Ragan  <gzr@eazel.com>
      
      	Fixed bug #305.  CLicking in center of zoom control
      	does not change zoom level.
      
      	Clicking in the center of the zoom control emits a ZOOM_DEFAULT
      	signal.  It is up to each view that connects to this signal
      	to determine what is the default zoom setting.  Right now, all
      	views are using NAUTILUS_ZOOM_LEVEL_STANDARD.  This could be
      	changed to a zoom level better suited for the view.
      
      	* libnautilus/nautilus-view-component.idl:
      	Added zoom_default interface.
      
      	* libnautilus/nautilus-zoomable.c:
      	* libnautilus/nautilus-zoomable.h:
      	(impl_Nautilus_Zoomable_zoom_default)
      	Implimetation function of zoom_default interface
      
      	(nautilus_zoomable_initialize_class):
      	Set up new ZOOM_DEFAULT signal.
      
      	* src/file-manager/fm-directory-view.c:
      	* src/file-manager/fm-directory-view.h:
      	(fm_directory_view_initialize_class),
      	(fm_directory_view_initialize), (zoom_out_callback),
      	(zoom_default_callback), (zoomable_zoom_default_callback),
      	(fm_directory_view_restore_default_zoom_level):
      	New functions to enable zoom to default.
      
      	* src/file-manager/fm-icon-view.c:
      	(fm_icon_view_initialize_class):
      	Override zoom_default method.
      
      	(fm_icon_view_restore_default_zoom_level),
      	New function to enable zoom to default.
      
      	* src/file-manager/fm-list-view.c:
      	(fm_list_view_initialize_class):
      	Override zoom_default method.
      
      	(fm_list_view_restore_default_zoom_level):
      	New function to enable zoom to default.
      
      	* src/file-manager/fm-properties-window.c: (create_basic_page):
      
      	* src/nautilus-view-frame.c:
      	* src/nautilus-view-frame.h:
      	(nautilus_view_frame_zoom_default):
      	New signal handling callback
      
      	* src/nautilus-window.c:
      	(zoom_default_callback):
      	New signal handling callback
      
      	* src/nautilus-zoom-control.c:
      	* src/nautilus-zoom-control.h:
      	(nautilus_zoom_control_class_initialize),
      	(nautilus_zoom_control_button_press_event):
      
      	Work in progress on bug #971
      	* src/file-manager/fm-directory-view.c:
      	(open_one_properties_window),
      
      	* libnautilus-extensions/nautilus-undo-signal-handlers.c:
      	(nautilus_entry_user_changed_callback),
      	(editable_register_edit_undo),
      	(restore_editable_from_undo_snapshot_callback):
      9bcb90f3
  11. 09 Jun, 2000 1 commit
    • John Sullivan's avatar
      Fixed bugs related to selection and activation in directory · 4090e13b
      John Sullivan authored
      	views, including 881 (right-click on selected item in list
      	view shouldn't change selection), 918 (mouse activation
      	in list view shouldn't affect only clicked item), and some
      	others I found while in this code. Redefined the behavior
      	of activation and multiple selection to some extent. Now
      	double-clicking on a selected item always opens all selected
      	items, and always opens them in new windows. If in single-click
      	mode, single-clicking in list view when there's a multiple
      	selection still opens only the clicked-on item, since the UI
      	makes it pretty clear that you're clicking on a link for this
      	one item. In icon view, single-clicking on a selected item in
      	a multiple selection opens all selected items in new windows,
      	since this feels to me more like "activate selected items"
      	than "follow link", but I'm not really sure which is better.
      
      	I changed the old behavior where single-clicking in icon view
      	with a multiple selection would open the clicked item in the
      	same window (if your preference was for "open in same window")
      	and all others in new windows. In practice this seemed wrong,
      	and opening all of the items in new windows is equivalent to
      	the "Open in n New Windows" menu item. Please argue with me
      	if you disagree.
      
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(remember_selected_files), (forget_selected_files): Removed these
      	functions, which were part of an earlier incomplete selection
      	behavior fix.
      	(destroy): Removed call to forget_selected_files.
      	(nautilus_icon_container_almost_drag): Changed name to
      	somewhat less misleading "nautilus_icon_container_did_not_drag";
      	fixed bug where clicking on selected item (in double-click mode)
      	would deselect other selected items; replaced remember/forget
      	pair with call to activate_selected_items.
      	(handle_icon_button_press): replaced remember/forget pair with
      	call to activate_selected_items.
      	(activate_selected_items): Reimplemented to use nautilus_icon_
      	container_get_selection instead of remember/forget.
      
      	* libnautilus-extensions/nautilus-icon-private.h: Removed
      	last_selected_files field, formerly used by remember_ and
      	forget_selected_files.
      
      	* libnautilus-extensions/nautilus-list.h: Changed "activate"
      	signal to pass a list of items to activate instead of just one.
      
      	* libnautilus-extensions/nautilus-list.c:
      	(event_state_modifies_selection): New helper function, checks
      	for control or shift key mask.
      	(activate_row_data_list): New function, emits activate signal
      	on a list of row_data elements.
      	(activate_selected_rows): New function.
      	(activate_row): Reimplemented to use activate_row_data_list.
      	(nautilus_list_button_press): Deployed
      	event_state_modifies_selection; fixed 881 by not deselecting
      	other items when right-clicking on a selected item; fixed 918
      	by making double-click activate all selected rows.
      	(nautilus_list_button_release): Deployed
      	event_state_modifies_selection; fixed bug where (left-)
      	clicking on a selected item would unselect others
      
      	* src/file-manager/fm-directory-view.h:
      	* src/file-manager/fm-directory-view.c:
      	(fm_directory_view_activate_file): Renamed from
      	fm_directory_view_activate_files; now takes a list
      	of files to activate and opens them all in new windows
      	if there are more than one (otherwise respects preference).
      	(fm_directory_view_activate_file_internal): Renamed to
      	fm_directory_view_activate_file now that this name was
      	available.
      
      	* src/file-manager/fm-icon-view.c:
      	(icon_container_activate_callback): Now calls
      	fm_directory_view_activate_files instead of iterating here.
      	* src/file-manager/fm-list-view.c:
      	(list_activate_callback): Changed to take list parameter and
      	call fm_directory_view_activate_files.
      4090e13b
  12. 30 May, 2000 2 commits
    • Pavel Cisler's avatar
      New copy engine entry calls supporting New Folder creation. Pass NULL to · 161115bb
      Pavel Cisler authored
      2000-05-30  Pavel Cisler  <pavel@eazel.com>
      
      	* src/file-manager/dfos-xfer.h:
      	* src/file-manager/dfos-xfer.c: (sync_xfer_callback), (fs_xfer),
      	(new_folder_xfer_callback), (fs_new_folder), (fs_move_to_trash),
      	(fs_empty_trash):
      	New copy engine entry calls supporting New Folder creation.
      	Pass NULL to sync_xfer_callback because it doesn't use any pass-thru
      	state.
      
      	* src/file-manager/fm-directory-view.h:
      	* src/file-manager/fm-icon-view.c:
      	* src/file-manager/fm-directory-view.c:
      	(fm_directory_view_initialize_class),
      	(bonobo_menu_new_folder_callback), (start_renaming_item),
      	(new_folder_rename_later), (new_folder_done),
      	(fm_directory_view_new_folder), (compute_menu_item_info),
      	(fm_directory_view_real_create_selection_context_menu_items),
      	(reset_bonobo_open_with_menu),
      	(fm_directory_view_real_merge_menus),
      	(fm_icon_view_start_renaming_item),
      	(fm_icon_view_initialize_class):
      	Add the "New Folder" command. Add a menu item that invokes it.
      	Add code to allow me to select the new folder once it was
      	created and start a rename on it.
      161115bb
    • 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
  13. 27 May, 2000 1 commit
    • Maciej Stachowiak's avatar
      components/history/ntl-history-view.c -> · a15fd9f8
      Maciej Stachowiak authored
      	* Renamed files as follows, as per RENAMING:
      	components/history/ntl-history-view.c -> components/history/nautilus-history-view.c
      	components/history/ntl-history-view.oafinfo -> components/history/nautilus-history-view.oafinfo
      	components/notes/ntl-notes.c -> components/notes/nautilus-notes.c
      	components/notes/ntl-notes.oafinfo -> components/notes/nautilus-notes.oafinfo
      	libnautilus-extensions/gtkscrollframe.c -> libnautilus-extensions/nautilus-scroll-frame.c
      	libnautilus-extensions/gtkscrollframe.h -> libnautilus-extensions/nautilus-scroll-frame.h
      	libnautilus/nautilus-view-frame.c -> libnautilus/nautilus-view.c
      	libnautilus/nautilus-view-frame.h -> libnautilus/nautilus-view.h
      	src/nautilus-index-tabs.c -> src/nautilus-sidebar-tabs.c
      	src/nautilus-index-tabs.h -> src/nautilus-sidebar-tabs.h
      	src/nautilus-index-title.c -> src/nautilus-sidebar-title.c
      	src/nautilus-index-title.h -> src/nautilus-sidebar-title.h
      	src/nautilus-zoomable-frame-svr.c -> src/nautilus-zoomable-frame-corba.c
      	src/ntl-app.c -> src/nautilus-application.c
      	src/ntl-app.h -> src/nautilus-application.h
      	src/ntl-index-panel.c -> src/nautilus-sidebar.c
      	src/ntl-index-panel.h -> src/nautilus-sidebar.h
      	src/ntl-main.c -> src/nautilus-main.c
      	src/ntl-miniicon.c -> libnautilus-extensions/nautilus-mini-icon.c
      	src/ntl-miniicon.h -> libnautilus-extensions/nautilus-mini-icon.h
      	src/ntl-uri-map.c -> src/nautilus-applicable-views.c
      	src/ntl-uri-map.h -> src/nautilus-applicable-views.h
      	src/ntl-view-bonobo-control.c -> src/nautilus-view-frame-bonobo-control.c
      	src/ntl-view-bonobo-subdoc.c -> src/nautilus-view-frame-bonobo-embeddable.c
      	src/ntl-view-frame-svr.c -> src/nautilus-view-frame-corba.c
      	src/ntl-view-nautilus.c -> src/nautilus-view-frame-nautilus-view.c
      	src/ntl-view-private.h -> src/nautilus-view-frame-private.h
      	src/ntl-view.c -> src/nautilus-view-frame.c
      	src/ntl-view.h -> src/nautilus-view-frame.h
      	src/ntl-window-msgs.c -> src/nautilus-window-manage-views.c
      	src/ntl-window-msgs.h -> src/nautilus-window-manage-views.h
      	src/ntl-window-private.h -> src/nautilus-window-private.h
      	src/ntl-window-state.c -> src/nautilus-window-state.c
      	src/ntl-window-state.h -> src/nautilus-window-state.h
      	src/ntl-window.c -> src/nautilus-window.c
      	src/ntl-window.h -> src/nautilus-window.h
      
      	* components/history/Makefile.am, components/notes/Makefile.am,
      	libnautilus-extensions/Makefile.am, libnautilus/Makefile.am,
      	po/POTFILES.in, src/Makefile.am,
      	components/hardware/nautilus-hardware-view.h,
      	components/loser/content/nautilus-content-loser.h,
      	components/loser/sidebar/nautilus-sidebar-loser.h,
      	components/mozilla/nautilus-mozilla-content-view.h,
      	components/music/nautilus-music-view.h,
      	components/rpmview/nautilus-rpm-view.h,
      	components/sample/nautilus-sample-content-view.h,
      	components/services/startup/nautilus-view/nautilus-service-startup-view.h,
      	libnautilus/libnautilus.h, src/nautilus-desktop-window.h,
      	src/nautilus-window-menus.c, src/nautilus-window-toolbars.c,
      	src/file-manager/fm-directory-view.h : Updated for renamings.
      
      	* RENAMING: removed old renamings
      a15fd9f8
  14. 25 May, 2000 1 commit
    • Darin Adler's avatar
      [removed] [removed] · 346de152
      Darin Adler authored
      	* components/hardware/nautilus-hardware-view.c:
      	(nautilus_hardware_view_initialize),
      	(hardware_view_notify_location_change_callback):
      	* components/hardware/nautilus-hardware-view.h:
      	* components/help/hyperbola-nav-index.c:
      	(hyperbola_navigation_index_select_row):
      	* components/help/hyperbola-nav-search.c:
      	(hyperbola_navigation_search_select_row),
      	(hyperbola_navigation_search_new):
      	* components/html/ntl-web-browser.c: (browser_url_load_done),
      	(browser_vfs_callback), (browser_goto_url_real),
      	(browser_goto_url), (browser_select_url), (browser_title_changed),
      	(browser_notify_location_change), (make_obj):
      	* components/loser/content/main.c: (loser_make_object):
      	* components/loser/content/nautilus-content-loser.c:
      	(nautilus_content_loser_initialize),
      	(loser_notify_location_change_callback):
      	* components/loser/content/nautilus-content-loser.h:
      	* components/loser/sidebar/main.c: (loser_make_object):
      	* components/loser/sidebar/nautilus-sidebar-loser.c:
      	(nautilus_sidebar_loser_initialize),
      	(loser_notify_location_change_callback):
      	* components/mozilla/main.c: (mozilla_make_object):
      	* components/mozilla/nautilus-mozilla-content-view.c:
      	(nautilus_mozilla_content_view_initialize),
      	(mozilla_content_view_request_progress_change),
      	(mozilla_content_view_request_location_change),
      	(mozilla_notify_location_change_callback),
      	(mozilla_title_changed_callback), (mozilla_link_message_callback):
      	* components/mozilla/nautilus-mozilla-content-view.h:
      	* components/music/main.c: (music_view_make_object):
      	* components/music/nautilus-music-view.c:
      	(nautilus_music_view_initialize), (click_column_callback),
      	(music_view_notify_location_change_callback),
      	(nautilus_music_view_drag_data_received):
      	* components/music/nautilus-music-view.h:
      	* components/rpmview/main.c: (rpm_view_make_object):
      	* components/rpmview/nautilus-rpm-view.c:
      	(nautilus_rpm_view_initialize),
      	(rpm_view_notify_location_change_callback):
      	* components/rpmview/nautilus-rpm-view.h:
      	* components/sample/main.c: (sample_make_object):
      	* components/sample/nautilus-sample-content-view.c:
      	(nautilus_sample_content_view_initialize),
      	(sample_notify_location_change_callback):
      	* components/sample/nautilus-sample-content-view.h:
      	* components/services/startup/nautilus-view/main.c:
      	(services_make_object):
      	* components/services/startup/nautilus-view/nautilus-service-startup-view.c:
      	(go_to_uri), (nautilus_service_startup_view_initialize),
      	(service_main_notify_location_change_cb):
      	* components/services/startup/nautilus-view/nautilus-service-startup-view.h:
      	* libnautilus/Makefile.am:
      	* libnautilus/libnautilus.h:
      	* libnautilus/nautilus-content-view-frame.c: [removed]
      	* libnautilus/nautilus-content-view-frame.h: [removed]
      	* libnautilus/nautilus-view-component.idl:
      	* libnautilus/nautilus-view-frame-private.h:
      	* libnautilus/nautilus-view-frame.c:
      	(impl_Nautilus_View_save_state), (impl_Nautilus_View_load_state),
      	(impl_Nautilus_View_notify_location_change),
      	(impl_Nautilus_View_show_properties),
      	(impl_Nautilus_View_notify_selection_change),
      	(impl_Nautilus_View_stop_location_change),
      	(impl_Nautilus_View__destroy), (impl_Nautilus_View__create),
      	(nautilus_view_initialize_class), (nautilus_view_initialize),
      	(nautilus_view_new), (nautilus_view_new_from_bonobo_control),
      	(get_view_frame), (nautilus_view_request_location_change),
      	(nautilus_view_request_selection_change),
      	(nautilus_view_request_status_change),
      	(nautilus_view_request_progress_change),
      	(nautilus_view_request_title_change),
      	(nautilus_view_get_bonobo_control),
      	(nautilus_view_get_main_window):
      	* libnautilus/nautilus-view-frame.h:
      	* src/Makefile.am:
      	* src/file-manager/fm-directory-view.c: (get_bonobo_control),
      	(fm_directory_view_initialize), (display_selection_info),
      	(fm_directory_view_send_selection_change),
      	(notify_location_change_callback), (stop_location_change_callback),
      	(done_loading), (fm_directory_view_activate_file_internal),
      	(finish_loading_uri):
      	* src/file-manager/fm-directory-view.h:
      	* src/ntl-app.c: (impl_Nautilus_Application_create_object):
      	* src/ntl-content-view.c: [removed]
      	* src/ntl-content-view.h: [removed]
      	* src/ntl-uri-map.c: (make_oaf_query_with_known_mime_type),
      	(make_oaf_query_with_uri_scheme_only):
      	* src/ntl-view-frame-svr.c: (impl_Nautilus_ViewFrame__destroy),
      	(impl_Nautilus_ViewFrame__create),
      	(impl_Nautilus_ViewFrame__get_main_window),
      	(impl_Nautilus_ViewFrame_request_location_change),
      	(impl_Nautilus_ViewFrame_request_selection_change),
      	(impl_Nautilus_ViewFrame_request_status_change),
      	(impl_Nautilus_ViewFrame_request_progress_change),
      	(impl_Nautilus_ViewFrame_request_title_change):
      	* src/ntl-view-private.h:
      	* src/ntl-view.c: (nautilus_view_frame_class_init),
      	(nautilus_view_frame_set_arg), (nautilus_view_frame_get_arg),
      	(nautilus_view_frame_request_location_change),
      	(nautilus_view_frame_request_selection_change),
      	(nautilus_view_frame_request_status_change),
      	(nautilus_view_frame_request_progress_change),
      	(nautilus_view_frame_request_title_change),
      	(nautilus_view_frame_set_label), (nautilus_view_frame_activate):
      	* src/ntl-view.h:
      	* src/ntl-window-msgs.c: (nautilus_window_request_title_change),
      	(nautilus_window_load_meta_view),
      	(nautilus_window_request_location_change),
      	(nautilus_window_load_content_view):
      	* src/ntl-window-msgs.h:
      	* src/ntl-window-private.h:
      	* src/ntl-window.c:
      	(nautilus_window_request_title_change_callback),
      	(nautilus_window_connect_content_view),
      	(nautilus_window_real_set_content_view):
      	Got rid of ContentView and ContentViewFrame.
      346de152
  15. 23 May, 2000 1 commit
    • Darin Adler's avatar
      The ViewFrame <-> View renaming. · 8ce35298
      Darin Adler authored
      	We still have to rename the files.
      
      	* RENAMING: Put in explicit cases for file name renaming.
      
      	* src/Makefile.am:
      	* src/nautilus-desktop-window.c:
      	* src/nautilus-desktop-window.h:
      	Added placeholders. I'll be putting code in here soon.
      
      	* src/ntl-app.c: (display_prototype_caveat):
      	Changed to use nautilus_simple_dialog again since otherwise it
      	comes up behind the main window. Perhaps someone will resolve
      	that issue and change it back.
      
      	* libnautilus-extensions/nautilus-gnome-extensions.h:
      	* libnautilus-extensions/nautilus-gnome-extensions.c:
      	(nautilus_warning_dialog), (nautilus_warning_dialog_parented):
      	Added centered version of the warning dialog as well, since
      	Eskil was using gnome_warning_dialog in a case where he really
      	wanted lines wrapped.
      
      	* components/loser/.cvsignore:
      	* components/loser/content/.cvsignore:
      	* components/loser/sidebar/.cvsignore:
      	Ignore some generated files.
      
      	* components/hardware/main.c: (hardware_view_make_object):
      	* components/hardware/nautilus-hardware-view.c:
      	(nautilus_hardware_view_initialize),
      	(nautilus_hardware_view_destroy),
      	(nautilus_hardware_view_get_nautilus_view),
      	(hardware_view_notify_location_change_callback):
      	* components/hardware/nautilus-hardware-view.h:
      	* components/help/hyperbola-nav-index.c:
      	(hyperbola_navigation_index_select_row),
      	(hyperbola_navigation_index_new):
      	* components/help/hyperbola-nav-search.c:
      	(hyperbola_navigation_search_select_row),
      	(hyperbola_navigation_search_new):
      	* components/help/hyperbola-nav-tree.c:
      	(hyperbola_navigation_tree_new),
      	(hyperbola_navigation_tree_notify_location_change),
      	(hyperbola_navigation_tree_select_row):
      	* components/history/ntl-history-view.c:
      	(hyperbola_navigation_history_notify_location_change),
      	(hyperbola_navigation_history_select_row), (make_obj):
      	* components/html/ntl-web-browser.c: (browser_url_load_done),
      	(browser_vfs_callback), (browser_goto_url_real),
      	(browser_goto_url), (browser_select_url), (browser_title_changed),
      	(browser_notify_location_change), (make_obj):
      	* components/loser/content/main.c: (loser_make_object):
      	* components/loser/content/nautilus-content-loser.c:
      	(nautilus_content_loser_initialize),
      	(nautilus_content_loser_destroy),
      	(nautilus_content_loser_get_nautilus_view),
      	(nautilus_content_loser_load_uri),
      	(loser_notify_location_change_callback), (bonobo_loser_callback):
      	* components/loser/content/nautilus-content-loser.h:
      	* components/loser/sidebar/main.c: (loser_make_object):
      	* components/loser/sidebar/nautilus-sidebar-loser.c:
      	(nautilus_sidebar_loser_initialize),
      	(nautilus_sidebar_loser_destroy),
      	(nautilus_sidebar_loser_get_nautilus_view),
      	(loser_notify_location_change_callback):
      	* components/loser/sidebar/nautilus-sidebar-loser.h:
      	* components/music/main.c: (music_view_make_object):
      	* components/music/nautilus-music-view.c:
      	(nautilus_music_view_initialize), (nautilus_music_view_destroy),
      	(nautilus_music_view_get_nautilus_view),
      	(music_view_notify_location_change_callback):
      	* components/music/nautilus-music-view.h:
      	* components/notes/ntl-notes.c: (notes_notify_location_change),
      	(make_notes_view):
      	* components/rpmview/main.c: (rpm_view_make_object):
      	* components/rpmview/nautilus-rpm-view.c:
      	(nautilus_rpm_view_initialize), (nautilus_rpm_view_destroy),
      	(nautilus_rpm_view_get_nautilus_view),
      	(rpm_view_notify_location_change_callback):
      	* components/rpmview/nautilus-rpm-view.h:
      	* components/sample/main.c: (sample_make_object):
      	* components/sample/nautilus-sample-content-view.c:
      	(nautilus_sample_content_view_initialize),
      	(nautilus_sample_content_view_destroy),
      	(nautilus_sample_content_view_get_nautilus_view),
      	(sample_notify_location_change_callback):
      	* components/sample/nautilus-sample-content-view.h:
      	* components/services/startup/nautilus-view/main.c:
      	(services_make_object):
      	* components/services/startup/nautilus-view/nautilus-service-startup-view.c:
      	(go_to_uri), (nautilus_service_startup_view_initialize),
      	(nautilus_service_startup_view_get_nautilus_view),
      	(service_main_notify_location_change_cb):
      	* components/services/startup/nautilus-view/nautilus-service-startup-view.h:
      	* components/websearch/ntl-web-search.c:
      	(web_search_notify_location_change), (do_search), (make_obj):
      	* libnautilus/nautilus-clipboard.c:
      	(nautilus_clipboard_info_set_view),
      	(nautilus_clipboard_info_get_view),
      	(nautilus_clipboard_info_get_bonobo_control):
      	* libnautilus/nautilus-clipboard.h:
      	* src/file-manager/fm-directory-view.c:
      	(bonobo_menu_move_to_trash_callback), (get_bonobo_control),
      	(fm_directory_view_initialize), (display_selection_info),
      	(fm_directory_view_send_selection_change),
      	(notify_location_change_callback),
      	(notify_selection_change_callback),
      	(stop_location_change_callback), (done_loading),
      	(fm_directory_view_get_nautilus_view),
      	(fm_directory_view_activate_file_internal), (finish_loading_uri):
      	* src/file-manager/fm-directory-view.h:
      	Updated for new libnautilus where the NautilusViewFrame
      	classes are now named NautilusView.
      
      	* libnautilus/nautilus-content-view-frame.c:
      	(nautilus_content_view_initialize), (nautilus_content_view_new),
      	(nautilus_content_view_new_from_bonobo_control),
      	(nautilus_content_view_destroy),
      	(nautilus_content_view_initialize_class),
      	(nautilus_content_view_request_title_change):
      	* libnautilus/nautilus-content-view-frame.h:
      	* libnautilus/nautilus-meta-view-frame.c:
      	(nautilus_meta_view_initialize), (nautilus_meta_view_new),
      	(nautilus_meta_view_new_from_bonobo_control),
      	(nautilus_meta_view_destroy),
      	(nautilus_meta_view_initialize_class):
      	* libnautilus/nautilus-meta-view-frame.h:
      	Changed Nautilus*ViewFrame classes to Nautilus*View. This is
      	something we had in RENAMING for some time, and it's consistent
      	with Bonobo's naming of BonoboControl and BonoboControlFrame.
      	Also changed interfaces to use actual BonoboControl * instead of
      	using BonobObject * and query_interface.
      
      	* libnautilus/nautilus-undo-manager.c:
      	(nautilus_undo_setup_bonobo_control):
      	* libnautilus/nautilus-undo-manager.h:
      	Changed the BonoboControl parameter to actually be of type
      	BonoboControl * instead of BonoboObject *.
      
      	* libnautilus/nautilus-view-frame-private.h:
      	* libnautilus/nautilus-view-frame.c:
      	(impl_Nautilus_View_save_state), (impl_Nautilus_View_load_state),
      	(impl_Nautilus_View_notify_location_change),
      	(impl_Nautilus_View_show_properties),
      	(impl_Nautilus_View_notify_selection_change),
      	(impl_Nautilus_View_stop_location_change),
      	(impl_Nautilus_View__destroy), (impl_Nautilus_View__create),
      	(nautilus_view_initialize_class), (nautilus_view_set_arg),
      	(nautilus_view_get_arg), (nautilus_view_initialize),
      	(nautilus_view_new), (nautilus_view_new_from_bonobo_control),
      	(nautilus_view_destroy), (nautilus_view_ensure_view_frame),
      	(nautilus_view_request_location_change),
      	(nautilus_view_request_selection_change),
      	(nautilus_view_request_status_change),
      	(nautilus_view_request_progress_change),
      	(nautilus_view_get_bonobo_control),
      	(nautilus_view_get_main_window),
      	(nautilus_view_real_set_bonobo_control):
      	* libnautilus/nautilus-view-frame.h:
      	* libnautilus/nautilus-zoomable.c:
      	(impl_Nautilus_Zoomable__get_zoom_level),
      	(impl_Nautilus_Zoomable__set_zoom_level),
      	(impl_Nautilus_Zoomable__get_min_zoom_level),
      	(impl_Nautilus_Zoomable__get_max_zoom_level),
      	(impl_Nautilus_Zoomable__get_is_continuous),
      	(impl_Nautilus_Zoomable_zoom_in),
      	(impl_Nautilus_Zoomable_zoom_out),
      	(impl_Nautilus_Zoomable_zoom_to_fit),
      	(impl_Nautilus_Zoomable__destroy),
      	(impl_Nautilus_Zoomable__create), (marshal_NONE__DOUBLE),
      	(nautilus_zoomable_initialize_class), (nautilus_zoomable_set_arg),
      	(nautilus_zoomable_get_arg), (nautilus_zoomable_initialize),
      	(nautilus_zoomable_new),
      	(nautilus_zoomable_new_from_bonobo_control),
      	(nautilus_zoomable_destroy),
      	(nautilus_zoomable_ensure_zoomable_frame),
      	(nautilus_zoomable_set_zoom_level),
      	(nautilus_zoomable_get_bonobo_control),
      	(nautilus_zoomable_real_set_bonobo_control):
      	* libnautilus/nautilus-zoomable.h:
      	* src/nautilus-zoomable-frame-svr.c:
      	(impl_Nautilus_ZoomableFrame__destroy),
      	(impl_Nautilus_ZoomableFrame__create),
      	(impl_Nautilus_ZoomableFrame_notify_zoom_level):
      	* src/ntl-app.c: (impl_Nautilus_Application_create_object),
      	* src/ntl-content-view.c:
      	(impl_Nautilus_ContentViewFrame_request_title_change),
      	(nautilus_content_view_frame_get_type),
      	(nautilus_content_view_frame_class_init),
      	(nautilus_content_view_frame_init),
      	(nautilus_content_view_frame_set_active),
      	(nautilus_content_view_frame_request_title_change):
      	* src/ntl-content-view.h:
      	* src/ntl-index-panel.c: (nautilus_index_panel_add_meta_view),
      	(nautilus_index_panel_remove_meta_view):
      	* src/ntl-index-panel.h:
      	* src/ntl-meta-view.c: (nautilus_meta_view_frame_initialize_class),
      	(nautilus_meta_view_frame_initialize),
      	(nautilus_meta_view_frame_set_label),
      	(nautilus_meta_view_frame_get_label):
      	* src/ntl-meta-view.h:
      	* src/ntl-view-bonobo-control.c: (destroy_bonobo_control_view),
      	(nautilus_view_frame_activate_uri),
      	(bonobo_control_try_load_client),
      	(bonobo_control_notify_location_change):
      	* src/ntl-view-bonobo-subdoc.c: (destroy_bonobo_subdoc_view),
      	(bonobo_subdoc_notify_location_change),
      	(bonobo_subdoc_try_load_client):
      	* src/ntl-view-frame-svr.c: (impl_Nautilus_ViewFrame__destroy),
      	(impl_Nautilus_ViewFrame__create),
      	(impl_Nautilus_ViewFrame_request_location_change),
      	(impl_Nautilus_ViewFrame_request_selection_change),
      	(impl_Nautilus_ViewFrame_request_status_change),
      	(impl_Nautilus_ViewFrame_request_progress_change):
      	* src/ntl-view-nautilus.c: (nautilus_view_try_load_client),
      	(destroy_nautilus_view), (nv_show_properties), (nv_save_state),
      	(nv_load_state), (nv_notify_location_change),
      	(nv_notify_selection_change), (nv_stop_location_change):
      	* src/ntl-view-private.h:
      	* src/ntl-view.c: (nautilus_view_frame_get_type),
      	(nautilus_view_frame_class_init), (nautilus_view_frame_set_arg),
      	(nautilus_view_frame_get_arg), (nautilus_view_frame_init),
      	(nautilus_view_frame_destroy_client),
      	(nautilus_view_frame_destroy), (nautilus_view_frame_constructed),
      	(nautilus_view_frame_construct_arg_set),
      	(nautilus_view_frame_size_request),
      	(nautilus_view_frame_size_allocate),
      	(nautilus_view_frame_handle_client_destroy),
      	(nautilus_view_frame_handle_client_destroy_2),
      	(nautilus_view_frame_load_client),
      	(nautilus_view_frame_notify_location_change),
      	(nautilus_view_frame_notify_selection_change),
      	(nautilus_view_frame_load_state), (nautilus_view_frame_save_state),
      	(nautilus_view_frame_show_properties),
      	(nautilus_view_frame_stop_location_change),
      	(nautilus_view_frame_is_zoomable),
      	(nautilus_view_frame_get_zoom_level),
      	(nautilus_view_frame_set_zoom_level),
      	(nautilus_view_frame_get_min_zoom_level),
      	(nautilus_view_frame_get_max_zoom_level),
      	(nautilus_view_frame_get_is_continuous),
      	(nautilus_view_frame_zoom_in), (nautilus_view_frame_zoom_out),
      	(nautilus_view_frame_zoom_to_fit), (nautilus_view_frame_get_iid),
      	(nautilus_view_frame_get_client_objref),
      	(nautilus_view_frame_get_objref),
      	(nautilus_view_frame_request_location_change),
      	(nautilus_view_frame_request_selection_change),
      	(nautilus_view_frame_request_status_change),
      	(nautilus_view_frame_request_progress_change),
      	(nautilus_view_frame_notify_zoom_level), (check_object),
      	(nautilus_view_frame_set_active_errors):
      	* src/ntl-view.h:
      	* src/ntl-window-msgs.c: (nautilus_window_notify_selection_change),
      	(nautilus_window_request_selection_change),
      	(nautilus_window_request_status_change),
      	(nautilus_window_request_progress_change),
      	(nautilus_window_request_title_change),
      	(nautilus_window_update_internals), (nautilus_window_update_view),
      	(nautilus_window_view_destroyed), (nautilus_window_load_meta_view),
      	(nautilus_window_request_location_change),
      	(nautilus_window_load_content_view),
      	(nautilus_window_update_state), (nautilus_window_set_state_info),
      	(nautilus_window_begin_location_change):
      	* src/ntl-window-msgs.h:
      	* src/ntl-window-private.h:
      	* src/ntl-window.c: (zoom_in_cb), (zoom_out_cb),
      	(nautilus_window_set_arg), (nautilus_window_send_show_properties),
      	(view_menu_switch_views_callback),
      	(nautilus_window_set_content_view),
      	(nautilus_window_add_meta_view),
      	(nautilus_window_remove_meta_view_real),
      	(nautilus_window_remove_meta_view),
      	(nautilus_window_request_location_change_cb),
      	(nautilus_window_request_selection_change_cb),
      	(nautilus_window_request_status_change_cb),
      	(nautilus_window_request_progress_change_cb),
      	(nautilus_window_request_title_change_callback),
      	(nautilus_window_connect_view),
      	(nautilus_window_connect_content_view),
      	(nautilus_window_real_set_content_view):
      	* src/ntl-window.h:
      	Changed Nautilus*View classes to Nautilus*ViewFrame. This is
      	something we had in RENAMING for some time, and it's consistent
      	with Bonobo's naming of BonoboControl and BonoboControlFrame.
      	Also changed interfaces to use actual BonoboControl * instead of
      	using BonoboObject * and query_interface.
      8ce35298
  16. 17 May, 2000 1 commit
    • John Sullivan's avatar
      Some work getting the menu items for "Open With" in place, · abc4dfdc
      John Sullivan authored
      	and some related cleanup. "Open With" submenus now appear
      	in the File and context menus, but filled with bogus
      	insensitive items.
      
      	* src/file-manager/fm-directory-view.h:
      	Add #defines for bonobo-style menu paths for "Open With"-related
      	items.
      	* src/file-manager/fm-directory-view.c:
      	(compute_menu_item_info): Added new cases.
      	(append_gtk_menu_item_with_view): Renamed from
      	"append_selection_menu_item" because it's now used more
      	generally; checks for view != NULL before using view.
      	(append_gtk_menu_item): New function, calls _with_view
      	with some default values.
      	(append_selection_menu_subtree): New function.
      	(fm_directory_view_real_create_background_context_menu_items):
      	Uses append_gtk_menu_item now instead of duplicating some code/data.
      	(add_open_with_gtk_menu_item), (create_open_with_gtk_menu):
      	New functions, used to create the "Open With" submenu in
      	the context menu.
      	(fm_directory_view_real_create_selection_context_menu_items):
      	Adds "Open With" submenu to context menu.
      	(insert_bonobo_menu_subtree), (add_open_with_bonobo_menu_item),
      	(reset_bonobo_open_with_menu): New functions, used to create
      	the "Open With" submenu in the File menu in the menu bar.
      	(fm_directory_view_real_merge_menus): Adds "Open With" submenu
      	to File menu.
      	(fm_directory_view_real_update_menus): Updates the "Open With"
      	submenu to match selection.
      	(fm_directory_view_get_context_menu_index): Updated to match
      	current reality.
      abc4dfdc
  17. 11 May, 2000 2 commits
    • John Sullivan's avatar
      src/file-manager/fm-directory-view.h, Some more menu code cleanup. Renamed · 25370333
      John Sullivan authored
      	* src/file-manager/fm-directory-view.h,
      	* src/file-manager/fm-directory-view.c: (compute_menu_item_info),
      	(fm_directory_view_real_create_selection_context_menu_items),
      	(insert_bonobo_menu_item), (fm_directory_view_real_merge_menus),
      	(fm_directory_view_real_update_menus),
      	(fm_directory_view_get_context_menu_index): Some more menu code
      	cleanup. Renamed FM_DIRECTORY_VIEW_MENU_PATH_SET_PROPERTIES
      	to _SHOW_PROPERTIES to match menu text; made new function
      	insert_bonobo_menu_item that calls compute_menu_item_info
      	to get name & sensitivity so that _real_merge_menus
      	doesn't have a separate and potentially diverging copy of
      	menu item names.
      25370333
    • John Sullivan's avatar
      Some cleanup in directory view menu-handling code. · 7c9002a2
      John Sullivan authored
      	* src/file-manager/fm-directory-view.h,
      	* src/file-manager/fm-directory-view.c:
      	(fm_directory_view_initialize_class),
      	(fm_directory_view_real_create_background_context_menu_items),
      	(fm_directory_view_real_create_selection_context_menu_items),
      	(create_selection_context_menu),
      	(fm_directory_view_create_background_context_menu_items),
      	(create_background_context_menu): Renamed context-menu functions
      	and signals from using "append_" to using "create_" since they
      	don't necessarily append.
      
      	* src/file-manager/fm-icon-view.c: (insert_one_context_menu_item),
      	(append_one_context_menu_item): Made append_ call insert_ with
      	-1 for the position to eliminate duplicated code.
      	(fm_icon_view_create_selection_context_menu_items): Removed code
      	that passed a different position depending on whether or not
      	the Duplicate item was present. This subclass can assume that it
      	will always be present (or we'll rewrite the code here if we
      	change that assumption).
      	(fm_icon_view_create_background_context_menu_items),
      	(fm_icon_view_merge_menus), (fm_icon_view_initialize_class):
      	Renamed functions and signals to use create_ as above.
      
      	* src/file-manager/fm-list-view.c:
      	(fm_list_view_append_background_context_menu_items),
      	(fm_list_view_append_selection_context_menu_items),
      	(fm_list_view_merge_menus), (fm_list_view_update_menus),
      	(fm_list_view_compute_menu_item_info),
      	(append_one_context_menu_item),	(insert_one_context_menu_item),
      	(rename_list_item_callback): Removed these functions, which were
      	all used only for Rename (which we won't have in 1.0) and
      	Undo (which the list view never interacts with).
      	(fm_list_view_initialize_class): Removed function overrides.
      7c9002a2
  18. 02 May, 2000 1 commit
    • Darin Adler's avatar
      Open .svg file in binary mode. (load_specific_image): Factor out some · 623346f7
      Darin Adler authored
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(load_specific_image_svg): Open .svg file in binary mode.
      	(load_specific_image): Factor out some shared code.
      
      	* src/file-manager/fm-directory-view.h:
      	* src/file-manager/fm-directory-view.c:
      	Renamed *_cb to *_callback.
      	(remove_custom_icon), (files_have_any_custom_images),
      	(remove_custom_icons_callback), (finish_adding_menu_item),
      	(fm_directory_view_real_append_background_context_menu_items):
      	(append_selection_menu_item),
      	(fm_directory_view_real_append_selection_context_menu_items),
      	(fm_directory_view_real_merge_menus), (update_one_menu_item),
      	(fm_directory_view_real_update_menus),
      	(create_selection_context_menu):
      	Added the "Remove Custom Image" command.
      	(compute_menu_item_info): Made more similar to the one in
      	FMIconView.
      
      	* src/file-manager/fm-icon-view.c (compute_menu_item_info),
      	(append_one_context_menu_item), (insert_one_context_menu_item),
      	(fm_icon_view_append_selection_context_menu_items),
      	(append_bonobo_menu_item), (fm_icon_view_merge_menus),
      	(update_one_menu_item), (fm_icon_view_update_menus):
      	Made more similar to code in FMDirectoryView.
      623346f7
  19. 28 Apr, 2000 1 commit
    • John Sullivan's avatar
      Fixed bug 660 (Need to publish menu positions for components to use) · 604acdd1
      John Sullivan authored
      	* libnautilus/nautilus-bonobo-ui.h:
      	New file, contains #defines for Bonobo-style menu paths for all
      	the menus & menu items in Nautilus that we promise components
      	will exist.
      	* libnautilus/Makefile.am: Include this new header file in library.
      
      	* src/nautilus-window-menus.c: Extensive changes, too many to list
      	every function. Replaced all the GnomeUIInfo mechanism with
      	Bonobo-style menu creation, using the menu paths from
      	nautilus-bonobo-ui.h. While I was in here, I also renamed some
      	functions (especially xxx_cb -> xxx_callback), tweaked some text,
      	and used some more standard Gnome menu item pixmaps (not sure if I
      	like them or not yet).
      
      	* src/ntl-window-private.h,
      	* src/ntl-window.c:
      	(nautilus_window_back_cb), (nautilus_window_forward_cb),
      	(nautilus_window_up_cb), (nautilus_window_home_cb): Replaced
      	these GtkWidget-callback style functions (formerly used
      	by both menu items and toolbar buttons) with new NautilusWindow
      	oriented ones nautilus_window_go_back, nautilus_window_go_forward,
      	nautilus_window_go_up, and nautilus_window_go_home.
      	(nautilus_window_allow_back), (nautilus_window_allow_forward),
      	(nautilus_window_allow_up): replaced hardwired Bonobo menu paths
      	with the new #defines.
      
      	* src/nautilus-window-toolbars.c:
      	Renamed some functions xxx_cb -> xxx_callback.
      	(toolbar_back_callback), (toolbar_forward_callback),
      	(toolbar_up_callback), (toolbar_home_callback): New GtkWidget-callback
      	style functions used exclusively by the toolbar.
      
      	* src/file-manager/fm-directory-view.h:
      	Removed FM_DIRECTORY_VIEW_PATH_CLOSE and
      	FM_DIRECTORY_VIEW_PATH_SELECT_ALL, since callers should use
      	the paths defined by Nautilus for these.
      
      	* src/file-manager/fm-directory-view.c:
      	(fm_directory_view_real_merge_menus): Replaced special insider knowledge
      	of menu positions with use of the new #defines. Also tweaked with the
      	keyboard underscore shortcuts for some items.
      604acdd1
  20. 26 Apr, 2000 1 commit
    • Pavel Cisler's avatar
      src/file-manager/fm-directory-view.c Added "Move to Trash" and "Empty · c6a934be
      Pavel Cisler authored
      2000-04-26  Pavel Cisler  <pavel@eazel.com>
      
      	* src/file-manager/fm-directory-view.c
      	* src/file-manager/fm-directory-view.h:
      	(bonobo_menu_open_in_new_window_cb), (bonobo_menu_delete_cb),
      	(bonobo_menu_duplicate_cb), (fm_directory_view_get_model),
      	(fm_directory_view_delete_with_confirm), (append_uri_one),
      	(fm_directory_duplicate_selection), (compute_menu_item_info),
      	(fm_directory_view_real_append_selection_),
      	(fm_directory_view_real_merge_menus),
      	(fm_directory_view_real_update_menus), (free_file_by_uri_map),
      	(fm_directory_view_get_context_menu_index):
      	Added "Move to Trash" and "Empty Trash" menu items.
      	Disabled the existing Delete code (I'll scavenge it later to implement
      	Delete as a fallback.)
      
      	* src/file-manager/dfos-xfer.h:
      	* src/file-manager/dfos-xfer.c (file_operation_alert), (fs_xfer),
      	(get_parent_make_name_list), (fs_move_to_trash):
      	Add move to trash and empty trash calls.
      
      
      	* libnautilus-extensions/nautilus-file-changes-queue.c
      	(nautilus_file_changes_queue_get_change),
      	(nautilus_file_changes_consume_changes):
      	Fix a problem with nautilus_file_changes_consume_changes getting called
      	when there is no change allocated yet.
      
      	* libnautilus-extensions/nautilus-directory.c
      	(nautilus_directory_notify_files_added),
      	(nautilus_directory_notify_files_removed),
      	(nautilus_directory_notify_files_moved):
      	Got rid of old debugging code.
      c6a934be
  21. 22 Apr, 2000 1 commit
    • Gene Z. Ragan's avatar
      libnautilus-extensions/nautilus-icon-canvas-item.c Return value of · aa0ef3fd
      Gene Z. Ragan authored
      2000-04-21  Gene Z. Ragan  <gzr@eazel.com>
      	* libnautilus-extensions/nautilus-icon-canvas-item.c
      	* libnautilus-extensions/nautilus-icon-canvas-item.h
      	(nautilus_icon_canvas_item_get_max_text_width):
      	Return value of MAX_TEXT_WIDTH constant.  Used is positoning the rename
      	text widget.
      
      	* libnautilus-extensions/nautilus-icon-container.c
      	Added signal "icon_text_edit_occurred" called when the text rename widget
      	recieves some sort of edit, such as a keyboard entry.
      	(rename_text_dirty):  Returns boolean indicating edit state of
      	text in rename widget.  Used in undo operation.
      	(text_edited_callback):  Signal callback called when NautilusIconTextItem
      	text is edited.
      	(nautilus_icon_container_start_renaming_selected_item):  Fixed positioning
      	code to address bug #543
      	(nautilus_icon_container_undo_renaming_selected_item):  Added simple undo
      	code.  This needs to be replaced with a global undo system.
      
      	* libnautilus-extensions/nautilus-icon-text-item.c
      	(iti_paint_text):  Fixed drawing of i-beam to address bug #506
      	(iti_event): Added keyboard handling for simple undo
      	(nautilus_icon_text_item_get_margins):  Returns values of MARGIN_X and
      	MARGIN_X constants.  Used when positioning text item in canvas.
      
      	* src/file-manager/fm-directory-view.c
      	Moved menu item title constants to header file.  This is needed so
      	FMIconView can get menu position paths when placing items in the
      	bonobo and contect menus.  Renamed the constants to be specific to
      	FMDirectoryView.
      	(fm_directory_view_get_context_menu_index):  Added function to return
      	index of requested menu item.
      
      	* src/file-manager/fm-icon-view.c
      	(fm_icon_view_icon_text_edit_callback):  Callback that connect to
      	NautilusIconContainer signal.
      	(undo_rename_icon_callback): Added simple undo functionality.
      	(insert_one_context_menu_item): Added function to insert context menu
      	add a specific index.
      	Fixed bug #499, Rename menu in bad place in context menu.
      aa0ef3fd
  22. 14 Apr, 2000 1 commit
    • Ramiro Estrugo's avatar
      Split libnautilus into two pieces. · 09b3bf22
      Ramiro Estrugo authored
      libnautilus now only contains the view interfaces needed by nautilus
      components.
      
      These are the interfaces defined in nautilus-view-component.idl.
      
      libnautilus-extensions containes the remainder of the stuff.
      
      Also used the cvs repository munging opportunity to do some of the
      ntl-* renaming outlined in the RENAIMING file.
      09b3bf22
  23. 11 Apr, 2000 1 commit
  24. 10 Apr, 2000 1 commit
    • Darin Adler's avatar
      Finished changing all callers that use metadata to use it in a way · 08068379
      Darin Adler authored
      	that is compatible with async. metadata reading.
      
      	* components/notes/ntl-notes.c:
      	(notes_load_metainfo): Changed to use nautilus_file_call_when_ready
      	to wait for the metadata. Also fixed a bug that was causing an assert
      	inside the call to gtk_editable_insert_text.
      	(main): Made warnings and criticals stop in the debugger.
      
      	* libnautilus/nautilus-directory.c:
      	* libnautilus/nautilus-directory.h:
      	(nautilus_directory_call_when_ready): Renamed the call to indicate
      	it can wait for more than just metadata. For now it does only wait
      	for metadata, though.
      	(nautilus_directory_cancel_callback): Renamed this too.
      
      	* libnautilus/nautilus-file.c:
      	(nautilus_file_call_when_ready), (nautilus_file_cancel_callback):
      	Made a corresponding call for the metadata of a single file.
      
      	* libnautilus/nautilus-gdk-extensions.c:
      	* src/nautilus-index-title.c:
      	Formatting changes.
      
      	* libnautilus/nautilus-metadata.h:
      	Clarified that ANNOTATION is a per-file piece of metadata.
      
      	* src/ntl-uri-map.c:
      	* src/file-manager/fm-directory-view.c:
      	Use new names of calls.
      
      	* src/file-manager/fm-icon-view.c:
      	* src/file-manager/fm-list-view.c:
      	Added comment.
      08068379
  25. 07 Apr, 2000 1 commit
  26. 06 Apr, 2000 1 commit
    • John Sullivan's avatar
      Some cleanups from the file-renaming checkin I did · 5f2f9cb9
      John Sullivan authored
      	yesterday. The largest change was making NautilusDirectory
      	send "files-changed" signal instead of "files-removed"
      	signal when a file is removed. That way	interested callers
      	need register only for one signal. The callers can use
      	nautilus_file_is_gone () to test whether the file was removed.
      
      	* libnautilus/nautilus-directory-private.h:
      	(nautilus_directory_files_removed): Removed function.
      	* libnautilus/nautilus-directory.h:
      	(files_removed): Removed signal definition, updated comments.
      	* libnautilus/nautilus-directory.c:
      	Removed FILES_REMOVED signal enum entry;
      	(nautilus_directory_initialize_class): Removed FILES_REMOVED
      	signal creation.
      	(nautilus_directory_files_removed): Removed function.
      	* libnautilus/nautilus-file.c:
      	(get_file_for_parent_directory): New private function.
      	(nautilus_file_can_rename): This function was quite broken in
      	its initial check-in. It worked only on a random basis. Now it
      	works quite a bit better. It should only return FALSE if it's
      	darn well sure that the user can't rename the file; it returns
      	TRUE even if it isn't sure, so clients must handle failed
      	renames (which they would have to anyway).
      	(nautilus_file_delete): Call nautilus_file_changed instead of
      	nautilus_directory_files_removed when file is deleted.
      
      	* src/file-manager/fm-directory-view.h:
      	(remove_file): Remove signal definition, update comments.
      	* src/file-manager/fm-directory-view.c:
      	remove REMOVE_FILE signal enum entry;
      	remove files_removed_handler_id and pending_files_removed from
      	Details struct;
      	(fm_directory_view_initialize_class): remove REMOVE_FILE signal
      	initialization
      	(display_pending_files): remove "removed" case; made "changed"
      	case handle updating uri table; made "changed" case send signal
      	even if file is gone.
      	(files_removed_cb): Removed function.
      	(fm_directory_view_load_uri): removed connection to "files_removed"
      	signal
      	(disconnect_model_handlers): removed disconnect of files_removed_handler.
      
      	* src/file-manager/fm-icon-view.c:
      	(fm_icon_view_remove_file): Removed function.
      	(fm_icon_view_initialize_class): Remove remove_file signal handler override.
      	(fm_icon_view_file_changed): check if file is gone and do what
      	fm_icon_view_remove_file used to do if so.
      	* src/file-manager/fm-list-view.c:
      	(fm_list_view_remove_file): Removed function.
      	(fm_list_view_initialize_class): Remove remove_file signal handler override.
      	(fm_list_view_file_changed): check if file is gone and do what
      	fm_list_view_remove_file used to do if so.
      
      	* src/file-manager/fm-properties-window.c:
      	(properties_window_file_changed_callback): Don't update the window title
      	if you just nuked the window -- Doh! Now the Properties window will
      	vanish silently if the file is deleted.
      5f2f9cb9
  27. 05 Apr, 2000 1 commit
    • Maciej Stachowiak's avatar
      Make selection persistent across content view changes (task 105). · 491e5af1
      Maciej Stachowiak authored
      	* src/file-manager/fm-directory-view.c,
      	src/file-manager/fm-directory-view.h
      	(fm_directory_view_set_selection): New function.
      	(set_selection): New virtual method that must by implemented by
      	subclasses.
      	(add_nautilus_file_to_uri_map, remove_nautilus_file_from_uri_map,
      	free_file_by_uri_map_entry, free_file_by_uri_map): New functions
      	to manage a hash table mapping from uri strings to NautilusFile
      	objects.
      	(notify_selection_change_cb): New function; on a selection change
      	notification, either set the selection immediately if the view has
      	completed loading, or establish it as pending.
      	(display_pending_files): Maintain the uri -> file hash table on
      	notifications from the model; do any pending selections required
      	when loading completes.
      
      	* src/file-manager/fm-list-view.c (fm_list_view_set_selection):
      	New function to implement `set_selection' virtual method.
      
      	* src/file-manager/fm-icon-view.c (fm_icon_view_set_selection):
      	New function to implement `set_selection' virtual method.
      
      	* libnautilus/nautilus-list.c (nautilus_list_set_selection): New
      	function: set the selection to a specified set of rows.
      
      	* libnautilus/nautilus-icon-container.c,
      	libnautilus/nautilus-icon-container.h
      	(nautilus_icon_container_set_selection): New function: set the
      	selection to a specified set of icons.
      491e5af1
  28. 30 Mar, 2000 1 commit
  29. 29 Mar, 2000 1 commit
  30. 09 Mar, 2000 1 commit
    • Darin Adler's avatar
      You can now use Set Properties to attach keywords to a file, · 13f23bd3
      Darin Adler authored
      	which will cause it to have emblems attached to its icon.
      
      	* libnautilus/gnome-icon-container.h,
      	libnautilus/gnome-icon-container.c (gnome_icon_container_update,
      	gnome_icon_container_update_icon),
      	libnautilus/nautilus-directory-private.h,
      	libnautilus/nautilus-directory.c
      	(nautilus_directory_files_changed), libnautilus/nautilus-file.h,
      	libnautilus/nautilus-file.c (nautilus_file_changed),
      	src/file-manager/fm-directory-view.h,
      	src/file-manager/fm-directory-view.c,
      	src/file-manager/fm-directory-view-icons.c,
      	src/file-manager/fm-directory-view-list.c,: Add files_changed
      	machinery in so views will notice changes to a NautilusFile.
      
      	* libnautilus/nautilus-icon-factory.h,
      	libnautilus/nautilus-icon-factory.c
      	(nautilus_icon_factory_get_thumbnail_uri,
      	nautilus_icon_factor_get_icon_for_file, check_for_thumbnails),
      	libnautilus/nautilus-icons-controller.h,
      	libnautilus/nautilus-icons-controller.c,
      	(nautilus_icons_controller_update_icon),
      	src/file-manager/fm-icons-controller.c
      	(fm_icons_controller_update_icon): Use the files_changed machinery
      	instead of a special case in the icon controller to tell the view
      	about a new thumbnail.
      
      	* libnautilus/nautilus-icons-view-icon-item.c
      	(emblem_layout_next): Fixed typo that caused emblems to go down
      	one side of the icon instead of going around.
      
      	* libnautilus/nautilus-directory-private.h,
      	libnautilus/nautilus-directory.c
      	(nautilus_directory_get_file_metadata_node,
      	nautilus_directory_request_write_metafile),
      	libnautilus/nautilus-file.c (nautilus_file_set_keywords):
      	Implemented the set_keywords operation so we can change the
      	keywords for a file.
      
      	* src/file-manager/fm-icon-text-window.c
      	(create_icon_text_window): Fixed a prototype.
      
      	* src/file-manager/fm-properties-window.c (property_button_update,
      	property_button_toggled, create_properties_window,
      	fm_properties_window_get_or_create): Implement a first cut at a
      	properties window.
      13f23bd3
  31. 08 Mar, 2000 2 commits
    • Darin Adler's avatar
      Broke the file part of nautilus-directory.[ch] into nautilus-file.[ch]. · 6ba4e1e5
      Darin Adler authored
      	* components/music/nautilus-music-view.c,
      	components/notes/ntl-notes.c, libnautilus/Makefile.am,
      	libnautilus/nautilus-directory-private.h,
      	libnautilus/nautilus-directory.h,
      	libnautilus/nautilus-directory.c,
      	libnautilus/nautilus-file-private.h, libnautilus/nautilus-file.h,
      	libnautilus/nautilus-file.c, libnautilus/nautilus-icon-factory.h,
      	src/ntl-index-panel.c, src/file-manager/fm-directory-view.h:
      	Broke the file part of nautilus-directory.[ch] into
      	nautilus-file.[ch].
      
      	* libnautilus/nautilus-string.c (nautilus_strstrip): Added more
      	tests. Changed algorithm on strstrip so it's linear instead of
      	n^2.
      
      	* libnautilus/gnome-icon-container.c
      	(gnome_icon_container_initialize): Fixed font for "larger" zoom
      	level. Also made it assert if the font can't be loaded.
      
      	* components/help/hyperbola-nav-index.c (despace):
      	Fixed warning.
      
      	* libnautilus/gnome-icon-container-dnd.c,
      	libnautilus/nautilus-string.h: Whitespace.
      
      	* src/file-manager/Makefile.am,
      	src/file-manager/fm-directory-view.c,
      	src/file-manager/fm-properties-window.h,
      	src/file-manager/fm-properties-window.c: Added properties window
      	hook, but no window yet. The menu item still needs to be added to
      	the main menus as well as the context menus.
      
      	* src/file-manager/fm-directory-view.c,
      	src/file-manager/fm-directory-view-icons.c,
      	src/file-manager/fm-icon-text-window.h,
      	src/file-manager/fm-icon-text-window.c: A little cleanup. Shorter
      	names.
      6ba4e1e5
    • Darin Adler's avatar
      Reimplemented the delete command to use NautilusFile instead of · f026b4a2
      Darin Adler authored
      	going directly to the file system.
      
      	* libnautilus/gnome-icon-container.h,
      	libnautilus/gnome-icon-container.c
      	(gnome_icon_container_clear_selected_items),
      	(gnome_icon_container_remove): Got rid of the call that removes
      	all the icons in the selection and replaced it with a call that
      	removes a specific icon.
      
      	* libnautilus/nautilus-directory.h,
      	libnautilus/nautilus-directory.c
      	(nautilus_directory_initialize_class), (nautilus_file_unref),
      	(nautilus_file_detach), (nautilus_file_free),
      	(nautilus_file_delete), (nautilus_file_is_gone): Implemented a
      	call to delete a file and emit the files_removed signal as needed.
      
      	* src/file-manager/fm-directory-view.h,
      	src/file-manager/fm-directory-view.c
      	(fm_directory_view_delete_selection),
      	(fm_directory_view_begin_adding_entries),
      	(fm_directory_view_add_entry),
      	(fm_directory_view_done_adding_entries), (display_pending_files),
      	(add_or_remove_files), (add_files_cb), (remove_files_cb),
      	(delete_one): Changed the delete implementation to call
      	nautilus_file_delete and got rid of the explicit call to
      	delete_selection. The views now will remove their entries in
      	response to the change in the model.
      
      	* src/file-manager/fm-directory-view-icons.c
      	(fm_directory_view_icons_remove_entry),
      	(fm_directory_view_icons_delete_selection),
      	src/file-manager/fm-directory-view-list.c
      	(fm_directory_view_list_remove_entry),
      	(fm_directory_view_list_delete_selection): Eliminated the
      	delete_selection function in favor of the remove_entry function.
      f026b4a2
  32. 07 Mar, 2000 2 commits