1. 11 Mar, 2000 4 commits
    • Darin Adler's avatar
      Fixed typo that broke all hit testing except for rubber band selection! · 374870d5
      Darin Adler authored
      	* libnautilus/nautilus-icons-view-icon-item.c
      	(nautilus_icons_view_icon_item_point):
      	Fixed typo that broke all hit testing except for rubber band
      	selection! (Sorry.)
      
      	* libnautilus/gnome-icon-container-dnd.c
      	(set_gnome_icon_list_selection, set_uri_list_selection),
      	libnautilus/gnome-icon-container-private.h,
      	libnautilus/gnome-icon-container.h,
      	libnautilus/gnome-icon-container.c
      	(gnome_icon_container_get_icon_uri,
      	gnome_icon_container_initialize_class, gnome_icon_container_new,
      	update_icon, gnome_icon_container_update,
      	gnome_icon_container_request_update),
      	src/file-manager/fm-directory-view-icons.c (create_icon_container,
      	get_icon_images_cb, get_icon_uri_cb, get_icon_text_cb,
      	get_icon_property_cb): Change code that used to use a separate
      	controller object to just use signals on the icon container
      	instead.
      
      	* libnautilus/nautilus-gtk-extensions.h,
      	libnautilus/nautilus-gtk-extensions.c,
      	src/file-manager/fm-directory-view.c: Add new signal marshal
      	functions as needed and changed the name of one of the old
      	functions.
      
      	* libnautilus/Makefile.am,
      	libnautilus/nautilus-icons-controller.h,
      	libnautilus/nautilus-icons-controller.c,
      	src/file-manager/Makefile.am,
      	src/file-manager/fm-icons-controller.h,
      	src/file-manager/fm-icons-controller.c: Removed the old controller
      	object, it was a bad idea.
      374870d5
    • Ramiro Estrugo's avatar
      Fix dumbass typo. · 42b61c2e
      Ramiro Estrugo authored
      42b61c2e
    • Ramiro Estrugo's avatar
      src/Makefile.am Moved prefs things to nautilus-widgets. Use · 00f9035c
      Ramiro Estrugo authored
      	* src/Makefile.am
      	Moved prefs things to nautilus-widgets.
      	Use alphabetization technology on the source list.
      
      	* src/nautilus-global-preferences.c,
      	  src/nautilus-global-preferences.h:
      	New files that to deal with preferences that are
      	global to nautilus.
      
      	* src/nautilus-window-menus.c:
      	Use the new preferences dialog.
      
      	* src/ntl-window-state.c:
      	Go to a different home directory based on the user level.
      	Commented off until andy makes a nice default home directory
      	for novice users.
      
      	* src/nautilus-prefs-box.c
      	  src/nautilus-prefs-box.h,
      	  src/nautilus-prefs-dialog.c,
      	  src/nautilus-prefs-dialog.h,
      	  src/nautilus-prefs-group-check.c,
      	  src/nautilus-prefs-group-check.h,
      	  src/nautilus-prefs-group-radio.c,
      	  src/nautilus-prefs-group-radio.h,
      	  src/nautilus-prefs-group.c,
      	  src/nautilus-prefs-group.h,
      	  src/nautilus-prefs-pane.c,
      	  src/nautilus-prefs-pane.h,
      	  src/ntl-prefs.c,
      	  src/ntl-prefs.h:
      	Moved prefs widegtry things to nautilus-widgets.
      00f9035c
    • Ramiro Estrugo's avatar
      Moved all the preference widetry to nautilus-widgets. · b9488278
      Ramiro Estrugo authored
      Added a test program for preferences (not built).
      Renamed files to user "preference" instead of "prefs".
      b9488278
  2. 10 Mar, 2000 16 commits
    • Darin Adler's avatar
      Fixed rubber banding to hit test with all the parts of the icon, not just · bddcc07d
      Darin Adler authored
      	* libnautilus/Makefile.am, libnautilus/gnome-icon-container-dnd.c
      	  (set_gnome_icon_list_selection,
      	  gnome_icon_container_dnd_begin_drag),
      	  libnautilus/gnome-icon-container.c (icon_is_in_region,
      	  start_stretching), libnautilus/nautilus-icons-view-icon-item.h,
      	  libnautilus/nautilus-icons-view-icon-item.c (hit_stretch_handle,
      	  hit_test_pixbuf, hit_test, nautilus_icons_view_icon_item_point,
      	  nautilus_icons_view_icon_item_get_icon_world_rectangle,
      	  nautilus_icons_view_icon_item_get_icon_rectangle,
      	  nautilus_icons_view_icon_item_get_icon_window_rectangle,
      	  nautilus_icons_view_icon_item_get_hit_stretch_handle,
      	  hit_stretch_handle,
      	  nautilus_icons_view_icon_item_hit_test_stretch_handles,
      	  nautilus_icons_view_icon_item_hit_test_rectangle):
      	Fixed rubber banding to hit test with all the parts of the icon,
      	not just the icon pixbuf itself. Did this by changing all the
      	internal hit testing to use rects instead of points. At the same
      	time changed the external interface to always use world
      	coordinates for clarity.
      
      	* libnautilus/nautilus-directory.c (compare_file_with_name),
      	libnautilus/nautilus-file.c (nautilus_file_set_keywords): Fixed
      	some void * problems that upset newer versions of GCC but not the
      	older one that I'm using.
      
      	* libnautilus/nautilus-gtk-extensions.h,
      	libnautilus/nautilus-gtk-extensions.c: Formatting and include
      	statements fix up.
      bddcc07d
    • Jonathan Blandford's avatar
      Avoid a bug where we get stuck grabs when you double click. · d21681ac
      Jonathan Blandford authored
      2000-03-10  Jonathan Blandford  <jrb@redhat.com>
      
      	* libnautilus/gnome-icon-container.c (button_press_event): Avoid a
      	bug where we get stuck grabs when you double click.
      d21681ac
    • Ramiro Estrugo's avatar
      Add nautilis-widgets to the tree. · 0932a669
      Ramiro Estrugo authored
      0932a669
    • Ramiro Estrugo's avatar
      38519354
    • Ramiro Estrugo's avatar
      Adding nautilus-widgets to the tree - a place to put generic widgets that are · 9b1a0871
      Ramiro Estrugo authored
      not necessarily coupled to nautilus.
      9b1a0871
    • Maciej Stachowiak's avatar
      Fix omission · 852b8ec5
      Maciej Stachowiak authored
      852b8ec5
    • Maciej Stachowiak's avatar
      store zoom_control object in the window. · c81f075c
      Maciej Stachowiak authored
      	* src/ntl-window.c, src/ntl-window.h: store zoom_control object in
      	the window.
      
      	* src/nautilus-zoomable-frame-svr.c: New file; implement CORBA
      	server for Nautilus::ZommableFrame interface.
      	* src/ntl-view-private.h: prototypes for shared stuff needed to make
      	this work.
      	* src/ntl-view.c: Attach a Nautilus::ZoomableFrame interface to
      	the Nautilus::ViewFrame.
      
      	* libnautilus/nautilus-gtk-extensions.h,
      	libnautilus/nautilus-gtk-extensions.c
      	(nautilus_gtk_marshal_NONE__DOUBLE): New function.
      c81f075c
    • Maciej Stachowiak's avatar
      Enable both html-appropriate and directory-appropriate views for · fc3403b7
      Maciej Stachowiak authored
              * src/ntl-uri-map.c (my_notify_when_ready): Enable both
              html-appropriate and directory-appropriate views for
      	special/webdav-directory mime type (temporary hack).
      fc3403b7
    • Darin Adler's avatar
      It turns out that you aren't intended to reset the scroll region once you · 5f4af6f1
      Darin Adler authored
      	* libnautilus/gnome-icon-container.c (set_scroll_region):
      	It turns out that you aren't intended to reset the scroll region
      	once you have items in the canvas. We need to do that, so I had
      	to write some code that would update all the items when that happens.
      
      	* libnautilus/nautilus-icons-view-icon-item.c:
      	(recompute_bounding_box): Rewrote this to not assume that the
      	icon items are all top-level items.
      	(compute_text_rectangle, hit_test,
      	nautilus_icons_view_icon_item_bounds): Change hit testing so
      	it includes hits on the text. The rubberband still has to be
      	fixed so it doesn't have the same problem.
      
      	* libnautilus/nautilus-file.c: Improved a comment.
      
      	* RENAMING: Some more name changes.
      5f4af6f1
    • John Sullivan's avatar
      Fixed mistake in recent bug fix. · 30433daf
      John Sullivan authored
      30433daf
    • John Sullivan's avatar
    • Andy Hertzfeld's avatar
      2 small fixes: tweaked constants used for pre-lighting icons and fixed bug · 5515799d
      Andy Hertzfeld authored
      
              2 small fixes:  tweaked constants used for pre-lighting icons and
      	fixed bug in music view where track numbers were displayed as -1 if
      	they were not present in the id3 data; now they are blank.
      5515799d
    • Maciej Stachowiak's avatar
      Added a suggestion. · 81d7ee4c
      Maciej Stachowiak authored
      81d7ee4c
    • Maciej Stachowiak's avatar
      Pass the correct thing as the servant to avoid crashing on instantiation. · 7d9696ef
      Maciej Stachowiak authored
      	* libnautilus/nautilus-zoomable.c
      	(impl_Nautilus_Zoomable__create): Pass the correct thing as the
      	servant to avoid crashing on instantiation.
      	(nautilus_zoomable_real_set_bonobo_control): ref and sink the
      	BonoboControl Gtk object.
      	(nautilus_zoomable_destroy): unref the control instead of
      	destroying.
      7d9696ef
    • Maciej Stachowiak's avatar
      Reformat, add emacs magic to maintain indent style. · 37e83093
      Maciej Stachowiak authored
      	* idl/nautilus.idl: Reformat, add emacs magic to maintain indent
      	style.
      37e83093
    • Darin Adler's avatar
      Moved the code that loads the background color from clear to · 99c66c69
      Darin Adler authored
      	* src/file-manager/fm-directory-view-icons.c
      	(fm_directory_view_icons_clear,
      	fm_directory_view_icons_begin_loading),
      	src/file-manager/fm-directory-view-list.c
      	(fm_directory_view_list_clear,
      	fm_directory_view_list_begin_loading): Moved the code that loads
      	the background color from clear to begin_loading. Otherwise the
      	background color from one directory affects another.
      99c66c69
  3. 09 Mar, 2000 11 commits
    • Darin Adler's avatar
      Andy's check-in yesterday accidentally rolled out some changes to this · bcf419e8
      Darin Adler authored
      	* nautilus-icons-view-icon-item.c (emblem_layout_next,
      	nautilus_icons_view_icon_item_bounds):
      	Andy's check-in yesterday accidentally rolled out some changes
      	to this file. The changes include the typos that John and I had
      	fixed in emblem_layout_next and nautilus_icons_view_icon_item_bounds.
      
      	* nautilus-icons-view-icon-item.c:
      	As Andy was about to do anyway, I tightened up the emblem
      	positioning so they are closer to each other by changing the
      	hard-coded constant EMBLEM_SPACING.
      bcf419e8
    • Darin Adler's avatar
      Fixed a typo. · 56e4dd88
      Darin Adler authored
      56e4dd88
    • Darin Adler's avatar
      Fixed bugs relating to multiple directory and file objects for the same · 8656eb9d
      Darin Adler authored
      	* libnautilus/nautilus-directory-private.h,
      	libnautilus/nautilus-directory.c, libnautilus/nautilus-file.c
      	(nautilus_directory_find_file, compare_file_with_name,
      	nautilus_directory_get, nautilus_file_get): Fixed bugs relating to
      	multiple directory and file objects for the same entity. Stripped
      	trailing '/' characters in nautilus_directory_get and changed
      	nautilus_file_get to return already-existing files instead of
      	always creating new ones. Added self-checks to make sure this
      	works.
      
      	* libnautilus/nautilus-directory.c
      	(nautilus_directory_try_to_read_metafile): Fixed bug where
      	metafile reading would fail. The gnome-xml parser requires a null
      	character at the end of the file, even though the size is passed
      	in!
      
      	* libnautilus/nautilus-directory.c
      	(nautilus_directory_remove_write_metafile_idle,
      	nautilus_directory_finalize,
      	nautilus_directory_try_to_write_metafile,
      	nautilus_directory_request_write_metafile, ): Changed metafile
      	writing so it always happens at idle time.
      
      	* libnautilus/nautilus-directory.c
      	(nautilus_directory_try_to_read_metafile): Fixed bug where
      	metafile reading would fail. The gnome-xml parser requires a null
      	character at the end of the file, even though the size is passed
      	in!
      
      	* libnautilus/nautilus-lib-self-check-functions.h: Changed order
      	so lower-level tests come before higher-level ones.
      
      	* libnautilus/nautilus-string.h, libnautilus/nautilus-string.c:
      	Renamed functions:
      		nautilus_has_prefix -> nautilus_str_has_prefix
      		nautilus_strdup_prefix -> nautilus_str_get_prefix
      		nautilus_has_suffix -> nautilus_str_has_suffix
      		nautilus_strstrip -> nautilus_str_strip_chr
      		nautilus_string_to_int -> nautilus_str_to_int
      		nautilus_eat_string_to_int -> nautilus_eat_str_to_int
      	Changed nautilus_str_strip_chr not to modify in place.
      	Added nautilus_str_strip_trailing_chr.
      
      	* components/music/nautilus-music-view.c (is_mp3_file,
      	nautilus_music_view_update_from_uri),
      	libnautilus/nautilus-icon-factory.c
      	(nautilus_icon_factory_get_icon_for_file, make_thumbnail_path,
      	load_specific_image), libnautilus/nautilus-icons-view-icon-item.c
      	(draw_mini_text), src/ntl-index-panel.c (command_button_cb,
      	add_command_buttons), src/ntl-window-msgs.c
      	(nautilus_window_change_location_2),
      	src/file-manager-fm-directory-view-icons.c
      	(fm_directory_view_icons_compute_menu_item_info),
      	src/file-manager/fm-directory-view.c (compute_menu_item_info),
      	src/file-manager/fm-icons-controller.c
      	(fm_icons_controller_get_icon_property): Switched callers to use
      	new names for string calls.
      
      	* libnautilus/gnome-icon-container.c (destroy): Reformatting.
      
      	* components/help/converters/gnome-info2html2/main.c (main):
      	Fixed a warning.
      8656eb9d
    • John Sullivan's avatar
      Changed decision of when to draw mini-text on an icon to · cb99884c
      John Sullivan authored
              be based on icon size rather than zoom level, so it works
              more sensibly with stretched icons.
      cb99884c
    • John Sullivan's avatar
      A few bug fixes and memory leak fixes. · a589b69a
      John Sullivan authored
      a589b69a
    • Jonathan Blandford's avatar
      Add a urn field to GnomeVFSToplevelURI. This will let us add VFS modules · 1e1e9540
      Jonathan Blandford authored
      2000-03-09  Jonathan Blandford  <jrb@redhat.com>
      
      	* libgnomevfs/gnome-vfs-types.h: Add a urn field to
      	GnomeVFSToplevelURI.  This will let us add VFS modules that simply
      	change a totally virtual name to a actual URL.
      
      	* modules/help-method.c: New module to allow for "help:*" URL's.
      	* modules/help-method.h:
      
      	* modules/Makefile.am: added help module.
      
      	* libgnomevfs/gnome-vfs-method.c (gnome_vfs_transform_get): Allow
      	Transformations.  Clean up the code a little.
      
      	* libgnomevfs/gnome-vfs-uri.c (gnome_vfs_uri_new): changed to
      	allow for translations.  Also, code cleaned up a lot.
      1e1e9540
    • Elliot Lee's avatar
      Install libnautilus.h Handle mapping of special schemes (i.e. unknown to · f86e85ad
      Elliot Lee authored
      
      
      * libnautilus/Makefile.am: Install libnautilus.h
      * src/ntl-uri-map.c: Handle mapping of special schemes
      (i.e. unknown to gnome-vfs). Currently just 'irc'.
      f86e85ad
    • John Sullivan's avatar
    • Andy Hertzfeld's avatar
      drag for relatively small icons due to performance limitations · d015748e
      Andy Hertzfeld authored
      
      	drag for relatively small icons due to performance limitations
      d015748e
    • 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
    • John Sullivan's avatar
      Fixed icon bounds bug, and hid keyboard-selection rectangle unless it diverges · 98a347d9
      John Sullivan authored
      from regular selection.
      98a347d9
  4. 08 Mar, 2000 8 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
    • Ramiro Estrugo's avatar
      Make the radio group emit proper signals on changes. · 886358c4
      Ramiro Estrugo authored
      Make everything prettier by using nice offsets.
      886358c4
    • Ramiro Estrugo's avatar
      Have the radio group emit proper signals on changes. · a0d10dce
      Ramiro Estrugo authored
      Make everything prettier by using nice offset.
      a0d10dce
    • Ramiro Estrugo's avatar
    • Ramiro Estrugo's avatar
      2c00fcf6
    • Ramiro Estrugo's avatar
    • 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
    • Andy Hertzfeld's avatar
      implemented semi-transparent dragging by writing a make_semi_transparent · 6c09e03e
      Andy Hertzfeld authored
      
              implemented semi-transparent dragging by writing a make_semi_transparent
      	routine that "checkerboards" the alpha channel.  Also, switched to
      	a sans-serif font for the text beneath icons.
      6c09e03e
  5. 07 Mar, 2000 1 commit