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.
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).
* 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.
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.
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.
* 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.
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.
* 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.
* 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-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.
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-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 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-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.
* 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.
* 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.
* 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 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.
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.
* 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.
* 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.
* 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-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-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-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.
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.
* 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!)
* 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.
* 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-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.
* 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-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.
* 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.