1. 22 Jan, 2000 3 commits
    • Havoc Pennington's avatar
      check for libwww · f538796e
      Havoc Pennington authored
      2000-01-22  Havoc Pennington  <hp@pobox.com>
      
      	* configure.in: check for libwww
      
      		* components/html/Makefile.am: add libwww flags
      f538796e
    • Maciej Stachowiak's avatar
      Added background and item context click menus. Right now they only work · 4da01575
      Maciej Stachowiak authored
      	* src/file-manager/fm-directory-view-icons.c: Added background and
      	item context click menus. Right now they only work for the
      	directory view, and contain only insensitive items. This needs
      	more work but I wanted to check in something basic.
      4da01575
    • Havoc Pennington's avatar
      fix to gnomecanvaspixbuf · 7bc75aef
      Havoc Pennington authored
      2000-01-21  Havoc Pennington  <hp@redhat.com>
      
      * src/file-manager/Makefile.am (INCLUDES): fix to gnomecanvaspixbuf
      
      * src/Makefile.am (INCLUDES): fix to gnomecanvaspixbuf
      
      * libnautilus/Makefile.am (INCLUDES): fix to use gnomecanvaspixbuf
      flags
      
      * configure.in: Look for gnomecanvaspixbuf properly (via
      gnome-config)
      7bc75aef
  2. 21 Jan, 2000 12 commits
    • John Sullivan's avatar
      *** empty log message *** · d5794212
      John Sullivan authored
      d5794212
    • John Sullivan's avatar
      Make icons appear in list view. · e73d8421
      John Sullivan authored
      e73d8421
    • Elliot Lee's avatar
      Add a specific flag to indicate reload, and make use of it. · f7492a63
      Elliot Lee authored
      
      
      * src/ntl-window.[ch], src/ntl-window-msgs.c,
      src/ntl-window-private.h: Add a specific flag to indicate reload, and make use of it.
      f7492a63
    • Elliot Lee's avatar
      Allocate an extra byte in the buffer, for safety's sake. Fix back/fwd · dfc585b3
      Elliot Lee authored
      
      
      * libnautilus/nautilus-directory.c: Allocate an extra byte in the
        buffer, for safety's sake.
      * src/ntl-window-msgs.c: Fix back/fwd buttons.
      dfc585b3
    • Elliot Lee's avatar
      Remove debugging printouts, and display error dialogs. · 482a598e
      Elliot Lee authored
      
      
      * src/ntl-window-msgs.c: Remove debugging printouts, and display error dialogs.
      482a598e
    • Elliot Lee's avatar
      Fix bug that was causing list view to be blank. · 84bc7431
      Elliot Lee authored
      
      
      Fix bug that was causing list view to be blank.
      84bc7431
    • Darin Adler's avatar
      Started some cleanup of the icon view. · 49f7a162
      Darin Adler authored
      	* libnautilus/Makefile.am:
      	libnautilus/gnome-icon-container-layout.c:
      	libnautilus/gnome-icon-container-layout.h:
      	libnautilus/gnome-icon-container.c:
      	libnautilus/gnome-icon-container.h:
      	src/file-manager/fm-directory-view-icons.c:
      	src/file-manager/fm-directory-view-icons.h:
      	Got rid of the GnomeIconContainerLayout.
      	This was the old mechanism for saving and loading
      	icon positions and we have a better signal-based one.
      	Also made the new mechanism work more the way that
      	Ettore had intended to make the layout work, where
      	all the icons that have preassigned positions get
      	positioned first, then the ones that are auto positioned.
      	In the long run, we'll need something a bit fancier.
      
      	* libnautilus/gnome-icon-container-dnd.c:
      	libnautilus/gnome-icon-container.c:
      	libnautilus/gnome-icon-container.h:
      	libnautilus/gnome-icon-container-private.h:
      	Change the priv pointer to be named details to match
      	what we use in other places in Nautilus.
      49f7a162
    • John Sullivan's avatar
      Activate on single-click in list view. · 7c1de70b
      John Sullivan authored
      7c1de70b
    • Andy Hertzfeld's avatar
      disabled the pernicious call to relayout in size_allocate, at least · 8080e76f
      Andy Hertzfeld authored
      
            disabled the pernicious call to relayout in size_allocate, at least
            temporarily
      8080e76f
    • John Sullivan's avatar
      Added missing entry. · c02264c8
      John Sullivan authored
      c02264c8
    • Elliot Lee's avatar
      Missed piece in last commit. · 1a5d6701
      Elliot Lee authored
      
      
      Missed piece in last commit.
      1a5d6701
    • Darin Adler's avatar
      Fixed double free that was causing lots of nasty errors in the file · 97ce483d
      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.
      97ce483d
  3. 20 Jan, 2000 11 commits
    • John Sullivan's avatar
      fde66d2d
    • Jonathan Blandford's avatar
      more initialization to clean up an warning. · f7b5f98c
      Jonathan Blandford authored
      2000-01-20  Jonathan Blandford  <jrb@redhat.com>
      
              * src/file-manager/fm-directory-view-list.c (column_clicked_cb):
              more initialization to clean up an warning.
      f7b5f98c
    • Darin Adler's avatar
      Fixed a bug where dragging an icon would cause the "kbd_selected" icon to · c4c5ae7d
      Darin Adler authored
      	* src/gnome-icon-container.c:
      	(gnome_icon_container_xlate_selected):
      	Fixed a bug where dragging an icon would cause the "kbd_selected"
      	icon to scroll into view. Just passed FALSE instead of TRUE for
      	"schedule_visibility".
      
      	* libnautilus/nautilus-background.c:
      	(nautilus_background_draw_flat_box):
      	Tiny change, to fit our style rule against initializing.
      c4c5ae7d
    • Jonathan Blandford's avatar
      fix warning. · 75cb3ed1
      Jonathan Blandford authored
      2000-01-20  Jonathan Blandford  <jrb@redhat.com>
      
      	* libnautilus/nautilus-background.c
      	(nautilus_background_draw_flat_box): fix warning.
      75cb3ed1
    • Elliot Lee's avatar
      Async notification of navinfo - now we just need an async get_file_info · e7df9b4e
      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.
      e7df9b4e
    • Darin Adler's avatar
      Store icon positions as "x,y" in ICON_POSITION instead of · f804c9ac
      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.
      f804c9ac
    • John Sullivan's avatar
      Just fixed date. · 430ca69c
      John Sullivan authored
      430ca69c
    • John Sullivan's avatar
      188354f8
    • Darin Adler's avatar
      Made backgrounds work better in the list view. Gradients still · 1546a8b2
      Darin Adler authored
      	won't work because the list view draws its background with calls
      	to gdk_draw_rectangle explicitly, and doesn't call the functions
      	in the style, so it can't be overridden.
      
      	* libnautilus/nautilus-background.c:
      	(nautilus_background_set_widget_style): Fix bug where the list
      	items were not highlighting properly. Set only the NORMAL and
      	ACTIVE background color. That way we don't screw up the SELECTED
      	and other background colors.
      1546a8b2
    • Darin Adler's avatar
      390272a3
    • Darin Adler's avatar
      The list view now has a background color just like the · 72acf48f
      Darin Adler authored
      	icon view does. Some more code could be saved, but that's
      	a refactoring for another time.
      
      	* libnautilus/gtkflist.c: Added support for receiving dragged
      	colors to set the background of the list.
      
      	* src/file-manager/fm-directory-view-list.c:
      	(fm_directory_view_list_initialize_class):
      	(fm_directory_view_list_clear):
      	(fm_directory_view_list_background_changed_cb): Added code to load
      	and save the background color from metadata.
      
      	* libnautilus/nautilus-background.c: Put the background color in
      	all the bg and base colors in the style instead of putting it only
      	in bg[GTK_STATE_NORMAL].
      
      	* libnautilus/nautilus-gtk-macros.h:
      	(NAUTILUS_DEFINE_CLASS_BOILERPLATE): Make sure that the macro only
      	evaluates the parent_class_type argument once, like it says in the
      	comment. (NAUTILUS_CALL_PARENT_CLASS): Fix this macro so it can
      	be used in places where an expression is expected.
      
      	* RENAMING: Added this file to list name changes we are
      	planning for the future.
      
      	* libnautilus/gtkflist.h: libnautilus/gtkflist.c:
      	src/explorer-location-bar.h: src/explorer-location-bar.c:
      	Minimized includes.
      
      	* src/ntl-index-panel.c:
      	src/file-manager/fm-directory-view-icons.c: Fixed some comments
      	and formatting.
      72acf48f
  4. 19 Jan, 2000 8 commits
    • Darin Adler's avatar
      Icon positions are now written out when you drag an icon, · 771cbf47
      Darin Adler authored
      	and read in when you visit a directory. But the code then
      	immediately re-lays out the icons, so the position is lost!
      
      	* src/file-manager/fm-directory-view-icons.c:
      	(fm_directory_view_icons_icon_moved_cb):
      	(fm_directory_view_icons_initialize): (add_container_icon): Save
      	icon position when an icon is moved. Get icon position when an
      	icon is first created.
      
      	* libnautilus/nautilus-directory.c:
      	(nautilus_directory_get_metadata_from_node):
      	(nautilus_directory_get_metadata):
      	(nautilus_directory_create_metafile_tree_root):
      	(nautilus_directory_get_metadata):
      	(nautilus_directory_set_metadata):
      	(nautilus_directory_get_file_metadata):
      	(nautilus_directory_set_file_metadata): Added the routines to get
      	and set metadata for individual files.
      
      	* libnautilus/nautilus-string.h: libnautilus/nautilus-string.c:
      	(nautilus_eat_strcmp): (nautilus_string_to_int):
      	(nautilus_eat_string_to_int): Made new string functions that free
      	the existing strings, and a function to convert an int to a
      	string.
      
      	* libnautilus/gnome-icon-container.h:
      	libnautilus/gnome-icon-container.c: (move_icon): (class_init):
      	(handle_icon_button_press): Added context_click_background and
      	icon_moved signals, and renamed context_click to
      	context_click_icon.
      
      	* configure.in: Turned -Wunused back on. I had to turn -W off,
      	but I think it's worth it.
      771cbf47
    • John Sullivan's avatar
      Ref and destroy file infos correctly. · 8d1eba09
      John Sullivan authored
      8d1eba09
    • Darin Adler's avatar
      After Andy explained his change to me, I realized that it would always · edb4ab4e
      Darin Adler authored
      	* libnautilus/nautilus-directory.c: (nautilus_directory_finalize):
      	(nautilus_directory_try_to_read_metafile):
      	(nautilus_directory_read_metafile):
      	(nautilus_directory_try_to_write_metafile):
      	(nautilus_directory_write_metafile):
      	(nautilus_directory_construct_alternate_metafile_uri):
      	(nautilus_directory_new): After Andy explained his change to me, I
      	realized that it would always write the metafile in the alternate
      	place if there was no pre-existing metafile. So I changed the
      	logic. The new rule is: read the metafile from the alternate
      	location first. If we find it there, write it back
      	there. Otherwise, try to write in the directory itself. If that
      	fails, write it in the alternate location instead.
      
      	* libnautilus/nautilus-directory.c:
      	(nautilus_directory_get_metadata): Allow get_metadata on a NULL
      	NautilusDirectory and return NULL for data.
      edb4ab4e
    • Darin Adler's avatar
      Allow changing the background of the icon view by dropping colors · 4dc286da
      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.
      4dc286da
    • Andy Hertzfeld's avatar
      made icons centered with respect to the text · 2689b7f2
      Andy Hertzfeld authored
      
         made icons centered with respect to the text
      2689b7f2
    • Ettore Perazzoli's avatar
    • Andy Hertzfeld's avatar
      don't activate files if the button was held down for too long · 3067cd62
      Andy Hertzfeld authored
      
              don't activate files if the button was held down for too long
      3067cd62
    • John Sullivan's avatar
      a5ee623e
  5. 18 Jan, 2000 6 commits