Commit graph

219 commits

Author SHA1 Message Date
Pavel Cisler
7047025cda Added a debugging call to help locate file descriptor leaks.
2000-05-05  Pavel Cisler  <pavel@eazel.com>

	* libnautilus-extensions/nautilus-debug.c,
	libnautilus-extensions/nautilus-debug.h:
	(nautilus_print_available_file_descriptor_count):

	Added a debugging call to help locate file descriptor leaks.
2000-05-05 23:49:26 +00:00
Darin Adler
4e357f8346 Fix up the code for cancelling so we don't leave files open and
objects around so much. It was getting out of hand.

	* libnautilus-extensions/nautilus-directory-async.c:
	(empty_close_callback): Give a warning if we ever have a close
	that fails.
	(directory_count_callback): For easier debugging, NULL out the
	file after unref'ing.
	(start_getting_directory_counts): Unref the file when we cancel
	a directory count part-way through (leak #1).
	(start_getting_top_lefts): Close the file when we cancel a top
	left read part-way through (leak #2). Unref the file when we
	cancel a top left read part way thorugh (leak #3).
2000-05-05 22:55:12 +00:00
Andy Hertzfeld
99e4a30332 made color drag and drop work in the property browser.
made color drag and drop work in the property browser.
2000-05-05 22:51:45 +00:00
Darin Adler
40806d7f3f The old code assumed that white was == 0xFFFFFF. But that's not always
* libnautilus-extensions/nautilus-icon-factory.c:
	(nautilus_icon_factory_embed_text): The old code assumed that white
	was == 0xFFFFFF. But that's not always true. Fixed it now.
2000-05-05 19:08:02 +00:00
Darin Adler
33910528e1 Moved the "embedded text" feature into the icon factory and
NautilusFile.

	* libnautilus-extensions/nautilus-directory-private.h:
	* libnautilus-extensions/nautilus-directory-async.c:
	(metafile_read_close), (nautilus_metafile_read_cancel),
	(metafile_read_failed), (metafile_read_complete),
	(metafile_read_callback), (metafile_read_some),
	(metafile_read_open_callback), (metafile_read_start),
	(nautilus_directory_request_read_metafile), (metafile_write_done),
	(metafile_write_failed), (metafile_write_callback),
	(metafile_write_create_callback), (nautilus_metafile_write_start),
	(metafile_write), (lacks_top_left), (wants_top_left),
	(has_problem), (select_needy_file), (count_lines),
	(top_left_read_done), (top_left_read_failed),
	(top_left_read_complete), (top_left_read_close),
	(top_left_read_callback), (top_left_read_some),
	(top_left_open_callback), (start_getting_top_lefts),
	(state_changed):
	Added code to read top lefts of files in the background.
	Restructured things to accomodate this new code nicely with
	a minimum of copy and paste (there still was plenty of copy
	and paste so there's room for improvement).

	* libnautilus-extensions/nautilus-directory.c:
	(nautilus_directory_destroy):
	Name changes from above required revising some asserts.

	* libnautilus-extensions/nautilus-file-private.h:
	* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_get_top_left_text): Now it returns something
	besides just NULL.
	(nautilus_extract_top_left_text): Function that remembers only
	the part of the top left text that we want to keep around.

	* libnautilus-extensions/nautilus-gtk-extensions.h:
	* libnautilus-extensions/nautilus-gtk-extensions.c:
	(nautilus_gtk_marshal_NONE__POINTER_POINTER_POINTER),
	(nautilus_gtk_marshal_POINTER__POINTER_INT_INT_POINTER_POINTER):
	Needed some new marshal functions.

	* libnautilus-extensions/nautilus-icon-canvas-item.h:
	* libnautilus-extensions/nautilus-icon-canvas-item.c:
	(nautilus_icon_canvas_item_initialize_class),
	(nautilus_icon_canvas_item_destroy),
	(nautilus_icon_canvas_item_set_arg),
	(nautilus_icon_canvas_item_get_arg),
	(nautilus_icon_canvas_item_get_image),
	(nautilus_icon_canvas_item_set_image),
	(nautilus_icon_canvas_item_draw):
	Removed the old embedded text support. It came with a whole lot
	of baggage, also removed.

	* libnautilus-extensions/nautilus-icon-container.h:
	* libnautilus-extensions/nautilus-icon-container.c:
	(nautilus_icon_container_update_icon): Moved pixbuf computing code
	into the FMIconView class. We might decide later to move it back
	again, but for now the embedded text makes it easier to do it
	this way.
	(nautilus_icon_container_initialize_class): Merged
	get_icon_editable_text and get_icon_additional_text back into
	a single signal that gets both.

	* libnautilus-extensions/nautilus-icon-dnd.c:
	(nautilus_icon_dnd_begin_drag): Updated for change in icon factory
	API.

	* src/file-manager/fm-directory-view.c: (finish_loading_uri):
	Ask for top-left text attribute for all directories.

	* src/file-manager/fm-icon-view.c: (get_icon_images_callback):
	Moved pixbuf computing code into the FMIconView class. We might
	decide later to move it back again, but for now the embedded text
	makes it easier to do it this way.
	(get_icon_text_callback): Merged get_icon_editable_text and
	get_icon_additional_text back into a single signal that gets both.
2000-05-05 17:38:39 +00:00
Darin Adler
91bf9af1e8 Moved the "embedded text" feature into the icon factory and
NautilusFile.

	* libnautilus-extensions/nautilus-directory-private.h:
	* libnautilus-extensions/nautilus-directory-async.c:
	(metafile_read_close), (nautilus_metafile_read_cancel),
	(metafile_read_failed), (metafile_read_complete),
	(metafile_read_callback), (metafile_read_some),
	(metafile_read_open_callback), (metafile_read_start),
	(nautilus_directory_request_read_metafile), (metafile_write_done),
	(metafile_write_failed), (metafile_write_callback),
	(metafile_write_create_callback), (nautilus_metafile_write_start),
	(metafile_write), (lacks_top_left), (wants_top_left),
	(has_problem), (select_needy_file), (count_lines),
	(top_left_read_done), (top_left_read_failed),
	(top_left_read_complete), (top_left_read_close),
	(top_left_read_callback), (top_left_read_some),
	(top_left_open_callback), (start_getting_top_lefts),
	(state_changed):
	Added code to read top lefts of files in the background.
	Restructured things to accomodate this new code nicely with
	a minimum of copy and paste (there still was plenty of copy
	and paste so there's room for improvement).

	* libnautilus-extensions/nautilus-directory.c:
	(nautilus_directory_destroy):
	Name changes from above required revising some asserts.

	* libnautilus-extensions/nautilus-file-private.h:
	* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_get_top_left_text): Now it returns something
	besides just NULL.
	(nautilus_extract_top_left_text): Function that remembers only
	the part of the top left text that we want to keep around.

	* libnautilus-extensions/nautilus-gtk-extensions.h:
	* libnautilus-extensions/nautilus-gtk-extensions.c:
	(nautilus_gtk_marshal_NONE__POINTER_POINTER_POINTER),
	(nautilus_gtk_marshal_POINTER__POINTER_INT_INT_POINTER_POINTER):
	Needed some new marshal functions.

	* libnautilus-extensions/nautilus-icon-canvas-item.h:
	* libnautilus-extensions/nautilus-icon-canvas-item.c:
	(nautilus_icon_canvas_item_initialize_class),
	(nautilus_icon_canvas_item_destroy),
	(nautilus_icon_canvas_item_set_arg),
	(nautilus_icon_canvas_item_get_arg),
	(nautilus_icon_canvas_item_get_image),
	(nautilus_icon_canvas_item_set_image),
	(nautilus_icon_canvas_item_draw):
	Removed the old embedded text support. It came with a whole lot
	of baggage, also removed.

	* libnautilus-extensions/nautilus-icon-container.h:
	* libnautilus-extensions/nautilus-icon-container.c:
	(nautilus_icon_container_update_icon): Moved pixbuf computing code
	into the FMIconView class. We might decide later to move it back
	again, but for now the embedded text makes it easier to do it
	this way.
	(nautilus_icon_container_initialize_class): Merged
	get_icon_editable_text and get_icon_additional_text back into
	a single signal that gets both.

	* libnautilus-extensions/nautilus-icon-dnd.c:
	(nautilus_icon_dnd_begin_drag): Updated for change in icon factory
	API.

	* src/file-manager/fm-directory-view.c: (finish_loading_uri):
	Ask for top-left text attribute for all directories.

	* src/file-manager/fm-icon-view.c: (get_icon_images_callback):
	Moved pixbuf computing code into the FMIconView class. We might
	decide later to move it back again, but for now the embedded text
	makes it easier to do it this way.
	(get_icon_text_callback): Merged get_icon_editable_text and
	get_icon_additional_text back into a single signal that gets both.
2000-05-05 17:29:39 +00:00
Andy Hertzfeld
f0c8ba7f53 added colors to the property browser. Still needs work, which I'll finish
added colors to the property browser. Still needs work, which
	I'll finish tomorrow
2000-05-05 08:03:02 +00:00
John Sullivan
4035bb1a49 Added a nice little GNOME_PAD worth of space above (and below, but who
* src/ntl-index-panel.c (nautilus_index_panel_initialize):
	Added a nice little GNOME_PAD worth of space above (and
	below, but who could tell?) the index-title. Now that icon
	isn't jammed up against the top of the sidebar.
2000-05-05 01:41:05 +00:00
John Sullivan
ba5406f178 Some work on the Properties window. It now shows some
more properties (location, type, size, date).

	* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_get_parent_uri_as_string): New function, returns
	the URI of the enclosing directory.
	(nautilus_file_get_string_attribute): Now supports attributes
	"uri" and "parent_uri".
	* src/file-manager/fm-directory-view.c: (compute_menu_item_info),
	(fm_directory_view_real_merge_menus): Changed menu name from
	"Set Properties..." to "Show Properties" since the read-only ones
	now outnumber the changeable ones.
	* src/file-manager/fm-properties-window.c:
	(create_pixmap_widget_for_file), (value_field_update),
	(install_title_value_pair), (create_basic_page),
	(create_emblems_page), (create_properties_window): Broke up
	huge create_properties_window into smaller functions, and
	added location, type, size, and date to Basic page.
2000-05-05 01:14:56 +00:00
J Shane Culpepper
7dbb7d5345 Code cleanup to conform to eazel hacking standards. 2000-05-05 01:10:35 +00:00
Andy Hertzfeld
41b7f28c0d added the ability to drop emblems from the property browser onto icons in
added the ability to drop emblems from the property browser onto
       icons in the icon view; also, added a new background tile
2000-05-05 01:02:37 +00:00
Darin Adler
5aab116158 Fixed bug I introduced earlier. Now MIME types are just like other text --
* src/ntl-uri-map.c: (file_list_to_mime_type_hash_table),
	(free_key), (mime_type_hash_table_destroy),
	(got_file_info_callback): Fixed bug I introduced earlier.
	Now MIME types are just like other text -- potentially
	dynamically computed and all.
2000-05-04 22:49:50 +00:00
Ramiro Estrugo
0a01f7d7f0 Pass command line arguments on to the script. 2000-05-04 21:14:24 +00:00
J Shane Culpepper
6ea15c13af Minor fixes to parse_package_template. 2000-05-04 19:34:48 +00:00
Darin Adler
e0e2e07eab Some more instructions and cleanup. Removed one gratuitous renaming we
* HACKING: Some more instructions and cleanup.
	* RENAMING: Removed one gratuitous renaming we won't do.

	* components/html/ntl-web-browser.c:
	Removed stray "#include <config.h>" that I added by accident.

	* components/hardware/main.c: (main):
	* components/help/hyperbola-main.c: (main):
	* components/html/ntl-web-browser.c: (main):
	* components/music/main.c: (main):
	* components/notes/ntl-notes.c: (main):
	* components/rpmview/main.c: (main):
	* components/websearch/ntl-web-search.c: (main):
	* src/file-manager/gnome-desktop.c (main):
	* src/ntl-main.c (main):
	Added ifdefs so you don't get warnings when building with
	localization turned off. Ugly, but needed I think.

	* components/help/converters/gnome-db2html2/gdb3html.c:
	(ulink_start_element), (start_element):
	* components/help/converters/gnome-db2html2/sect-elements.c:
	(sect_sect_start_element), (sect_sect_end_element),
	(sect_title_start_element), (sect_xref_start_element),
	(sect_graphic_start_element), (sect_get_infobox_logo):
	* components/help/converters/gnome-db2html2/sect-preparse.c:
	(sect_preparse_sect_start_element),
	(sect_preparse_title_characters):
	* components/help/converters/gnome-db2html2/toc-elements.c:
	(toc_sect_start_element), (toc_title_start_element):
	* components/help/converters/gnome-info2html2/html.c:
	(write_node_link_html):
	* components/help/hyperbola-filefmt.c: (tree_key_compare):
	* components/help/hyperbola-nav-index.c: (start_element),
	(end_element), (hyperbola_navigation_index_new):
	* components/html/ntl-web-browser.c: (browser_submit):
	Replaced all uses of strcasecmp with g_strcasecmp.
	Why? Because Michael Meeks said so and that's good enough
	for me (in this case :-).

	* components/music/nautilus-music-view.c:
	(nautilus_music_view_update_from_uri):
	* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_get_mime_type_as_string_attribute),
	(nautilus_file_get_mime_type):
	* libnautilus-extensions/nautilus-icon-factory.c:
	(nautilus_icon_factory_get_icon_name_for_regular_file):
	* src/file-manager/fm-icon-view.c (get_icon_property_callback):
	* src/ntl-index-panel.c (nautilus_index_panel_update_buttons):
	* src/ntl-uri-map.c (file_list_to_mime_type_hash_table):
	Changed get_mime_type to be like all other text functions and
	return a strdup'd string. John said it was a good idea.

	* libnautilus-extensions/nautilus-file-private.h:
	* libnautilus-extensions/nautilus-directory-async.c:
	(metafile_read_callback), (metafile_read_some),
	(set_up_request_by_file_attributes),
	(nautilus_directory_monitor_add_internal),
	(directory_list_get_next_position), (directory_load_callback),
	(ready_callback_call),
	(nautilus_directory_call_when_ready_internal),
	(wants_directory_count), (has_problem),
	(ready_callback_is_satisfied), (is_anyone_monitoring_file_list),
	(is_anyone_waiting_for_metafile), (is_wanted), (select_needy_file),
	(start_getting_directory_counts):
	Reorganize to get ready for adding code to read the top left text.

	* libnautilus-extensions/nautilus-file-attributes.h:
	Added name for the "top left text" attribute.

	* libnautilus-extensions/nautilus-file.h:
	* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_get_top_left_text):
	Added call to get the top left text.

	* libnautilus-extensions/nautilus-icon-canvas-item.c:
	(draw_embedded_text): Tiny format tweak.
	* libnautilus-extensions/nautilus-icon-container.c:
	(nautilus_icon_container_update_icon): Tiny format tweak.

	* libnautilus-extensions/nautilus-icon-factory.h:
	* libnautilus-extensions/nautilus-icon-factory.c:
	(nautilus_icon_factory_get_pixbuf_for_file),
	(nautilus_icon_factory_get_pixmap_and_mask_for_file),
	(nautilus_icon_factory_embed_text),
	(nautilus_icon_factory_embed_file_text):
	Added support for embedded text. Not completely deployed yet.
2000-05-04 15:46:22 +00:00
Pavel Cisler
b91af809b5 Add a simple heuristic to only show the progress dialog for file
2000-05-03  Pavel Cisler  <pavel@eazel.com>

	* src/file-manager/dfos-xfer.c (create_xfer_dialog),
	(handle_xfer_ok), (handle_xfer_vfs_error), (fs_xfer),
	(fs_move_to_trash), (fs_empty_trash):
	Add a simple heuristic to only show the progress dialog
	for file operations that are likely to take a non-trivial
	ammount of time in which case the progress dialog flashed
	on the screen for a split of a second.

	* libnautilus-extensions/nautilus-icon-dnd.c
	(nautilus_icon_dnd_modifier_based_action):
	Switch the modifier key for copy to Control. This is a better
	modifier because Alt had to be held down after the drag started
	otherwise one would move the window instead of starting a drag.
2000-05-04 03:40:38 +00:00
Andy Hertzfeld
6a305ea40d made the property browser stay open if the shift key is held down. Also,
made the property browser stay open if the shift key is held down.
	Also, changed the format of the data for "property/keyword" to
	just be the keyword instead of a file uri.
2000-05-04 02:09:02 +00:00
Eskil Heyn Olsen
d5196f994e parse_pkg_template checks the fopen return val. Also changed the
arguments, so it returns the number of lines, thus loosing the
hardcoded 500 lines in generate_xml_package_list.
2000-05-04 00:34:32 +00:00
Gene Z. Ragan
1f47ad6cdf libnautilus-extensions/nautilus-entry.c Refined undo support.
2000-05-03  Gene Z. Ragan <gzr@eazel.com>

	* libnautilus-extensions/nautilus-entry.c
	* libnautilus-extensions/nautilus-entry.h:
	Refined undo support.
	(nautilus_entry_enable_undo_key):
	New function to set internal handling of ctl-z for undo.

	* libnautilus-extensions/nautilus-icon-container.c
	(hide_rename_widget):
	Removed deletion of undo transaction.  This is now handled
	by the owner of the widget.

	* libnautilus-extensions/nautilus-undo-manager.c
	(nautilus_undo_manager_unregister_object):
	New function to unregister a GtkObject form the undo manager.
	Any transaction that contains the object is removed from the
	undo and redo lists.  This should be called for any object that
	is no longer available for user interaction.

	* libnautilus-extensions/nautilus-undo-transaction.c
	(nautilus_undo_transaction_contains_object):
	Function added to support nautilus_undo_manager_unregister_object()
	call in the undo manager.  Each NautilusUndoable in a transaction
	is checked for the object to be removed.

	* src/file-manager/fm-icon-view.c:
	* src/file-manager/fm-properties-window.c
	(create_properties_window):
	Added call to unregister rename widget form undo manager.

	* src/nautilus-bookmarks-window.c
	Added undo support for entry widgets.

	* src/nautilus-location-bar.c
	Changed to support modified undo manager APIs.
2000-05-03 21:18:17 +00:00
Kjartan Maraas
3777cd8621 Added -DGNOMELOCALEDIR Added bindtextdomain() and textdomain() to
2000-05-03  Kjartan Maraas  <kmaraas@online.no>

	* components/html/Makefile.am: Added -DGNOMELOCALEDIR
	* components/html/ntl-web-browser.c: Added bindtextdomain()
	and textdomain() to initialize the i18n support.
	* components/music/Makefile.am: Same as above.
	* components/music/main.c: Same as above.
	* components/music/nautilus-music-view.c: Marked strings.
	* components/notes/Makefile.am: Same as above.
	* components/notes/ntl-notes.c: Same as above.
	* components/rpmview/Makefile.am: Same as above.
	* components/rpmview/main.c: Same here too.
	* components/rpmview/nautilus-rpm-view.c: Marked strings.
	* components/sample/nautilus-sample-content-view.c: Same here too.
	* components/websearch/Makefile.am: Same as above.
	* components/websearch/ntl-web-search.c: Again.
2000-05-03 20:52:57 +00:00
Fatih Demir
87cd1709e3 Added ko to ALL_LINGUAS 2000-05-03 19:14:33 +00:00
Fatih Demir
ecc2cd485c Corrected a typo 2000-05-03 19:01:34 +00:00
Andy Hertzfeld
d2b30c891d made the index panel display emblems. Made dropping emblems on the index
made the index panel display emblems.  Made dropping emblems on the
	index panel work. Also, added new background image
2000-05-03 08:36:13 +00:00
Gene Z. Ragan
9957240016 Added check for ctl-z. An undo is requested when the key combination is
2000-05-02  Gene Z. Ragan  <gzr@eazel.com>

	* libnautilus-extensions/nautilus-entry.c
	Connected widget to undo manager.
	(nautilus_entry_initialize),
	(nautilus_entry_destroy),
	(nautilus_entry_key_press):
	Added check for ctl-z.  An undo is requested when the key combination
	is triggered.
	(nautilus_entry_changed):
	Added undo registration when text is modified.
	(save_undo_snapshot_callback),
	(restore_from_undo_snapshot_callback):
	Standard undo manager callbacks
	(nautilus_entry_enable_undo):
	Added new function. Pass in boolean value to enable or disable
	undo functionality.
2000-05-03 06:38:38 +00:00
John Sullivan
f88fc87158 Removed special case for "core" files, which are now handled by the MIME
* libnautilus-extensions/nautilus-icon-factory.c
	(nautilus_icon_factory_get_icon_name_for_regular_file):
	Removed special case for "core" files, which are now
	handled by the MIME type database used in gnome-vfs.
2000-05-03 01:43:01 +00:00
Andy Hertzfeld
f81dc0d45c 1st cut at the property browser for drag and drop customization
1st cut at the property browser for drag and drop customization
2000-05-03 01:11:00 +00:00
Maciej Stachowiak
94ee23bd96 Added some idl-related renamings.
* RENAMING: Added some idl-related renamings.
2000-05-03 00:37:13 +00:00
Darin Adler
eb24a903fb Added a mention of "killall oafd" and "killall gconfd".
* HACKING: Added a mention of "killall oafd" and "killall gconfd".

	* libnautilus-extensions/nautilus-list.c (nautilus_list_destroy):
	Fixed a bug where we'd free the details structure and then write
	to it afterwards. This was torturing John today. It happens when
	you leave a page that's set to list view.

	* src/file-manager/fm-icon-view.c
	(fm_icon_view_icon_changed_callback): Fixed bug 663 that was
	about the issue of similar but not identical floating point
	numbers and also bug 661 that wasn't a bug at all!

	* src/file-manager/fm-properties-window.c
	(get_pixmap_and_mask_for_properties_window):
	Removed the FIXME from this file, since the bug is fixed.
2000-05-02 23:42:12 +00:00
Cody Russell
c2215f54aa Respect the user's GNOME preferences. Lock down the "Location toolbar" if
the user has "Can detach and move toolbars" disabled in gnomecc.
2000-05-02 23:30:17 +00:00
Darin Adler
623346f7e6 Open .svg file in binary mode. (load_specific_image): Factor out some
* libnautilus-extensions/nautilus-icon-factory.c:
	(load_specific_image_svg): Open .svg file in binary mode.
	(load_specific_image): Factor out some shared code.

	* src/file-manager/fm-directory-view.h:
	* src/file-manager/fm-directory-view.c:
	Renamed *_cb to *_callback.
	(remove_custom_icon), (files_have_any_custom_images),
	(remove_custom_icons_callback), (finish_adding_menu_item),
	(fm_directory_view_real_append_background_context_menu_items):
	(append_selection_menu_item),
	(fm_directory_view_real_append_selection_context_menu_items),
	(fm_directory_view_real_merge_menus), (update_one_menu_item),
	(fm_directory_view_real_update_menus),
	(create_selection_context_menu):
	Added the "Remove Custom Image" command.
	(compute_menu_item_info): Made more similar to the one in
	FMIconView.

	* src/file-manager/fm-icon-view.c (compute_menu_item_info),
	(append_one_context_menu_item), (insert_one_context_menu_item),
	(fm_icon_view_append_selection_context_menu_items),
	(append_bonobo_menu_item), (fm_icon_view_merge_menus),
	(update_one_menu_item), (fm_icon_view_update_menus):
	Made more similar to code in FMDirectoryView.
2000-05-02 22:50:24 +00:00
Pavel Cisler
dc4cfde636 Get rid of FIXME 623 - the problem was already fixed, I just forgot to
2000-05-02  Pavel Cisler  <pavel@eazel.com>

	* libnautilus-extensions/nautilus-icon-container.c
	(motion_notify_event):
	Get rid of FIXME 623 - the problem was already fixed, I just
	forgot to remove the FIXME.

	* src/file-manager/dfos-xfer.c (handle_xfer_ok):
	Fix FIXME 676 - the particular switch case doesn't need any
	handling, took it out.

	* libnautilus-extensions/nautilus-list-column-title.c
	(nautilus_list_column_title_paint),
	(nautilus_list_column_title_leave),
	(nautilus_list_column_title_button_press),
	(nautilus_list_column_title_button_release):
	Fix bug 423 - Double-clicking Header boundary in List View
	fails assertion.
	Fix a column press tracking bug Gene found - the coulumn would
	stay pressed if you tracked out of the column and let go of the
	mouse button - made it so that when tracking a column press the
	cursor gets grabbed.
	Fix FIXME 618 - used offscreen bitmap draws instead of invalidates
	during the different mouse tracking state changes.

	* file-manager/fm-directory-view.c:
	Added comments to some #if 0 code that I left behind and will use
	later.
2000-05-02 22:24:47 +00:00
John Sullivan
19354d161c Fixed bug 641: should check MIME type for SVG files.
Fixed bug 438: Bookmark menu items need to limit icon size

	* libnautilus-extensions/nautilus-icon-factory.h:
	Defined a new standard icon size, NAUTILUS_ICON_SIZE_FOR_MENUS.
	None of the existing standard sizes look good in menus.

	* libnautilus-extensions/nautilus-file.h,
	* libnautilus-extensions/nautilus-file.c
	(nautilus_file_is_mime_type): New function, compares against
	a particular MIME type so the caller doesn't have to get the
	MIME type and worry about whether to free it or not.

	* libnautilus-extensions/nautilus-icon-factory.c:
	(get_larger_icon_size),
	(get_smaller_icon_size): Include NAUTILUS_ICON_SIZE_FOR_MENUS
	when looking for the next size.
	(str_has_svg_suffix): Removed this function.
	(nautilus_icon_factory_get_icon_for_file): Use
	nautilus_file_is_mime_type to check for SVG instead
	of checking file suffix.
	(path_represents_svg_image): New function.
	(load_specific_image): Use path_represents_svg_image to
	check for SVG instead of checking file suffix.

	* libnautilus-extensions/nautilus-bookmark.c:
	(create_pixmap_widget_for_bookmark): Use
	NAUTILUS_ICON_SIZE_FOR_MENUS.
	* src/nautilus-window-menus.c (append_bookmark_to_menu):
	Use NAUTILUS_ICON_SIZE_FOR_MENUS.
2000-05-02 22:04:50 +00:00
Darin Adler
25223173a8 Got rid of the old maximum size hack and use the new maximum size
* libnautilus-extensions/nautilus-icon-container.c (icon_new),
	(nautilus_icon_container_update_icon):
	Got rid of the old maximum size hack and use the new maximum size
	parameter instead.

	* src/nautilus-index-title.c (nautilus_index_title_update_icon):
	Took out maximum size hack and use the maximum size parameter
	instead.

	* libnautilus-extensions/nautilus-icon-factory.c
	(str_has_svg_suffix), (nautilus_icon_factory_get_icon_for_file),
	(load_specific_image): Renamed suffix_is_scalable to
	str_has_svg_suffix to make it clearer what it does.
2000-05-02 20:55:57 +00:00
Darin Adler
b350e0b3ce Added -print as suggested by Morten Welinder <terra@diku.dk>. Added -print
* check-FIXME.pl: Added -print as suggested by Morten Welinder
	<terra@diku.dk>.
	* check-config-h.pl: Added -print and fixed broken message as
	suggested by Morten Welinder <terra@diku.dk>.

	* libnautilus-extensions/nautilus-icon-factory.h:
	* libnautilus-extensions/nautilus-icon-factory.c
	(suffix_is_scalable): Simpler implementation.
	(get_themed_icon_file_path): Look for size-specific version of
	even .svg files. Although not so useful, it's not ridiculous to do so.
	(nautilus_icon_factory_get_icon_for_file): Fixed the twisted logic to
	be less twisted. Also changed the ".svg" extension check to use the
	common function suffix_is_scalable.
	(load_specific_image): Untwist logic here too, and note in the FIXME
	that both the .svg library and gdk-pixbuf are limiting us to file:
	URIs, although the gdk-pixbuf case is fixable without redoing the
	library by just using our utility functions.
	(load_image_for_scaling): Update for new size request structure which
	contains maximum sizes as well as nominal ones.
	(scale_image_and_rectangle), (revise_scale_factors_if_too_big),
	(scale_image_down_if_too_big): New helper functions for scaling.
	(load_image_scale_if_necessary): Take the maximum size into account.
	(get_image_from_cache): Use new size request structure and take the
	maximum size into account.
	(nautilus_icon_factory_get_pixbuf_for_icon): Changed to take maximum
	size parameters and pass them in to the underlying function.
	(icon_cache_key_hash): Include the maximum size in the hash.
	(icon_cache_key_equal): Check the maximum size too.
	(nautilus_icon_factory_get_pixbuf_for_file): Pass new max. size
	parameters to the nautilus_icon_factory_get_pixbuf_for_icon
	function.

	* libnautilus-extensions/nautilus-icon-container.c
	(nautilus_icon_container_update_icon): Pass new max. size
	parameters to the nautilus_icon_factory_get_pixbuf_for_icon
	function.

	* src/file-manager/fm-list-view.c
	(fm_list_view_get_emblem_pixbufs_for_file): Pass new max. size
	parameters to the nautilus_icon_factory_get_pixbuf_for_icon
	function.
2000-05-02 20:04:26 +00:00
John Sullivan
225e67f12b data/mime/.cvsignore, , Removed files. Nautilus doesn't need to install
* data/mime/.cvsignore,
	* data/mime/Makefile.am:,
	* data/mime/nautilus.keys: Removed files. Nautilus
	doesn't need to install the human-readable MIME
	descriptions any more because gnome-vfs does it.

	* configure.in,
	* data/Makefile.am: Removed build system fu that
	was installing nautilus.keys.
2000-05-02 17:47:44 +00:00
Kjartan Maraas
88de979cd2 Cosmetic change. Added -DGNOMELOCALEDIR to $INCLUDES. Added calls to
2000-05-01  Kjartan Maraas  <kmaraas@gnu.org>

	* libnautilus/nautilus-clipboard.c: Cosmetic change.
	* src/Makefile.am: Added -DGNOMELOCALEDIR to $INCLUDES.
	* src/ntl-main.c: Added calls to bindtextdomain() and
	textdomain() to make the translations work.
	* components/help/hyperbola-main.c: Same here.
	* components/help/Makefile.am: Here as well. This should be
	done for any main() function in any module containing text
	to be translated.
2000-05-02 11:13:03 +00:00
Darin Adler
fa581b799d *** empty log message *** 2000-05-02 05:19:50 +00:00
Pavel Cisler
83ce94c51b Temporary workaround for an apparent codegen bug Carbamide was running
2000-04-29  Pavel Cisler  <pavel@eazel.com>

	* libnautilus-extensions/nautilus-file-changes-queue.c:
	(nautilus_file_changes_consume_changes):
	Temporary workaround for an apparent codegen bug Carbamide
	was running into. (I'll need to track this down some more,
	this change makes the crash go away.)

	* src/file-manager/dfos-xfer-progress-dialog.c:
	* src/file-manager/dfos-xfer-progress-dialog.h:
	* src/file-manager/dfos-xfer.c:
	(dfos_xfer_progress_dialog_get_type),
	(dfos_xfer_progress_dialog_new),
	(dfos_xfer_progress_dialog_new_file),
	(create_xfer_dialog),
	(fs_xfer), (handle_xfer_ok):
	Fix up the progress dialog so that it displays meaningfull
	information while emptying the trash and moving files to
	trash.
2000-05-02 03:44:08 +00:00
Ramiro Estrugo
2dcf15c7db Retired nautilus-gconf.[ch]. Not used or needed no more. 2000-05-02 00:59:08 +00:00
Darin Adler
292a29b61f Wrote a script to check for files that forget to include <config.h> and
* check-config-h.pl: Wrote a script to check for files that forget
	to include <config.h> and optionally edit to add it.

        * src/nautilus-zoom-control.c (set_zoom_level): Fixed the bug
	number in a FIXME.

        * docs/style-guide.html: Added one more tip.

        * check-FIXME.pl: Use my newfound Perl knowledge to spruce it up.

        * components/help/converters/gnome-db2html2/gdb3html.c:
        * components/help/converters/gnome-db2html2/sect-elements.c:
        * components/help/converters/gnome-db2html2/sect-preparse.c:
        * components/help/converters/gnome-db2html2/toc-elements.c:
        * components/help/converters/gnome-info2html2/html.c:
        * components/help/converters/gnome-info2html2/main.c:
        * components/help/converters/gnome-info2html2/parse.c:
        * components/help/converters/gnome-info2html2/utils.c:
        * components/help/converters/gnome-man2html2/gnome-man2html.c:
        * components/help/hyperbola-filefmt.c:
        * components/help/hyperbola-nav-index.c:
        * components/help/hyperbola-nav-search.c:
        * components/help/hyperbola-nav-tree.c:
        * components/html/glibwww-callbacks.c:
        * components/html/glibwww-init.c:
        * components/html/glibwww-trans.c:
        * components/html/gnome-dialogs.c:
        * components/html/ntl-web-browser.c:
        * components/services/install/eazel-install-metadata.c:
        * components/services/install/eazel-install-protocols.c:
        * components/services/install/eazel-install-rpm-glue.c:
        * components/services/install/eazel-install-tests.c:
        * components/services/install/eazel-install-utils.c:
        * components/services/install/eazel-install-xml-package-list.c:
        * components/services/install/eazel-install.c:
        * components/services/install/helixcode-install-utils.c:
        * components/services/startup/eazel-register.c:
        * components/websearch/ntl-web-search.c:
        * helper-utilities/authenticate/nautilus-authenticate-fork.c:
        * helper-utilities/authenticate/nautilus-authenticate-pam.c:
        * helper-utilities/authenticate/nautilus-authenticate.c:
        * libnautilus-extensions/nautilus-bonobo-extensions.c:
        * libnautilus-extensions/nautilus-file-utilities.c:
        * libnautilus-extensions/nautilus-glib-extensions.c:
        * libnautilus-extensions/nautilus-link.c:
        * libnautilus-extensions/nautilus-mime-type.c:
        * libnautilus-extensions/nautilus-undo-transaction.c:
        * librsvg/art_rgba.c:
        * librsvg/art_rgba_svp.c:
        * librsvg/rsvg-bpath-util.c:
        * librsvg/rsvg-path.c:
        * librsvg/rsvg.c:
        * librsvg/test-rsvg.c:
        * nautilus-widgets/nautilus-caption-table.c:
        * nautilus-widgets/nautilus-password-dialog.c:
        * nautilus-widgets/nautilus-preferences-box.c:
        * nautilus-widgets/nautilus-preferences-dialog.c:
        * nautilus-widgets/nautilus-preferences-group.c:
        * nautilus-widgets/nautilus-preferences-item.c:
        * nautilus-widgets/nautilus-preferences-pane.c:
        * nautilus-widgets/nautilus-radio-button-group.c:
        * nautilus-widgets/test-nautilus-widgets.c:
        * nautilus-widgets/test-preferences.c:
        * src/file-manager/desktop-item.c:
        * src/file-manager/desktop-layout.c:
        * src/file-manager/desktop-menu.c:
        * src/nautilus-bookmarks-window.c:
        * src/nautilus-gconf.c:
	* src/nautilus-window-menus.c:
        * src/nautilus-window-toolbars.c:
	* src/nautilus-zoom-control.c
        * src/nautilus-zoomable-frame-svr.c:
        * src/ntl-app.c:
        * src/ntl-content-view.c:
        * src/ntl-main.c:
        * src/ntl-meta-view.c:
        * src/ntl-miniicon.c:
        * src/ntl-uri-map.c:
        * src/ntl-view-frame-svr.c:
        * src/ntl-view.c:
        * src/ntl-window-state.c:
	Added includes of <config.h>.
2000-05-02 00:50:32 +00:00
Gene Z. Ragan
f115ffb697 libnautilus-extensions/nautilus-icon-text-item.c
2000-05-01  Gene Z. Ragan  <gzr@eazel.com>

	* libnautilus-extensions/nautilus-icon-text-item.c
	* libnautilus-extensions/nautilus-icon-private.h
	(iti_event),
	(nautilus_icon_text_item_configure),
	(nautilus_icon_text_item_start_editing),
	(save_undo_snapshot_callback),
	(restore_from_undo_snapshot_callback):

	* libnautilus-extensions/nautilus-undo-manager.c
	(nautilus_undo_manager_remove_transaction),
	(nautilus_undo_manager_add_undo_transaction),
	(nautilus_undo_manager_add_redo_transaction),
	(prune_undo_manager_list):
	Fixed bug in above functions where GList was not getting properly updated
	after an insert or remove operation.

	* src/nautilus-location-bar.c
	(nautilus_location_bar_initialize_class):
	Added signal connection to the "changed" signal of the GtkEntry item.
	(editable_changed_callback):
	Added undo operation functionality.
	Original location text is cached in anticipation of an undo operation.
	(nautilus_location_bar_initialize):
	Added two new memeber variables, undo_text and undo_registered.  undo_text is
	a char * that keeps a cache of the location text before editing.
	undo_registered is a boolean that is set when an undo can be registered.
	(nautilus_location_bar_set_location):
	undo_registered is set to FALSE and undo_text is updated.
	(save_undo_snapshot_callback):
	Callback called to create undo transaction
	(restore_from_undo_snapshot_callback):
	Callback called to restore the location bar text.
	(destroy):
	undo_text is freed if it has been allocated.
2000-05-02 00:43:14 +00:00
John Sullivan
6b1364e60f Fixed bug 575 (Make Nautilus use gnome-vfs-mime)
Converted all the (few) places where Nautilus code was
	using the old gnome-libs MIME API to use the new gnome-vfs
	MIME API.

	* components/help/help-method.c (convert_file_to_uri):
	Use gnome_vfs_mime_type_of_file. This function should
	probably use NautilusFile rather than calling the MIME
	stuff directly, but I just couldn't get distracted into
	trying to improve it.

	* libnautilus-extensions/nautilus-file.c
	(nautilus_file_get_type_as_string):
	Use gnome_vfs_mime_description.
	* libnautilus-extensions/nautilus-icon-factory.c
	(nautilus_icon_factory_get_icon_name_for_regular_file):
	Use gnome_vfs_mime_get_value.


	* data/mime/nautilus.keys: Added a translation for
	"special/symlink" because it now starts showing up when
	using ftp:// locations. Perhaps we need to fix something
	in ftp also.
2000-05-01 23:36:57 +00:00
Darin Adler
ee569ce5d0 Added option for eog. (Sorry Maciej, I had done it before I got your
* HACKING: Added option for eog. (Sorry Maciej, I had done it
	before I got your mail.)
        * src/ntl-uri-map.c (make_oaf_query_with_known_mime_type),
        (make_oaf_query_with_uri_scheme_only): Improved comments and
	formatting a little big more. (Sorry again, Maciej. You can
	merge it however you want!)
2000-05-01 21:42:47 +00:00
Maciej Stachowiak
30499d5778 Remove FIXME comment for #681; everything wrong with this file seems to be
* libnautilus/nautilus-zoomable.c: Remove FIXME comment for #681;
	everything wrong with this file seems to be separately recorded.
2000-05-01 17:56:57 +00:00
Darin Adler
1079ef2b27 Another cut at icon positioning. Still much tweaking needed.
* libnautilus-extensions/nautilus-icon-canvas-item.c
        (nautilus_icon_canvas_item_bounds): Got rid of "slop".
        * libnautilus-extensions/nautilus-icon-grid.c
        (get_icon_size_power_from_bounds), (get_icon_size_power):
	Get more grid space per icon now that slop is gone.
        (nautilus_icon_grid_add): Base grid space occupied on the size of
	the icon, not the side of the grid.
	(nautilus_icon_grid_get_position): Position icons horizontally
	centered in the space, but vertically at the top.

	Made the OAF queries more readable as I discussed with Maciej.

        * src/ntl-uri-map.c (extract_prefix_add_suffix),
        (mime_type_get_supertype), (uri_string_get_scheme):
	Make special-purpose string routines use common function instead.
	We must not optimize this kind of thing for speed, but rather for
	ease of reading the code.  This can be whittled down a little more
	and put into nautilus-string.h
        (make_oaf_query_with_known_mime_type),
        (make_oaf_query_with_uri_scheme_only):
	Reformatted and commented the OAF queries so they are easy to read.
2000-05-01 17:09:09 +00:00
Darin Adler
9f6600b07e Fixed a typo that prevented my Bonobo bug fix from working. We were still
* src/file-manager/fm-icon-view.c:
	Fixed a typo that prevented my Bonobo bug fix from working.
	We were still getting crashes when we switched views because
	the radio group was in "Setings", not "Settings".
2000-04-30 18:26:47 +00:00
Christopher Blizzard
83bed1dec1 Add $(BONOBO_CFLAGS) so that we can pick up the path to the bonobo
2000-04-29  Christopher Blizzard  <blizzard@redhat.com>

        * components/mozilla/Makefile.am (INCLUDES): Add $(BONOBO_CFLAGS)
        so that we can pick up the path to the bonobo includes in case
        they are built somewhere else than the standard location.
2000-04-30 03:58:56 +00:00
Ramiro Estrugo
e8bb14fe96 Check in patch suggested by Roberto Zunino <zunino@cli.di.unipi.it>. Check
* configure.in:
* librsvg/Makefile.am:
Check in patch suggested by Roberto Zunino
<zunino@cli.di.unipi.it>.  Check for gdk-pixbuf in configure and
use the flags set by that in the rsvg makefile.
2000-04-29 23:50:02 +00:00
Gene Z. Ragan
e33d60fa77 libnautilus-extensions/nautilus-icon-text-item.c
2000-04-28  Gene Z. Ragan  <gzr@eazel.com>
	* libnautilus-extensions/nautilus-icon-text-item.c
	* libnautilus-extensions/nautilus-icon-text-item.h
	* libnautilus-extensions/nautilus-undo-manager-private.h
	Fixed the following FIXME bugs: 684 686 687
	Hooked up the undo mechanism to work properly with
	the renaming widget.

	* libnautilus-extensions/nautilus-undo-manager.c
	* libnautilus-extensions/nautilus-undo-manager.h
	Add configuration defaults to sets the UndoManager to
	not use the redo functionality and sets the depth of
	the undo list to one transaction.
	(nautilus_undo_manager_enable_redo):
	Function to toggle on or off the ability to redo undone transactions.
	(nautilus_undo_manager_set_queue_depth):
	Function to set the max depth of the undo/redo queues
	(free_undo_manager_list_data):
	New utility function to clean up data in undo/redo list
	(prune_undo_manager_list):
	New utility function that prunes a set number of items from
	either the undo or redo list.
	(nautilus_undo_manager_add_undo_transaction):
	Manually insert an externally created undo transaction into
	the undo queue.
	(nautilus_undo_manager_add_redo_transaction):
	Manually insert an externally created undo transaction into
	the redo queue.

	* libnautilus-extensions/nautilus-undo-transaction.c
	* libnautilus-extensions/nautilus-undo-transaction.h
	(nautilus_undo_transaction_destroy):
	Added destructor function for a NautilusUndoTransaction object

	* src/nautilus-window-menus.c
	(update_undo_menu_item):
	Fixed bug 755.  Connected to signal sent by undo manager that informs
	Undo menu item sensitivity to be set.
2000-04-29 00:46:41 +00:00
Darin Adler
9c18229d35 gtk_signal_connect_while_alive wasn't quite up to the task, so I had to
* libnautilus-extensions/nautilus-directory-background.c
	(background_destroyed_callback),
	(nautilus_connect_background_to_directory):
	gtk_signal_connect_while_alive wasn't quite up to the task,
	so I had to redo the fix from my last check-in.
2000-04-29 00:35:02 +00:00