1. 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
  2. 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
  3. 03 Feb, 2000 6 commits
  4. 02 Feb, 2000 2 commits
  5. 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
  6. 31 Jan, 2000 10 commits
    • Darin Adler's avatar
      Oops. Spelled it wrong. · 8b485ee2
      Darin Adler authored
      8b485ee2
    • Darin Adler's avatar
      Started work on icon stretching. In the process, I am doing some · 78c57693
      Darin Adler authored
      	cleanup on the icon container, and I am checking in some of that
      	before the stretching is implemented.
      
      	* libnautilus/gnome-icon-container-private.h:
      	* libnautilus/gnome-icon-container.c:
      	(icon_is_in_region):
      	Got rid of width and height stored in each icon.
      
      	* libnautilus/gnome-icon-container.c:
      	A lot of cleanup, including getting rid of the
      	icon_get_text_bounding_box function.
      
      	* libnautilus/gnome-icon-container.c:
      	(gnome_icon_container_begin_stretch):
      	(gnome_icon_container_stretch):
      	(gnome_icon_container_end_stretch):
      	(button_release_event):
      	(motion_notify_event):
      	(handle_icon_button_press):
      	First cut at adding stretching hooks in button handlers.
      
      	* libnautilus/nautilus-icons-view-icon-item.c:
      	(nautilus_icons_view_draw_text_box):
      	Rewrote to fix bug with position of text when it's too long for
      	a single line.
      
      	* libnautilus/nautilus-glib-extensions.h:
      	Added a macro named NAUTILUS_G_N_ELEMENTS.
      	src/ntl-index-panel.c:
      	src/explorer-location-bar.c:
      	libnautilus/gtkflist.c:
      	Used the NAUTILUS_G_N_ELEMENTS macro.
      78c57693
    • Andy Hertzfeld's avatar
      made the keyboard selection rectangle work again, not as a separate canvas · 4e1175d7
      Andy Hertzfeld authored
      
             made the keyboard selection rectangle work again, not as a separate
             canvas item like it used to be, but as an attribute drawn by the
             icon item.
      4e1175d7
    • John Sullivan's avatar
    • Andy Hertzfeld's avatar
      implemented the "select all" command in the context menu · bc177a67
      Andy Hertzfeld authored
      
             implemented the "select all" command in the context menu
      bc177a67
    • Elliot Lee's avatar
      Update debugging messages. Allow synchronous state changes (needed to · 36e8d6ca
      Elliot Lee authored
      
      
      * src/ntl-window-msgs.c, src/ntl-window-private.h: Update debugging messages. Allow
      synchronous state changes (needed to avoid race conditions), and
      don't reset the idle handler if the idle handler is already running.
      
      * src/file-manager/fm-directory-view.c: Include
      <libnautilus/libnautilus.h> rather than just
      <libnautilus/nautilus-alloc.h> - nitpick in passing.
      
      * src/ntl-uri-map.c: OK, don't check for NULL here, in an attempt to flush out bugs elsewhere.
      Let me know of any problems that show up because of this.
      36e8d6ca
    • Darin Adler's avatar
      Changed it to not attempt to create a GC just to measure the text. This · 58a9b33c
      Darin Adler authored
      	* nautilus-icons-view-icon-item.c:
      	(nautilus_icons_view_draw_text_box):
      	Changed it to not attempt to create a GC just to measure the text.
      	This makes it work when the widget is not realized.
      
      	* nautilus-icons-view-icon-item.h:
      	nautilus-icons-view-icon-item.c:
      	gnome-icon-container-dnd.c:
      	(nautilus_icons_view_icon_item_center_offset):
      	Changed the parameter type to NautilusIconsViewIconItem.
      
      	* fm-directory-view.c:
      	(stop_load):
      	(fm_directory_view_load_uri):
      	Fixed code so that if you stop loading more than once, or
      	stop before you even start, it won't send extra progress
      	requests to the Nautilus shell or call stop_monitoring
      	extra times on the NautilusDirectory object.
      
      	* nautilus-icons-view-icon-item.h:
      	nautilus-icons-view-icon-item.c:
      	gnome-icon-container-dnd.c:
      	Quick cleanup of the new NautilusIconsViewIconItem class.
      
      	* libnautilus/gdk-extensions.c:
      	libnautilus/gnome-icon-container-dnd.c:
      	libnautilus/gnome-icon-container.c:
      	libnautilus/gtkflist.c:
      	libnautilus/nautilus-background-canvas-group.c:
      	libnautilus/nautilus-background.c:
      	libnautilus/nautilus-debug.c:
      	libnautilus/nautilus-default-file-icon.c:
      	libnautilus/nautilus-directory.c:
      	libnautilus/nautilus-icon-factory.c:
      	libnautilus/nautilus-icons-controller.c:
      	libnautilus/nautilus-icons-view-icon-item.c:
      	libnautilus/nautilus-lib-self-check-functions.c:
      	libnautilus/nautilus-self-checks.c:
      	libnautilus/nautilus-string.c:
      	src/explorer-location-bar.c:
      	src/file-manager/dfos-corba.c:
      	src/file-manager/dfos-xfer-progress-dialog.c:
      	src/file-manager/dfos-xfer.c:
      	src/file-manager/dfos.c:
      	src/file-manager/fm-directory-view-icons.c:
      	src/file-manager/fm-directory-view-list.c:
      	src/file-manager/fm-directory-view.c:
      	src/file-manager/fm-icons-controller.c:
      	src/file-manager/fm-main.c:
      	src/nautilus-self-check-functions.c:
      	src/ntl-index-panel.c:
      	Got rid of #ifdef HAVE_CONFIG_H. Elliot says that we must always
      	include <config.h>, but there's no reason to include that ifdef
      	since we don't plan on building without a <config.h> ever.
      58a9b33c
    • Andy Hertzfeld's avatar
      fixed bug where icons were horizontally mis-positioned after dragging; · e250cfd7
      Andy Hertzfeld authored
      
             fixed bug where icons were horizontally mis-positioned after dragging;
             fixed by taking the center offset into account
      e250cfd7
    • John Sullivan's avatar
    • Elliot Lee's avatar
      Undo · 2002db11
      Elliot Lee authored
      
      
      Undo
      2002db11
  7. 30 Jan, 2000 5 commits
    • Elliot Lee's avatar
      g_strdup already checks for NULL parameter - no need. · 89663cf1
      Elliot Lee authored
      
      
      * src/ntl-uri-map.c: g_strdup already checks for NULL parameter - no need.
      89663cf1
    • Darin Adler's avatar
      NautilusDirectory is now in charge of loading directories. · 7c7932a8
      Darin Adler authored
      	FMDirectoryView has been relieved of that responsibility.
      
      	* nautilus-directory.h:
      	nautilus-directory.c:
      	(nautilus_directory_start_monitoring):
      	(nautilus_directory_stop_monitoring):
      	(nautilus_directory_is_ready_for_layout):
      	(nautilus_directory_new_file):
      	(nautilus_directory_are_all_files_seen):
      	Added monitoring API that's used to read the contents of
      	a directory. Made nautilus_directory_new_file private since
      	we now use the monitoring API instead.
      
      	* fm-directory-view.c:
      	(fm_directory_view_initialize):
      	(stop_load):
      	(display_pending_entries):
      	(display_pending_files):
      	(display_pending_idle_cb):
      	(display_timeout_cb):
      	(display_pending_timeout_cb):
      	(directory_load_cb):
      	(schedule_idle_display_of_pending_files):
      	(schedule_timeout_display_of_pending_files):
      	(unschedule_idle_display_of_pending_files):
      	(unschedule_timeout_display_of_pending_files):
      	(unschedule_display_of_pending_files):
      	(add_files_cb):
      	(fm_directory_view_activate_entry):
      	(fm_directory_view_load_uri):
      	(disconnect_model_handlers):
      	(fm_directory_view_stop):
      	Changed to use monitoring instead of directly calling
      	gnome_vfs_async_load_directory directly.
      
      	* fm-directory-view.c:
      	(update_zoom_menu_items):
      	(zoom_in_cb):
      	(zoom_out_cb):
      	(pop_up_context_menu):
      	(pop_up_temporary_context_menu):
      	(append_background_items):
      	(create_background_context_menu):
      	(fm_directory_view_popup_item_context_menu):
      	(fm_directory_view_popup_background_context_menu):
      	Changed to re-created background menu each time instead of
      	keeping a single global menu up to date. This is simpler, and
      	the imperceptible additional delay from recreating the menu
      	each time should not be a problem.
      
      	* ntl-window.c:	(nautilus_window_up):
      	ntl-map.c: (nautilus_navinfo_new):
      	Handle the case where the current URI is NULL.
      
      	* fm-directory-view-icons.c: (create_icon_container):
      	Removed the leftover puts calls in here.
      	This gets rid of "A", "B", "C" on each start of nautilus.
      7c7932a8
    • John Sullivan's avatar
    • John Sullivan's avatar
      Added can_zoom_in and can_zoom_out, and made item context menu disable · d1404606
      John Sullivan authored
      Zoom In and Zoom Out correctly.
      d1404606
    • Andy Hertzfeld's avatar
      made fonts scale according to zoom level enabled/disabled zoom items in · dd8153b2
      Andy Hertzfeld authored
      
           	made fonts scale according to zoom level
      	enabled/disabled zoom items in context menu as necessary
      dd8153b2
  8. 28 Jan, 2000 3 commits
  9. 27 Jan, 2000 4 commits