1. 10 Feb, 2000 3 commits
    • Darin Adler's avatar
      Reworked the canvas item class used by the icon · 423b5c48
      Darin Adler authored
      	container. Straightened out the use of various coordinate systems
      	and bounds calculations and removed much unused code inherited
      	from the GdkPixbuf canvas item class that Andy cloned our code
      	from. Changed the class so it doesn't scale icons any more -- we
      	leave that to the icon factory so the scaled icons can be cached.
      
      	* libnautilus/gnome-icon-container-dnd.c:
      	* libnautilus/gnome-icon-container-private.h:
      	* libnautilus/gnome-icon-container.c:
      	* libnautilus/nautilus-icons-view-icon-item.c:
      	* libnautilus/nautilus-icons-view-icon-item.h:
      	Made extensive changes to the icon item class, including getting
      	rid of the "x", "y", "width", and "height" attributes, adding a
      	new "font" attribute, changing the "label" attribute name to "text"
      	to be more consistent with other canvas items, simplifying the
      	update logic for now (we can recomplicate it later if need be),
      	changing the pixbuf to have a fixed size in pixels instead of being
      	scaled with the pixels_per_unit and changing the pixbuf when we change
      	zoom levels, and other misc. cleanup.
      	(nautilus_icons_view_icon_item_get_arg):
      	Fixed bug for "label" which would return a non-strdup'd	piece of text.
      	(draw_or_measure_text_box):
      	Fixed bug where width of the selection box would be based on the
      	length of the last line of text, not the widest, and extra GCs would
      	be created for each line of text.
      
      	* libnautilus/nautilus-icons-controller.h:
      	* libnautilus/nautilus-icons-controller.c:
      	(nautilus_icons_controller_get_icon_image):
      	* src/file-manager/fm-icons-controller.c:
      	(fm_icons_controller_get_icon_image):
      	Changed the interface so that the icons controller specifies the icon
      	as a NautilusScalableIcon instead of a GdkPixbuf. This lets the icon
      	container get the appropriate icon for size as it zooms.
      
      	* libnautilus/gdk-extensions.h:
      	* libnautilus/gdk-extensions.c:
      	(nautilus_gdk_font_equal):
      	Added a version of gdk_font_equal that works with NULL for the font.
      	Maybe we need a naming scheme for these NULL-tolerant variations on
      	basic calls.
      
      	* src/ntl-uri-map.c: (nautilus_navinfo_free):
      	* src/ntl-window-msgs.c: (nautilus_window_change_location_2):
      	Fixed a NULL dereference that would happen when @navi was NULL.
      
      	* libnautilus/nautilus-directory.c:
      	(nautilus_directory_try_to_read_metafile):
      	Fixed error handling for case when gnome_vfs_read fails.  Fixed
      	error handling for case where metafile_info.size won't fit into a
      	size_t.  Switched back to g_malloc instead of g_alloca, since the
      	size of a file might be too big for the stack. In the long run, we
      	will feed the file data directly to the XML code, so this is a bit
      	temporary.  Removed the assert that Elliot added to help track
      	down the giant files sizes coming from gnome-vfs; the failure in
      	g_malloc will be easy to debug, unlike the failure in
      	g_alloca. (The assert was added without a ChangeLog entry.)
      423b5c48
    • John Sullivan's avatar
      d3954cb9
    • Elliot Lee's avatar
      Implement truncate. Use GINT_TO_POINTER and GPOINTER_TO_INT macros for · 9050adb1
      Elliot Lee authored
      
      
      * libnautilus/bonobo-stream-vfs.[ch]: Implement truncate.
      * src/nautilus-zoom-control.c: Use GINT_TO_POINTER and GPOINTER_TO_INT macros
      for "proper" int <-> pointer conversion.
      9050adb1
  2. 09 Feb, 2000 7 commits
  3. 08 Feb, 2000 12 commits
  4. 07 Feb, 2000 2 commits
    • Elliot Lee's avatar
      Include the .idl files of other modules that we use. Define -D_REENTRANT, · ed8a9567
      Elliot Lee authored
      
      
      * idl/*.idl: Include the .idl files of other modules that we use.
      * libnautilus/Makefile.am, src/Makefile.am, src/file-manager/Makefile.am:
      Define -D_REENTRANT, just in case.
      * src/file-manager/Makefile.am: Add cflags for .idl compilation.
      * components/help/Makefile.am: Build converters. Stop installing
      the now-unneeded .schemes file.
      * components/websearch/ntl-web-search.c: Get rid of
      gnome_button_can_default()
      * libnautilus/nautilus-icons-view-icon-item.c: Get rid of missing
      prototypes and associated warnings by including needed headers.
      * src/ntl-types.h, src/ntl-uri-map.[ch], src/ntl-window.h,
      src/ntl-window-msgs.c: Remove scheme mapping functionality (now
      done in gnome-vfs). Use asynchronous version of get_file_info.
      ed8a9567
    • Elliot Lee's avatar
      Build converters. Stop installing the now-unneeded .schemes file. · 256c431a
      Elliot Lee authored
      
      
      * components/help/Makefile.am: Build converters. Stop installing
      the now-unneeded .schemes file.
      
      * components/websearch/ntl-web-search.c: Get rid of
      gnome_button_can_default()
      
      * libnautilus/nautilus-icons-view-icon-item.c: Get rid of missing
      prototypes and associated warnings by including needed headers.
      
      * src/ntl-types.h, src/ntl-uri-map.[ch], src/ntl-window.h,
      src/ntl-window-msgs.c: Remove scheme mapping functionality (now
      done in gnome-vfs). Use asynchronous version of get_file_info.
      256c431a
  5. 04 Feb, 2000 2 commits
    • John Sullivan's avatar
      Zooming now shows different pieces of text for each icon at different zoom · 6e68aefb
      John Sullivan authored
      levels. Currently the pattern is hardwired; next I'll make it configurable.
      6e68aefb
    • Darin Adler's avatar
      Make optimized builds succeed. · 80fc1609
      Darin Adler authored
              * configure.in: Turn off uninitialized variable warnings.
              At some point, we should turn these off only for the ORBit-
              generated stub files, since they are meaningful and useful
              in other files. For now, though, since we use -Werror, we
      	need be sure these warnings don't cause trouble for people
              who do optimized builds.
      
              * src/ntl-main.c (main): Added GnomeUI to the list of domains
              to "stop on warning/critical".
      80fc1609
  6. 03 Feb, 2000 6 commits
  7. 02 Feb, 2000 2 commits
  8. 01 Feb, 2000 6 commits
    • Elliot Lee's avatar
      If an error happens, we need to reset the location bar to current · e1231238
      Elliot Lee authored
      
      
      * src/ntl-window-msgs.c: If an error happens, we need to reset the
      location bar to current location, in case the location change
      happened via a drop on the location bar.
      
      * src/file-manager/fm-directory-view.c: Consensus is to use
      individual headers rather than catch-alls.
      
      * libnautilus/gnome-icon-container-dnd.c,
      libnautilus/nautilus-icons-view-icon-item.c,
      libnautilus/nautilus-icon-factory.c: Use bilinear scaling - almost
      as fast, much nicer looking.
      e1231238
    • John Sullivan's avatar
    • Andy Hertzfeld's avatar
      added zoom control to location bar, not yet wired up to the content view · 7c97b308
      Andy Hertzfeld authored
      
             added zoom control to location bar, not yet wired up to the content view
      7c97b308
    • Darin Adler's avatar
      Changed the icon factory interface in a few ways: 1) There's no longer a · 39b26449
      Darin Adler authored
      	* libnautilus/nautilus-icon-factory.h:
      	* libnautilus/nautilus-icon-factory.c:
      	(nautilus_icon_factory_new):
      	(nautilus_icon_factory_destroy):
      	(nautilus_get_current_icon_factory):
      	(nautilus_icon_factory_get_icon_for_file):
      	(nautilus_icon_factory_set_theme):
      	(nautilus_icon_factory_get_icon_by_name):
      	(nautilus_icon_factory_get_pixbuf_for_icon):
      	(nautilus_scalable_icon_ref):
      	(nautilus_scalable_icon_unref):
      	(nautilus_scalable_icon_get_name):
      	(scalable_icon_get):
      	(icon_set_possibly_free):
      	(scalable_icon_new):
      	Changed the icon factory interface in a few ways: 1) There's no
      	longer a NautilusIconFactory object. There's just a single global
      	icon factory. If we find that we need multiple factories, we can
      	implement that later. 2) Instead of going straight from a file to
      	a pixbuf, you get a scalable icon, and then get a pixbuf from
      	that. This allows you to choose the icon and then get
      	different-sized versions of it without going through the icon
      	selection process over and over again. There's also a name for
      	each icon which can be stored in the metafile so you can get the
      	same icon again before you have full information on a file.
      
      	* src/nautilus-bookmark.c:
      	(nautilus_bookmark_get_pixmap_and_mask):
      	* src/file-manager/fm-directory-view-list.c:
      	(install_icon):
      	* src/file-manager/fm-icons-controller.c:
      	(fm_icons_controller_get_icon_image):
      	Changed icon factory clients to use the new interface. Maybe
      	after a while I'll add a convenience function that's as simple as
      	the old interface was for the common case where you want to go
      	straight to the pixbuf, but lets try it this way for a while.
      
      	* libnautilus/nautilus-string.h:
      	* libnautilus/nautilus-string.c:
      	(nautilus_has_prefix):
      	Added nautilus_has_prefix. This checks to see if a string has a
      	particular prefix. It's both clearer to read and more efficient
      	than Andy's typical trick of calling strstr.
      
      	* libnautilus/nautilus-lib-self-check-functions.h:
      	* libnautilus/nautilus-string.c:
      	Added self-checks for nautilus-string.c. The tests uncovered a
      	bug in nautilus_string_to_int that I fixed.
      
      	* nautilus-glib-extensions.c:
      	Just a stray new-line.
      39b26449
    • Maciej Stachowiak's avatar
      9bef26f2
    • John Sullivan's avatar