1. 10 Mar, 2000 1 commit
    • 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
  2. 06 Mar, 2000 1 commit
    • Darin Adler's avatar
      Added the concept of separate X and Y scale factors to more · 2d3c87e1
      Darin Adler authored
      	of the code. Even though we don't want to scale the two
      	dimensions separately at the moment, I figured it was better
      	to go in this direction than to remove all the separate X
      	and Y stuff that Seth Nickell added.
      
      	* libnautilus/gnome-icon-container-dnd.c
      	(gnome_icon_container_receive_dropped_icons):
      	* libnautilus/gnome-icon-container-private.h:
      	* libnautilus/gnome-icon-container.c (icon_get_actual_size),
      	(icon_new), (icon_get_size), (start_stretching), (update_icon),
      	(gnome_icon_container_add), (gnome_icon_container_is_stretched),
      	(gnome_icon_container_unstretch),
      	(gnome_icon_container_move_icon):
      	* libnautilus/gnome-icon-container.h:
      	Got rid of the old "scale", "xscale", and "yscale" and replaced
      	them with "scale_x" and "scale_y". Made the code always set the
      	scale factor through the gnome_icon_container_move_icon bottleneck
      	so the changes are all reported throught the icon_moved signal.
      
      	* src/file-manager/fm-directory-view-icons.c:
      	(add_icon_if_already_positioned),
      	(fm_directory_view_icons_icon_moved_cb):
      	Store only a single scale factor if the X and Y are both scaled
      	exactly the same (the normal case). Also, use a default for
      	the scale factor so we don't save 1.0 for every file.
      
      	* libnautilus/nautilus-gtk-extensions.h:
      	* libnautilus/nautilus-gtk-extensions.c:
      	My original change required an additional marshal function. I
      	decided to add it anyway even though I don't need it right now.
      
      	* libnautilus/nautilus/nautilus-bookmark.c
      	(nautilus_bookmark_get_pixmap_and_mask):
      	Changed to use the nautilus_icon_factory_get_pixbuf_for_file
      	convenience function which has a simpler interface.
      
      	* libnautilus/nautilus-icon-factory.h:
      	* libnautilus/nautilus-icon-factory.c:
      	Added separate X and Y scaling of icons for possible future
      	use; the convenience functions still use the same size in
      	both dimentions.
      
      	* components/music/.cvsignore:
      	  New directory, new .cvsignore needed.
      
      	* RENAMING: Some more name change ideas.
      2d3c87e1
  3. 03 Mar, 2000 1 commit
    • Maciej Stachowiak's avatar
      Icon stretching is now persistent in the metafile, patch from Seth · 742ae874
      Maciej Stachowiak authored
      	Nickell <snickell@stanford.edu>:
      
      	* libnautilus/gnome-icon-container.c, gnome-icon-container.h,
      	gnome-icon-container-dnd.c: Add xscale and yscale arguments to
      	"icon_moved" signal to allow more unified handling of geometry
      	changes.
      	* libnautilus/nautilus-metadata.h: Add definition of
      	ICON_VIEW_SCALE_METADATA_KEY.
      	* srf/file-manager/fm-directory-view-icons.c: Save the stretch
      	factor to the metafile when stretching and restore it when loading
      	the directory.
      742ae874
  4. 16 Feb, 2000 1 commit
    • Darin Adler's avatar
      Added icon stretching and did some cleanups. · 9b94323c
      Darin Adler authored
      	Stretched icons aren't yet persistent (the scale factor is not
      	saved in metadata), but that's not much more work.
      
      	* libnautilus/gnome-icon-container-private.h:
      	* libnautilus/gnome-icon-container.h:
      	* libnautilus/gnome-icon-container.c: (icon_new), (icon_position),
      	(icon_set_position), (icon_get_size), (icon_set_size),
      	(icon_toggle_selected), (icon_select), (icon_set_selected),
      	(button_press_event), (gnome_icon_container_begin_stretch),
      	(start_stretching), (gnome_icon_container_stretch),
      	(continue_stretching), (gnome_icon_container_end_stretch),
      	(end_stretching), (button_release_event), (motion_notify_event),
      	(handle_icon_button_press), (gnome_icon_container_clear),
      	(request_update_one), (update_icon), (get_first_selected_icon),
      	(gnome_icon_container_show_stretch_handles),
      	(gnome_icon_container_has_stretch_handles),
      	(gnome_icon_container_is_stretched),
      	(gnome_icon_container_unstretch), (compute_stretch),
      	(nautilus_self_check_compute_stretch),
      	(nautilus_self_check_gnome_icon_container):
      	* libnautilus/nautilus-icons-view-icon-item.h:
      	* libnautilus/nautilus-icons-view-icon-item.c:
      	(nautilus_icons_view_icon_item_draw),
      	(nautilus_icons_view_icon_item_point),
      	(nautilus_icons_view_icon_item_set_show_stretch_handles),
      	(nautilus_icons_view_icon_item_get_hit_stretch_handle):
      	* libnautilus/nautilus-lib-self-check-functions.h:
      	Added machinery for stretching icons.
      
      	* src/file-manager/fm-directory-view.h:
      	* src/file-manager/fm-directory-view.c:
      	(append_item_context_menu_items),
      	(fm_directory_view_real_append_item_context_menu_items),
      	(fm_directory_view_initialize_class), (create_item_context_menu):
      	Added machinery for views to have view-specific menu items for
      	icons as well as for the window as a whole.
      
      	* src/file-manager/fm-directory-view-icons.c:
      	(fm_directory_view_icons_initialize_class),
      	(fm_directory_view_icons_append_item_context_menu_items),
      	(show_stretch_handles_cb), (unstretch_item_cb):
      	Added menu items for stretching icons.
      
      	* libnautilus/gnome-icon-container.c: (start_rubberbanding):
      	Fixed bug that would result in two rubberband timeouts at
      	once if you did rubberbanding quickly.
      
      	* components/notes/.cvsignore: Andy's new component needs a
      	.cvsignore file for its generated pieces.
      
      	* libnautilus/nautilus-directory.c:
      	(nautilus_directory_try_to_read_metafile),
      	(nautilus_directory_read_metafile):
      	Simplified logic in metafile-reading functions and fixed a bug
      	where the vfs handle would be left open if certain categories
      	of errors occurred.
      
      	* libnautilus/nautilus-gtk-extensions.h:
      	Added a missing gtk_marshal function.
      
      	* libnautilus/nautilus-icon-factory.h:
      	* libnautilus/nautilus-icon-factory.c:
      	(nautilus_icon_size_for_zoom_level),
      	(nautilus_get_icon_size_for_zoom_level),
      	(nautilus_icon_factory_get_pixbuf_for_file),
      	(nautilus_icon_factory_get_pixmap_and_mask_for_file):
      	* src/nautilus-index-title.c: (nautilus_index_title_set_up_icon):
      	* src/nautilus-zoom-control.c: (set_zoom_level):
      	* src/file-manager/fm-directory-view-list.c:
      	(fm_directory_view_list_bump_zoom_level), (install_icon):
      	Made some API improvements for the icon factory. Added a missing
      	get_ to the name nautilus_get_icon_size_for_zoom_level and added
      	convenience functions for the most common uses of the factory.
      
      	* libnautilus/ntl-content-view-frame.c:
      	* libnautilus/ntl-meta-view-frame.c:
      	* libnautilus/ntl-view-frame.c:
      	Weaned all the files in libnautilus itself from using the
      	libnautilus.h include file. They instead include the parts that
      	they need. Also added some missing <config.h> includes.
      9b94323c
  5. 15 Feb, 2000 2 commits
  6. 19 Jan, 2000 1 commit
    • 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
  7. 11 Jan, 2000 1 commit
  8. 07 Jan, 2000 1 commit
  9. 03 Jan, 2000 2 commits
  10. 30 Dec, 1999 1 commit