1. 16 Mar, 2000 2 commits
    • John Sullivan's avatar
    • Darin Adler's avatar
      Tell people about the gnome-xml branch. · ee495dba
      Darin Adler authored
      	* HACKING: Tell people about the gnome-xml branch.
      	* libnautilus/Makefile.am:
      	* libnautilus/gnome-icon-container-grid.c:
      	* libnautilus/gnome-icon-container-grid.h:
      	* libnautilus/gnome-icon-container-private.h:
      	* libnautilus/gnome-icon-container.c:
      	Broke out the grid code from the main container code.
      	This is a first step toward improving the layout code.
      	* libnautilus/nautilus-directory-private.h:
      	* libnautilus/nautilus-directory.c:
      	* libnautilus/nautilus-directory.h:
      	* src/fm-directory-view.c:
      	Got started on making the directory I/O async.
      	There's still a long way to go, this was a baby step.
      	* libnautilus/nautilus-bookmark.c:
      	* libnautilus/nautilus-bookmark.h:
      	* libnautilus/nautilus-self-checks.c:
      	General cleanup.
      	* libnautilus/nautilus-file.h:
      	Rearranged a little bit.
      	* libnautilus/nautilus-file-utilities.c:
      	Put FIXME in where there's code that needs to be changed.
  2. 15 Mar, 2000 3 commits
    • John Sullivan's avatar
      Used preferences mechanism for text under icons and · 4df4c1e1
      John Sullivan authored
    • Darin Adler's avatar
      A quick cleanup of how we use gnome-xml. · b84f3f1d
      Darin Adler authored
      	* libnautilus/Makefile.am:
      	* libnautilus/nautilus-xml-extensions.c:
      	* libnautilus/nautilus-xml-extensions.h:
      	Added some new gnome-xml helper functions.
      	* libnautilus/nautilus-directory.c:
      	* libnautilus/nautilus-file.c:
      	* libnautilus/nautilus-icon-factory.c:
      	* src/nautilus-bookmarklist.c:
      	Changed to use the new helper functions.
      	* src/nautilus-bookmarklist.c:
      	(nautilus_bookmarklist_save_file): Changed direct uses of root to
      	use xmlDocGet/SetRootElement while I was editing the file.  I
      	think this is the same change Pavel made but wasn't able to check
      	* src/nautilus-bookmarklist.c:
      	General cleanup.
    • Darin Adler's avatar
      Added additional data to icons so they can specify where the · bdf3c6c1
      Darin Adler authored
      	embedded text fits in each icon.
      	* icons/eazel/Makefile.am, icons/eazel/i-regular.xml: Added the
      	file to specify attributes of icons. Specifically added the
      	attribute that says there is space for embedded text in the
      	Eazel-theme regular icon.
      	* libnautilus/nautilus-icon-factory.h:
      	* libnautilus/nautilus-icon-factory.c:
      	(get_child_node_by_property), (get_themed_icon_file_path),
      	(get_icon_file_path), (nautilus_icon_factory_get_thumbnail_uri),
      	(load_specific_image), (load_image_for_scaling),
      	(get_image_from_cache), (load_image_scale_if_necessary),
      	Added code to read a rectangle for the embedded text along with
      	the icon, cache it with the icon, scale it with the icon, and
      	return it to the caller along with the icon.
      	* libnautilus/nautilus-icons-view-icon-item.c:
      	(draw_mini_text), (draw_embedded_text),
      	Changed the code that draws the embedded text to respect the
      	text rectangle passed in. Changed the pixbuf setting to use a
      	function instead of the arg interface and take a text rectangle
      	along with the pixbuf.
      	* libnautilus/gnome-icon-container-dnd.c
      	* libnautilus/gnome-icon-container.c:
      	(icon_get_actual_size): Got rid of callers who were using the arg
      	interface to get at the image of an icon
      	* src/file-manager/fm-directory-view-icons.c:
      	(get_icon_property_cb): Get rid of hard-coded rule that only
      	themes with eazel at the front of their names can display text
      	inside the icons.
      	* libnautilus/gnome-icon-container.c:
      	(icon_new): Fixed a bug where icons would be super-tiny if they
      	got too big, like if you entered a directory that was zoomed all
      	the way in.
      	(start_stretching), (ungrab_stretch_icon), (end_stretching),
      	(gnome_icon_container_show_stretch_handles): Added code to grab
      	the pointer while stretching an icon.
      	(item_event_cb): Added a return statement that John forgot when
      	he was editing. Without that, it was falling through to the next
      	case, which had the same effect anyway.
      	(update_icon): Pass the text rectangle through from the icon
      	factory to the icon canvas item, using the new call instead of the
      	old arg interface approach.
      	* components/help/.cvsignore: Added entries for
      	.la and .lo files.
      	* components/help/Makefile.am:
      	* components/help/hyperbola-nav-index.c:
      	* components/help/hyperbola-nav-search.c:
      	* libnautilus/nautilus-directory-private.h:
      	* libnautilus/nautilus-directory.c:
      	* src/nautilus-bookmarklist.c:
      	Fixed flags for gnome-xml
      	includes. Someone pointed out that you are supposed to include
      	these as "#include <tree.h>", not "#include <gnome-xml/tree.h>" so
      	I fixed our uses to work that way.
      	* libnautilus/nautilus-directory.c:
      	(nautilus_directory_get_file_metadata_node): Fixed code that was
      	destroying something allocated by gnome-xml with g_free instead
      	of xmlFree.
      	* libnautilus/nautilus-file.c:
      	(nautilus_file_get_keywords), (nautilus_file_set_keywords):
      	Fixed storage leak where we were getting a property and not freeing it.
      	* libnautilus/nautilus-default-file-icon.h:
      	* libnautilus/nautilus-default-file-icon.c:
      	* libnautilus/nautilus-icon-factory.c:
      	(load_image_for_scaling): Got rid of the global that tells whether
      	the default icon has an alpha channel -- it's not hardwired TRUE.
  3. 14 Mar, 2000 7 commits
  4. 13 Mar, 2000 8 commits
    • Darin Adler's avatar
      Fixed bug that caused a core dump when getting at the root directory · ec73da24
      Darin Adler authored
      	* libnautilus/nautilus-directory.c (nautilus_directory_get):
      	Fixed bug that caused a core dump when getting at the root
      	directory because all the '/' characters were stripped off
      	the URI.
      	* /src/file-manager/fm-directory-view.c:
      	* nautilus-widgets/nautilus-preferences.c:
      	Tiny formatting fixes.
    • Maciej Stachowiak's avatar
      Connect to zoom_in and zoom_out singals of zoom control and view the zoom · 3b40873a
      Maciej Stachowiak authored
      	* src/ntl-window.c (nautilus_window_constructed): Connect to
      	zoom_in and zoom_out singals of zoom control and view the zoom in
      	such cases, when applicable.
      	* src/nautilus-zoom-control.c
      	(nautilus_zoom_control_class_initialize): Add zoom_in and zoom_out
      	(nautilus_zoom_control_reset_zoom_level): Quick hack to get some
      	semblance of sanity in view switching.
      	* file-manager/fm-directory-view.c: Add Zoomable interface; for
      	now only implement zoom_in and zoom_out methods.
    • Maciej Stachowiak's avatar
      Added some comments. · bfaf42ec
      Maciej Stachowiak authored
      	* components/sample/nautilus-sample-content-view.c: Added some
    • Elliot Lee's avatar
      Fix pointer <-> int conversion warnings. · e88dbf7f
      Elliot Lee authored
      * nautilus-widgets/nautilus-preferences.c, src/file-manager/fm-directory-view.c:
      Fix pointer <-> int conversion warnings.
    • Darin Adler's avatar
      A quick cleanup pass on the NautilusStringList class: Changed uses of · fe7c58d2
      Darin Adler authored
      	* libnautilus/nautilus-string-list.h:
      	* libnautilus/nautilus-string-list.c:
      	A quick cleanup pass on the NautilusStringList class:
      	Changed uses of gchar to char, changed g_assert to g_return_if_fail
      	as appropriate. Fixed brace style to be emacs-friendly (open brace
      	on same line as if statement). Fixed spelling of delimiter.
      	Got rid of some unnecessary special cases for NULL and sped up
      	the _equal function be eliminating the redundant length check.
      	Changed the self-check so that it doesn't write a warning to the
      	log when it runs.
    • Darin Adler's avatar
      Andy fixed a double-unref bug by removing an unref. The correct fix was to · 945b7f5c
      Darin Adler authored
      	* src/file-manager/fm-properties-window.c (create_properties_window):
      	Andy fixed a double-unref bug by removing an unref. The correct
      	fix was to add a ref. I rolled out his change and re-fixed the bug.
    • Ramiro Estrugo's avatar
      libnautilus/nautilus-global-preferences.c, Add a table of meta view iids · e58c19a4
      Ramiro Estrugo authored
      * libnautilus/nautilus-global-preferences.c,
      * libnautilus/nautilus-global-preferences.h:
      (nautilus_global_preferences_get_meta_view_iids) Add a table of
      meta view iids and a function to retrieve them.  This is a hack
      until we have better runtime detection of components.
      Add some better defaults for which meta views are shown.  By
      default none were shown.  Undo a previous gnome_config default
      hack.  There is now a better fix in place in the prefs code.
      * nautilus-widgets/nautilus-preferences.c:
      (nautilus_preferences_make_gnome_config_string) A new function to
      make a string as expected by gnome_config with a trailing default
      value.  Use this string to fetch the value of the preferences.
      * src/Makefile.am,
      Retire ntl-prefs.c and ntl-prefs.h.  Remove these 2 from build and
      all references to them.
      * src/ntl-app.c:
      (nautilus_app_startup, nautilus_app_destroy) No need to call
      retired ntl-prefs functions.
      * src/ntl-uri-map.c:
      (add_meta_view_iids_from_preferences): New function.  Factor out
      meta iid setup code into one place.  Replace the static meta iid
      setup code with something that looks in preferences to see which
      meta views are enabled.  Next step is to make the meta view
      respond to pref changes.
    • Ramiro Estrugo's avatar
  5. 12 Mar, 2000 17 commits
  6. 11 Mar, 2000 3 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
      	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),
      	gnome_icon_container_initialize_class, gnome_icon_container_new,
      	update_icon, gnome_icon_container_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
      	* libnautilus/nautilus-gtk-extensions.h,
      	src/file-manager/fm-directory-view.c: Add new signal marshal
      	functions as needed and changed the name of one of the old
      	* libnautilus/Makefile.am,
      	src/file-manager/fm-icons-controller.c: Removed the old controller
      	object, it was a bad idea.
    • Ramiro Estrugo's avatar
      Fix dumbass typo. · 42b61c2e
      Ramiro Estrugo authored
    • 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,
      	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
      	Moved prefs widegtry things to nautilus-widgets.