1. 13 Mar, 2000 1 commit
    • 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,
      src/ntl-prefs.c,
      src/ntl-prefs.h,
      src/nautilus-window-menus.c,
      src/nautilus.h:
      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.
      e58c19a4
  2. 12 Mar, 2000 9 commits
    • Ramiro Estrugo's avatar
      Properly remove the item from the list so that we dont crash later trying · 358ad2c9
      Ramiro Estrugo authored
      * nautilus-widgets/nautilus-preferences.c:
      (pref_hash_info_remove_callback) Properly remove the item from
      the list so that we dont crash later trying to munge a NULL node.
      
      * libnautilus/nautilus-global-preferences.h:
      (NAUTILUS_PREFERENCES_USER_LEVEL) Make sure the user level
      defaults to hacker.
      358ad2c9
    • Ramiro Estrugo's avatar
    • Ramiro Estrugo's avatar
      *libnautilus/Makefile.am: Added nautilus_string_table · 29bb8019
      Ramiro Estrugo authored
      *libnautilus/nautilus-lib-self-check-functions.h: Added string
      table tests hooks.
      
      *libnautilus/nautilus-string-list.c,
      libnautilus/nautilus-string-list.h: New class to deal with lists
      of strings in a type safe manner.  Also added self tests for this
      class.
      29bb8019
    • Ramiro Estrugo's avatar
      Make the preference changes persistent. · b657b1fe
      Ramiro Estrugo authored
      * nautilus-widgets/nautilus-preferences.c:
      (prefs_set_pref, nautilus_preferences_register_from_info,
      nautilus_preferences_register_from_values): Make the preference
      changes persistent.
      
      *nautilus-widgets/nautilus-preferences-item.c,
      nautilus-widgets/nautilus-preferences-item.h,
      nautilus-widgets/nautilus-preferences.c,
      nautilus-widgets/nautilus-preferences.h,
      nautilus-widgets/test-nautilus-widgets.c:
      Dont use GtkFunadamentalType, since we obviously wont support
      all fundamantal gtk types as preferences.  Use an enum instead.
      Makes the preferences type whacking code exactly 14.85% more type
      safe.
      b657b1fe
    • Ramiro Estrugo's avatar
      Make the preference changes persistent. · eb3615ad
      Ramiro Estrugo authored
      * nautilus-widgets/nautilus-preferences.c:
      (prefs_set_pref, nautilus_preferences_register_from_info,
      nautilus_preferences_register_from_values): Make the preference
      changes persistent.
      
      *nautilus-widgets/nautilus-preferences-item.c,
      nautilus-widgets/nautilus-preferences-item.h,
      nautilus-widgets/nautilus-preferences.c,
      nautilus-widgets/nautilus-preferences.h,
      nautilus-widgets/test-nautilus-widgets.c:
      Dont use GtkFunadamentalType, since we obviously wont support
      all fundamantal gtk types as preferences.  Use an enum instead.
      Makes the preferences type whacking code exactly 14.85% more type
      safe.
      eb3615ad
    • Ramiro Estrugo's avatar
      (nautilus_user_top_directory): New function. Used to obtain · e7477fb6
      Ramiro Estrugo authored
      the user's "top" directory.  The top directory is an alternative
      home place for naive users.
      e7477fb6
    • Ramiro Estrugo's avatar
      Use better names for the global preferences macros. · 42550b2c
      Ramiro Estrugo authored
      New method for removing callbacks.
      Filter files according to the user level.
      Add/Remove a preferences callback to keep track of user level changes.
      42550b2c
    • Ramiro Estrugo's avatar
      Cleanup naming of everything to use "preferences" instead of · 9e8ada12
      Ramiro Estrugo authored
      "prefs".  Remove a bunch of unused includes.  Use "Details"
      instead of "Private" for private structures.
      9e8ada12
    • Ramiro Estrugo's avatar
      Moved global preferences to libnautilus. · 63c6d54a
      Ramiro Estrugo authored
      63c6d54a
  3. 11 Mar, 2000 2 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
      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
  4. 10 Mar, 2000 9 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
      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
      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
    • 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
      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
  5. 09 Mar, 2000 9 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 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
    • 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
  6. 08 Mar, 2000 4 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
    • 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
  7. 07 Mar, 2000 4 commits
    • Darin Adler's avatar
      Fixed a typo that was causing the text area to not be included in the · 96954f0b
      Darin Adler authored
      	* nautilus-icons-view-icon-item.c (nautilus_icons_view_icon_item_bounds):
      	Fixed a typo that was causing the text area to not be included in the
      	bounds of an icon item.
      96954f0b
    • Darin Adler's avatar
      Added nautilus_file_get_keywords, which returns a GList of keywords. · 8a960c5e
      Darin Adler authored
      	* libnautilus/nautilus-directory.h,
      	libnautilus/nautilus-directory.c (get_file_metadata_node),
      	(nautilus_directory_get_file_metadata),
      	(nautilus_file_get_keywords): Added nautilus_file_get_keywords,
      	which returns a GList of keywords.
      
      	* libnautilus/nautilus-icon-factory.c (add_size_to_image_name),
      	(get_themed_icon_file_path), (get_icon_file_path), (add_emblem),
      	(nautilus_icon_factory_get_emblem_icons_for_file): Changed icon
      	names to not include the extension and wired some extensions into
      	the icon-reading code. The old code wired the entire file name, so
      	this is a bit more flexible. Added code to return an emblem for
      	each keyword attached to a file as well as the symbolic link emblem.
      
      	* libnautilus/gnome-icon-container.c (update_icon): Handle NULL
      	pixbufs for emblems. This happens when a keyword is specified that
      	doesn't have a corresponding emblem icon.  Add g_list_reverse call
      	to keep emblems in the correct order.
      
      	* src/file-manager/fm-directory-view-icons.c
      	(fm_directory_view_icons_merge_menus): Took out g_message left
      	over from Bonobo menu merge work.
      
      	* libnautilus/nautilus-glib-extensions.h,
      	libnautilus/nautilus-glib-extensions.c
      	(nautilus_g_list_free_deep): Added convenience function for
      	getting rid of a GList of things that can be freed with g_free.
      
      	* icons/Makefile.am, icons/certified.gif, icons/changed.gif,
      	icons/confidential.gif, icons/emblem-certified.gif,
      	icons/emblem-changed.gif, icons/emblem-confidential.gif,
      	icons/emblem-encrypted.gif, icons/emblem-important.gif,
      	icons/emblem-new.gif, icons/emblem-personal.gif,
      	icons/emblem-remote.gif, icons/emblem-symbolic-link.png,
      	icons/encrypted.gif, icons/i-symlink.png, icons/important.gif,
      	icons/new.gif, icons/personal.gif, icons/remote.gif:
      	Changed all emblem icons to have names that start with "emblem-".
      8a960c5e
    • John Sullivan's avatar
      Lots of work to use Bonobo menu merging. The file manager now merges various · bc4cb175
      John Sullivan authored
      items into the window's menubar, which has been slightly tweaked also.
      bc4cb175
    • Darin Adler's avatar
      Fixed bug in Unstretch I just introduced. · 4019aa50
      Darin Adler authored
      	Got emblems drawing.
      
      	* gnome-icon-container.c (gnome_icon_container_is_stretched),
      	(gnome_icon_container_unstretch): Fixed bug where Unstretch would do
      	all the icons, not just the selected ones.
      
      	* nautilus-icons-view-icon-item.c (draw_stretch_handles),
      	(emblem_layout_reset), (emblem_layout_next), (draw_pixbuf),
      	(nautilus_icons_view_icon_item_draw), (hit_test_pixbuf),
      	(hit_test), (nautilus_icons_view_icon_item_bounds): Added code to
      	draw emblems and take them into account for hit testing and bounds
      	calculation.
      
      	* gnome-icon-container.c (update_icon):
      	* nautilus-icons-view-icon-item.c (nautilus_icons_view_icon_item_draw):
      	Moved rule about which zoom levels can have text displayed out of the
      	canvas item class into the container. This is only one of many needed
      	cleanups to how the "text in an icon" is handled.
      4019aa50
  8. 06 Mar, 2000 2 commits
    • Darin Adler's avatar
      Added missing code to get stretching to work again. (Oops.) · 6da20678
      Darin Adler authored
      	* libnautilus/gnome-icon-container.c
      	(gnome_icon_container_move_icon): Added missing code to get
      	stretching to work again. (Oops.)
      	(gnome_icon_container_is_stretched), (gnome_icon_container_unstretch):
      	Fixed the unstretch code so it will work on multiple icons.
      
      	* src/file-manager/fm-directory-view-icons.c
      	(fm_directory_view_icons_append_selection_context_menu_items):
      	Make menu item name plural when there are multiple icons to
      	unstretch.
      
      	* libnautilus/nautilus-icons-view-icon-item.c
      	(nautilus_icons_view_icon_item_draw): Draw a box around the item
      	when the stretch handles are visible. This looks better.
      
      	* libnautilus/nautilus-icons-view-icon-item.h: White space.
      6da20678
    • 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