- 27 Jan, 2000 1 commit
-
-
Andy Hertzfeld authored
hooked up zooming to the background context menu
-
- 26 Jan, 2000 2 commits
-
-
John Sullivan authored
-
John Sullivan authored
-
- 25 Jan, 2000 1 commit
-
-
Maciej Stachowiak authored
* src/file-manager/fm-directory-view.c, src/file-manager/fm-directory-view.h (fm_directory_view_popup_item_context_menu, fm_directory_view_popup_background_context_menu): New functions for subclasses to call, to implement right-click menus. Most of the guts are here now. Machinery to merge view-specific items with generic ones will be added here. * src/file-manager/fm-directory-view-icons.c, src/file-manager/fm-directory-view-list.c: Use the new interface for right-click stuff.
-
- 24 Jan, 2000 1 commit
-
-
Darin Adler authored
ask questions and perform actions, even though only the FMDirectoryViewIcons knows how to answer the questions and perform the actions. Replaced use of nautilus_file_get_info with specific accessors for various file info. * libnautilus/Makefile.am: libnautilus/nautilus-icons-controller.h: libnautilus/nautilus-icons-controller.c: libnautilus/gnome-icon-container-private.h: libnautilus/gnome-icon-container.h: libnautilus/gnome-icon-container.c: (icon_new_pixbuf): (gnome_icon_container_new): (gnome_icon_container_add): (gnome_icon_container_add_auto): Added NautilusIconsController, an interface provided so that the file manager can connect the icons up with the file code. This is all so we can keep the view/controller separation. This eliminates the need to pass around the icon name all the time, so the signals have changed to not take the icon name as a parameter. * src/file-manager/Makefile.am: src/file-manager/fm-icons-controller.c: src/file-manager/fm-icons-controller.h: Added FMIconsController, the actual controller used by the file manager instance of GnomeIconContainer. src/file-manager/fm-directory-view-icons.c: (create_icon_container): (add_icon_if_already_positioned): (add_icon_at_free_position): (icon_container_activate_cb): (fm_directory_view_icons_icon_moved_cb): Create and use the FMIconController. * libnautilus/gnome-icon-container-private.h: libnautilus/gnome-icon-container-dnd.c: (set_gnome_icon_list_selection): (set_uri_list_selection): libnautilus/gnome-icon-container.c: (gnome_icon_container_set_base_uri): src/file-manager/fm-directory-view-icons.c: (set_up_base_uri): (fm_directory_view_icons_begin_loading): Get rid of the old base_uri technique for handling drags. Instead the icon controller supplies URIs for icons when requested. * RENAMING: Proposed that we use NautilusIconsView as the new name for GnomeIconContainer instead of NautilusIconContainer. * libnautilus/gnome-icon-container-private.h: libnautilus/gnome-icon-container.h: libnautilus/gnome-icon-container.c: (gnome_icon_container_initialize): (handle_icon_enter_notify): (handle_icon_leave_notify): Renamed browser mode to linger selection mode. * libnautilus/gnome-icon-container-private.h: libnautilus/gnome-icon-container.h: libnautilus/gnome-icon-container.c: (icon_configure): (icon_position): (change_icon_mode): (gnome_icon_container_initialize): (gnome_icon_container_set_icon_mode): (gnome_icon_container_get_icon_mode): src/file-manager/fm-directory-view-icons.c: (fm_directory_view_icons_initialize): Got rid of icon mode, since we won't be using it. * libnautilus/gnome-icon-container-dnd.c: (get_gnome_icon_list_selection): Changed geometry parsing so it will not ignore extra characters after the numeric geometry. (gnome_icon_container_receive_dropped_icons): The code here tried to work when dragging icons between windows, but the implementation was actually only good within the same window, so I modified it to check for that case. * libnautilus/gnome-icon-container-dnd.c: (create_selection_shadow): (set_gnome_icon_list_selection): libnautilus/gnome-icon-container.c: (icon_position): Renamed GNOME_ICON_CONTAINER_ICON_XOFFSET to GNOME_ICON_CONTAINER_ICON_X_OFFSET and GNOME_ICON_CONTAINER_ICON_YOFFSET to GNOME_ICON_CONTAINER_ICON_Y_OFFSET. We use an underscore between words in identifiers. * libnautilus/gnome-icon-container.c: (destroy): Added code to remove timeouts and idles when the container is destroyed. * libnautilus/nautilus-directory.h: libnautilus/nautilus-directory.c: (nautilus_file_get_info): Get rid of the direct call to get GnomeVFSFileInfo. All info is accessed through individual functions. (nautilus_file_get_size): (nautilus_file_get_type): (nautilus_file_get_mime_type): (nautilus_file_is_executable): (nautilus_file_is_symbolic_link): Added new accessor functions as needed. src/file-manager/fm-directory-view.c: (display_selection_info): src/file-manager/fm-icon-cache.c: (fm_icon_cache_get_icon_set_for_file): (fm_icon_cache_get_icon_for_file): Change code to use the accessors instead of get_info. * libnautilus/nautilus-gtk-macros.h: (NAUTILUS_ASSIGN_MUST_OVERRIDE_SIGNAL): Changed macro to take a class pointer of the right type instead of taking both a casting macro name and a class pointer. src/file-manager/fm-directory-view.c: (fm_directory_view_initialize_class): Changed existing uses of macro to match. * src/file-manager/Makefile.am: src/file-manager/fm-icon-cache.c: src/file-manager/fm-default-file-icon.h: src/file-manager/fm-default-file-icon.c: Moved the default icon into its own file.
-
- 21 Jan, 2000 1 commit
-
-
Darin Adler authored
* src/file-manager/fm-directory-view.c: (fm_directory_view_activate_entry): Fixed double free that was causing lots of nasty errors in the file manager. (fm_directory_view_load_uri): Made the old directory hang around a bit longer when loading a new uri. (display_selection_info): (fm_directory_view_send_selection_change): (display_selection_info_idle_cb): Fixed a storage leak and broke out the selection change into its own function instead of mixing it with the status line. Also made the selection actually use URIs instead of just names for the selected items. * libnautilus/nautilus-directory.h: libnautilus/nautilus-directory.c: (nautilus_file_get_uri): Added this function that gets a URI (rather than just a leaf name). * libnautilus/nautilus-directory.c: (nautilus_directory_finalize): (nautilus_self_check_directory): Added more self checks and fixed a bug where a metadata change would get lost if you delete the directory too soon after making the change.
-
- 20 Jan, 2000 3 commits
-
-
Elliot Lee authored
* src/ntl-uri-map.c: Async notification of navinfo - now we just need an async get_file_info call. * src/ntl-view.[ch]: Better error handling. * src/file-manager/fm-directory-view.c (display_selection_info): Send a 'selection change' request. * src/ntl-window-msgs.c: Totally rewrite the state changing machine. Now handles errors slightly better. * src/ntl-types.h: Remove requesting_view from the navigation info. * src/ntl-window.h: Move all the state machine stuff into NautilusWindow itself. * src/ntl-window.c: Update for new 'stop doing stuff' API.
-
Darin Adler authored
storing ICON_X and ICON_Y. Take first step in moving the directory view to use the opaque NautilusDirectory and NautilusFile instead of using gnome-vfs directly. This will separate the controller from the model: FMDirectoryView is a controller and NautilusDirectory a model. * src/file-manager/fm-directory-view-icons.c: (add_to_icon_container): (fm_directory_view_icons_icon_moved_cb): Store icons positions as "x,y" in ICON_POSITION instead of storing separate numbers in ICON_X and ICON_Y. * libnautilus/nautilus-directory.h: libnautilus/nautilus-directory.c: (nautilus_directory_get_uri): Added a new call needed to replace fm_directory_view_get_uri. (nautilus_directory_get_file_metadata): (nautilus_directory_set_file_metadata): (nautilus_file_get_metadata): (nautilus_file_set_metadata): Moved the calls for getting and setting file metadata into the file objects. (nautilus_directory_new_file): (nautilus_file_get_info): Added temporary interfaces for the current situation where we're dealing with both NautilusFile and GnomeVFSFileInfo objects at once. (nautilus_directory_finalize): Detach and unref all the files when the directory is destroyed. (nautilus_file_unref): (nautilus_file_get_name): Implemented these functions now that we are using them. * src/file-manager/fm-directory-view.h: src/file-manager/fm-directory-view.c: (fm_directory_view_add_entry): (fm_directory_view_activate_entry): (display_selection_info): (fm_directory_view_get_selection): src/file-manager/fm-directory-view-icons.c: (add_to_icon_container): (fm_directory_view_icons_icon_moved_cb): (dm_directory_view_icons_add_entry): (fm_directory_view_icons_get_selection): (icon_container_activate_cb): src/file-manager/fm-directory-view-list.c: (add_to_flist): (fm_directory_view_list_add_entry): Change all the code to work with NautilusFile instead of GnomeVFSFileInfo, except for the parts of FMDirectoryView dealing with the directory_list. * src/file-manager/fm-directory-view.h: src/file-manager/fm-directory-view.c: (nautilus_file_date_as_string): (nautilus_file_size_as_string): (nautilus_file_type_as_string): libnautilus/nautilus-directory.h: libnautilus/nautilus-directory.c: (nautilus_file_get_date_as_string): (nautilus_file_get_size_as_string): (nautilus_file_get_type_as_string): Moved and renamed these functions and made them work on NautilusFile objects.
-
John Sullivan authored
-
- 19 Jan, 2000 3 commits
-
-
John Sullivan authored
-
Darin Adler authored
on the icon view. * libnautilus/gnome-icon-container-dnd.h: libnautilus/gnome-icon-container-dnd.c: (gnome_icon_container_position_shadow): (drag_data_received_cb): (gnome_icon_container_ensure_drag_data): (drag_motion_cb): (drag_drop_cb): (gnome_icon_container_receive_dropped_icons): (gnome_icon_container_free_drag_data): (drag_leave_cb): Added support for receiving dropped colors to change the background of a GnomeIconContainer. * src/file-manager/fm-directory-view-icons.c: (fm_directory_view_icons_initialize_class): (fm_directory_view_icons_clear): (fm_directory_view_icons_background_changed_cb): Added code to load and save the background color from metadata. * libnautilus/gdk-extensions.c: (nautilus_gradient_new): Changed nautilus_gradient_new to handle NULLs in the same way that the rest of the gradient functions do instead of NULL being an illegal input value. * src/file-manager/fm-directory-view.h: src/file-manager/fm-directory-view.c: (fm_directory_view_initialize): (fm_directory_view_destroy): (fm_directory_view_get_model): (fm_directory_view_load_uri): Added a NautilusDirectory object to each directory view, accessed by subclasses with a call to fm_directory_view_get_model. * libnautilus/nautilus-gtk-extensions.h: libnautilus/nautilus-gtk-extensions.c: (gnome_icon_container_dropped_icon_feedback): (nautilus_gdk_selection_data_copy_deep): Added deep versions of these GtkSelectionData functions. * libnautilus/nautilus-gtk-macros.h: (NAUTILUS_DEFINE_GET_TYPE_FUNCTION): (NAUTILUS_DEFINE_CLASS_BOILERPLATE): Added definition and initialization of the parent_class global to NAUTILUS_DEFINE_GET_TYPE_FUNCTION and renamed it to NAUTILUS_DEFINE_CLASS_BOILERPLATE. * libnautilus/nautilus-background-canvas-group: (nautilus_background_canvas_group_initialize_class): libnautilus/nautilus-background.c: (nautilus_background_initialize_class): libnautilus/nautilus-directory.c: (nautilus_directory_initialize_class): src/ntl-index-panel.c: (nautilus_index_panel_initialize_class): src/file-manager/fm-directory-view-icons.c: (fm_directory_view_icons_initialize_class): src/file-manager/fm-directory-view-list.c: (fm_directory_view_list_initialize_class): src/file-manager/fm-directory-view.c: (fm_directory_view_initialize_class): Take advantage of the new NAUTILUS_DEFINE_CLASS_BOILERPLATE and get rid of existing code to set up parent_class. * libnautilus/gnome-icon-container-dnd.h: libnautilus/gnome-icon-container-dnd.c: libnautilus/gnome-icon-container-layout.h: libnautilus/gnome-icon-container-layout.c: libnautilus/gnome-icon-container.c: Minimized includes.
-
John Sullivan authored
-
- 18 Jan, 2000 4 commits
-
-
John Sullivan authored
-
John Sullivan authored
-
Darin Adler authored
* libnautilus/nautilus-directory.c: (nautilus_directory_read_metafile): (nautilus_directory_try_to_read_metafile): (nautilus_directory_write_metafile): (nautilus_directory_try_to_write_metafile): (nautilus_directory_switch_to_alternate_metafile_uri): (nautilus_directory_escape_slashes): (nautilus_make_directory_and_parents): Added first cut at code to put metafiles in the user's home directory if the directory is not accessible and you can't read and write a metafile in the directory itself. We'll have to refine this later to handle cases where you end up with two metafiles. * libnautilus/Makefile.am: libnautilus/nautilus-debug.h: libnautilus/nautilus-debug.c: Took trick for getting into the debugger and put it into a public header file so it can be used outside of the nautilus executable. * src/ntl-main.c: (stop_in_debugger): (nautilus_stop_after_default_log_handler): (main): Use the new calls from libnautilus to set up the drop into debugger for criticals and warnings. * src/file-manager/fm-main.c: (main): Minimized includes and used the new calls from libnautilus to set up the drop into debugger for criticals and warnings. * src/ntl-uri-map.c: (nautilus_navinfo_add_mapping): src/ntl-window.c: (nautilus_window_constructed): src/file-manager/fm-directory-view.c: (fm_directory_view_initialize): (fm_directory_view_destroy): (notify_location_change_cb): (stop_location_change_cb): (fm_directory_view_sort): Removed some messages that aren't so useful. * libnautilus/ntl-view-frame.h: Minimized includes. * libnautilus/ntl-view-frame.c: Include "ntl-view-frame.h" first so it tests to see that it has sufficient includes in it. * src/ntl-view.c: (nautilus_view_load_client): Changed function so that NULL for an iid is allowed and simply results in a failed load instead of being illegal. * src/ntl-window-msgs.c: (nautilus_window_change_location_internal): src/ntl-window.c: (nautilus_window_up): Got rid of calls to gnome_vfs_uri_destroy; use gnome_vfs_uri_unref instead since it's safer and Federico is getting rid of gnome_vfs_uri_destroy. * src/file-manager/fm-directory-view-icons.h: src/file-manager/fm-directory-view-icons.c: (fm_directory_view_icons_new): src/file-manager/fm-directory-view-list.h: src/file-manager/fm-directory-view-list.c: (fm_directory_view_list_new): src/file-manager/fm-directory-view.h: src/file-manager/fm-directory-view.c: (fm_directory_view_new): Minimized includes and got rid of the unused _new functions. * libnautilus/nautilus-directory.h: Added a missing 2000 copyright date.
-
John Sullivan authored
-
- 15 Jan, 2000 2 commits
-
-
John Sullivan authored
-
John Sullivan authored
-
- 14 Jan, 2000 1 commit
-
-
John Sullivan authored
done now!
-
- 13 Jan, 2000 2 commits
-
-
John Sullivan authored
subclass; also deployed Darin's other boilerplate-reducing macros in fm-directory-view-icons.c and fm-directory-view-list.c
-
John Sullivan authored
-
- 12 Jan, 2000 1 commit
-
-
John Sullivan authored
a private function in ntl-window.c.
-
- 11 Jan, 2000 3 commits
-
-
Maciej Stachowiak authored
* src/file-manager/fm-main.c, src/file-manager/fm-directory-view.c, src/file-manager/fm-directory-view.h: Changed FMDirectoryView to use a NautilusViewFrame rather than inheriting from one.
-
John Sullivan authored
-
Maciej Stachowiak authored
* libnautilus/ntl-content-view-frame.c, libnautilus/ntl-content-view-frame.h, libnautilus/ntl-meta-view-frame.c, libnautilus/ntl-meta-view-frame.h, libnautilus/ntl-view-frame.c, libnautilus/ntl-view-frame.h, src/ntl-app.c, src/ntl-view-bonobo-control.c, src/ntl-view-bonobo-subdoc.c, src/ntl-view-frame-svr.c, src/ntl-view-nautilus.c, src/ntl-view-private.h, src/ntl-view.c, src/ntl-view.h, src/ntl-window-msgs.c, src/ntl-window-msgs.h, src/ntl-window-state.c, src/ntl-window.c, src/ntl-window.h, src/file-manager/fm-directory-view.c, src/file-manager/fm-directory-view.h, src/file-manager/fm-main.c: Added Eazel copyright to files I've changed non-trivially.
-
- 10 Jan, 2000 1 commit
-
-
Maciej Stachowiak authored
* libnautilus/ntl-view-client.c, libnautilus/ntl-view-client.h, libnautilus/ntl-content-view-client.c, libnautilus/ntl-content-view-client.h, libnautilus/ntl-meta-view-client.c, libnautilus/ntl-meta-view-client.h,: Rename NautilusViewClient to NautilusViewFrame, NautilusContentViewClient to NautilusContentViewFrame, and NautilusMetaViewClient to NautilusMetaViewFrame. * components/help/hyperbola-nav-tree.c, components/history/ntl-history-view.c, components/html/ntl-web-browser.c, components/websearch/ntl-web-search.c, src/ntl-app.c, src/file-manager/fm-directory-view.c, src/file-manager/fm-directory-view.h: Reflect the above renaming.
-
- 05 Jan, 2000 1 commit
-
-
Elliot Lee authored
* src/ntl-types.h, src/ntl-uri-map.[ch], src/ntl-window-msgs.c, src/ntl-window.[ch]: Add support for the location change state machine and related notifications, to allow much better error handling. * src/ntl-view.[ch]: Catch client failures, also allow for active sensing of client death. * src/file-manager/fm-directory-view.c: Send progress notifications. * components/html/ntl-web-browser.c: Send progress notifications. Try to fix crashes caused by ending an error stream twice.
-
- 04 Jan, 2000 1 commit
-
-
Maciej Stachowiak authored
* idl/nautilus.idl: Added stop_location_change method to NautilusView interface. * ntl-view-client.c, ntl-view-client.h (stop_location_change): New signal, triggered on receipt of stop_location_change request via CORBA. * ntl-view.c, ntl-view.h, ntl-view-private.h, ntl-view-nautilus.c, ntl-view-bonobo-control.c, ntl-view-bonobo-subdoc.c (nautilus_view_stop_location_change): Added this function; also added implementation to nautilus view type function table and NULL'd out for now for Bonobo control and subdoc view types (need to find out if loading is synchronous or asynchronous for those, and if there is a way to abort). * ntl-window.c: Stop loading for all views when Stop button is pressed. * ntl-window-msgs.c: Enable stop button when we start loading; enable Stop button when * src/file-manager/fm-directory-view.c: Call request_progress_change() when loading is done or an error is reached; implement handler for stop_location_change signal.
-
- 03 Jan, 2000 1 commit
-
-
Elliot Lee authored
2000-01-03 Elliot Lee <sopwith@redhat.com> Update copyright notices.
-
- 22 Dec, 1999 1 commit
-
-
Elliot Lee authored
Allow passing initial URL on cmdline. Try to make web browser work.
-
- 19 Dec, 1999 3 commits
-
-
Elliot Lee authored
* src/ntl-*.[ch]: Support multiple view types (Nautilus/View, GNOME/Control, GNOME/Embeddable) * src/ntl-window.[ch]: Add nautilus_window_get_uih() * idl/*.idl: Reindent.
-
Havoc Pennington authored
1999-12-19 Havoc Pennington <hp@pobox.com> * src/file-manager/desktop-canvas.c (desktop_canvas_load_desktop_icons): new function, loads icons from a given directory - don't get too excited, it doesn't yet _display_ any icons! * src/file-manager/desktop-canvas.h: Add directory list field. * src/file-manager/Makefile.am (gnome_desktop_SOURCES): Add fm-directory-list.[hc] (libntl_file_manager_la_SOURCES): add fm_directory_list.[hc] * src/file-manager/fm-directory-list.h, fm-directory-list.c: New files, the non-GUI portion of a directory listing. Handles loading the dir listing and the icons.
-
Havoc Pennington authored
This just makes the global icon cache accessible from outside FMDirectoryView.
-
- 17 Dec, 1999 2 commits
-
-
Elliot Lee authored
* libnautilus/{gdk-extensions.c,gnome-icon-container.c}: Fix warnings * libnautilus/gnome-icon-container.c: Try (unsuccessfully) to get proper icon reflow by calling icon_grid_resize() instead of icon_grid_set_visible_width(), in size_allocate(). * src/*.*: Add ntl-app.[ch]. * src/file-manager/desktop-*.c: Fix warnings. * src/file-manager/fm-directory-view.c: Remove incorrect warning, allow turning off use of icon_layout altogether.
-
John Sullivan authored
-
- 16 Dec, 1999 3 commits
-
-
John Sullivan authored
allowed warnings to be non-fatal even when NAUTILUS_DEBUG is defined. This allows us to continue working on Nautilus until the vfs problem about directory iterating is fixed.
-
Elliot Lee authored
Change assertion to warning
-
Elliot Lee authored
1999-12-16 Elliot Lee <sopwith@redhat.com> * components/help/hyperbola-nav-tree.c: Translate strings. * components/history/ntl-history-view.c: Bug fixes, use API function for setting meta-view label. * libnautilus/ntl-meta-view-client.[ch]: s/meta_view_set_label/meta_view_client_set_label/ * src/ntl-uri-map.c: Use history view instead of help view as the default meta view for now. * src/ntl-window.c: As per the comment that was removed from ntl-window.c, gnome_app_install_menu_hints() needs to be called _after_ statusbar creation * src/file-manager/fm-directory-view.c: Add more debugging assertions and messages.
-
- 15 Dec, 1999 2 commits
-
-
Elliot Lee authored
* components/Makefile.am: Turn on compilation of hyperbola component. * components/help/*: Compile and run. * libnautilus/ntl-meta-view-client.c: Create & set the property bag if it doesn't exist. * src/ntl-uri-map.c: Load the hyperbola nav tree component as a test meta view. * src/ntl-view.c: Fill in NULL fields with empty strings, so that ORBit doesn't segfault. * src/ntl-window-msgs.c: When creating new meta views, they should be meta views and not content views (cut & paste error). * src/file-manager/fm-directory-view.c: Don't redisplay every time a new entry comes in.
-
Darin Adler authored
using the history buttons. Improved selection info display in status bar.
-