2003-03-10 Alexander Larsson <alexl@redhat.com>
* configure.in:
* NEWS:
Bump to 2.2.2.
Require Eel 2.2.2
* libnautilus-private/nautilus-customization-data.c:
Don't embedd reset label into the reset image.
This drops the last user of PangoFT2.
2003-03-10 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-global-preferences.c:
* libnautilus-private/apps_nautilus_preferences.schemas:
Make 50% the default list view zoom.
* libnautilus-private/nautilus-bookmark.h:
* libnautilus-private/nautilus-bookmark.c:
(nautilus_bookmark_finalize),
(nautilus_bookmark_uri_known_not_to_exist),
(nautilus_bookmark_set_scroll_pos),
(nautilus_bookmark_get_scroll_pos):
Add scroll positions to bookmarks. Used for the window
back/forward history.
* libnautilus-private/nautilus-icon-container.h:
* libnautilus-private/nautilus-icon-container.c:
(nautilus_icon_container_get_first_visible_icon),
(nautilus_icon_container_scroll_to_icon):
Add new functions.
* libnautilus/nautilus-view-component.idl:
Add Nautilus::ScollPositionable interface.
* libnautilus/Makefile.am:
* libnautilus/nautilus-scroll-positionable.h:
* libnautilus/nautilus-scroll-positionable.c:
Standard implementation of Nautilus::ScollPositionable.
* src/file-manager/fm-icon-view.c:
(icon_view_get_first_visible_file_callback),
(icon_view_scroll_to_file_callback), (fm_icon_view_instance_init):
Implement Nautilus::ScollPositionable for icon view.
* src/file-manager/fm-list-view.c:
(list_view_get_first_visible_file_callback),
(list_view_scroll_to_file_callback), (fm_list_view_instance_init):
Implement Nautilus::ScollPositionable for list view.
* src/nautilus-view-frame.h:
* src/nautilus-view-frame.c: (destroy_view),
(create_corba_objects),
(nautilus_view_frame_get_first_visible_file),
(nautilus_view_frame_scroll_to_file):
Add support for Nautilus::ScollPositionable.
* src/nautilus-window-private.h:
* src/nautilus-window-manage-views.c: (open_location),
(free_location_change), (end_location_change),
(begin_location_change), (nautilus_window_set_content_view),
(load_complete_callback), (nautilus_window_back_or_forward),
(nautilus_window_reload):
Save scroll position when changing location and switching
components. Scroll to the right place on back/forward.
2003-03-07 Dave Camp <dave@ximian.com>
* components/text/Makefile.am:
* components/text/nautilus-text-view-ui.xml:
* components/text/nautilus-text-view.c: (copy_callback),
(bonobo_control_activate_callback),
(nautilus_text_view_instance_init): Implement Copy to clipboard.
Don't need cut or paste, since the view is read-only.
2003-03-06 Dave Camp <dave@ximian.com>
* src/nautilus-file-management-properties.glade: Fixed alignment
and padding. Patch from Luca Ferretti <elle.uca@libero.it>.
2003-03-06 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-bookmark.c:
(nautilus_bookmark_get_pixbuf), (nautilus_bookmark_update_icon):
* libnautilus-private/nautilus-emblem-utils.c:
(nautilus_emblem_rename_emblem):
* src/nautilus-sidebar-title.c: (update_emblems):
* src/file-manager/fm-directory-view.c: (ready_to_load):
Update according to NautilusIconFactory API changes.
* libnautilus-private/nautilus-file.h:
* libnautilus-private/nautilus-file.c:
(nautilus_file_peek_top_left_text),
(nautilus_file_get_top_left_text):
Add needs_loading out parameter to nautilus_file_peek_top_left_text.
* libnautilus-private/nautilus-icon-canvas-item.h:
* libnautilus-private/nautilus-icon-canvas-item.c:
(nautilus_icon_canvas_item_finalize),
(nautilus_icon_canvas_item_set_embedded_text_rect),
(nautilus_icon_canvas_item_set_embedded_text),
(draw_embedded_text), (nautilus_icon_canvas_item_draw):
Render embedded text on exposes.
(nautilus_icon_canvas_item_get_image):
Return a GdkPixmap + mask instead of pixbuf, so that
we can do the text rendering on it.
* libnautilus-private/nautilus-icon-private.h:
* libnautilus-private/nautilus-icon-container.h:
* libnautilus-private/nautilus-icon-container.c:
(nautilus_icon_container_clear), (icon_destroy),
(nautilus_icon_container_get_icon_images),
(nautilus_icon_container_start_monitor_top_left),
(nautilus_icon_container_stop_monitor_top_left),
(nautilus_icon_container_update_icon):
For icons that have an embedded text rect, request the
top-left text, and set the text on the canvas item.
* libnautilus-private/nautilus-icon-dnd.c:
(nautilus_icon_dnd_begin_drag):
nautilus_icon_canvas_item_get_image now returns a pixmap, handle this
change.
* libnautilus-private/nautilus-icon-factory.h:
* libnautilus-private/nautilus-icon-factory.c: (cache_key_destroy),
(nautilus_icon_factory_get_required_file_attributes),
(get_icon_from_cache), (nautilus_icon_factory_get_pixbuf_for_icon),
(cache_key_hash), (cache_key_equal),
(nautilus_icon_factory_get_pixbuf_for_file),
(nautilus_icon_factory_get_pixbuf_from_name),
(nautilus_icon_factory_remove_from_cache):
Remove all embedded text handling.
(nautilus_icon_factory_get_basic_file_attributes):
Remove, not needed anymore.
(nautilus_icon_factory_get_icon_for_file):
Pass in whether you want icons for text embedding or not.
* src/file-manager/fm-icon-container.c:
(fm_icon_container_get_icon_images),
(fm_icon_container_start_monitor_top_left),
(fm_icon_container_stop_monitor_top_left),
(fm_icon_container_class_init):
Update to new APIs. pass TRUE for embedd_text in get_icon_for_file.
Implement start/stop top left monitoring.
* src/file-manager/fm-icon-view.c:
(list_covers),(fm_icon_view_clear):
Clear the icon container before unreferencing the NautilusFiles.
Otherwise the stop_monitor call uses the unref:ed file.
2003-03-05 Alexander Larsson <alexl@redhat.com>
* src/nautilus-zoom-control.[ch]:
Derive from EelInputEventBox instead of GtkEventBox.
Works better with themes.
2003-03-04 Alexander Larsson <alexl@redhat.com>
* src/nautilus-location-bar.c (nautilus_location_bar_init):
Use EelInputEventBox for the location label.
This makes theming nicer.
2003-03-04 Alexander Larsson <alexl@redhat.com>
* src/file-manager/fm-desktop-icon-view.c (fm_desktop_icon_view_init):
Don't connect empty void-returning handler to "event". Fixes
delete-key on desktop, and probably other random keynav-on-desktop
failures.
2003-03-04 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-icon-container.c:
* nautilus-zoom-control.c:
Don't chain up to initialize if it is null.
2003-03-04 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-icon-container.c (nautilus_icon_container_accessible_get_type):
EEL_CANVAS, not GNOME_CANVAS.
* libnautilus-private/nautilus-icon-canvas-item.c (nautilus_icon_canvas_item_accessible_get_type):
Implements AtkText for icons presenting the text on both lines.
Implements atk_text_get_offset_at_point and atk_text_get_character_extents
so that screen readers can obtain the text.
* src/nautilus-zoom-control.c (nautilus_zoom_control_accessible_initialize):
Set the role for the zoom widget.
All patches by padraig.obriain@sun.com
2003-03-03 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-icon-container.c:
(icon_toggle_selected), (button_press_event),
(nautilus_icon_container_did_not_drag), (handle_icon_button_press):
* libnautilus-private/nautilus-icon-private.h:
Ctrl/shift dragging doesn't deselect the icon you click on.
Double-clicking has to be twice on the same icon.
2003-03-01 Dave Camp <dave@ximian.com>
* src/nautilus-side-pane.h:
* src/nautilus-side-pane.c: (nautilus_side_pane_get_current_panel):
New function.
* src/nautilus-window-manage-views.c:
(nautilus_window_set_sidebar_panels):
* src/nautilus-window.c: (set_current_side_panel),
(side_pane_switch_page_callback), (nautilus_window_set_up_sidebar),
(nautilus_window_tear_down_sidebar),
(nautilus_window_add_sidebar_panel), (add_sidebar_panels): Save
the current side pane view when it is changed, and show that
when creating the side pane.
* libnautilus-private/apps_nautilus_preferences.schemas:
* libnautilus-private/nautilus-global-preferences.h: Add
a current side panel option.
2003-03-01 Dave Camp <dave@ximian.com>
* src/file-manager/fm-list-view.c: (icons_changed_callback),
(fm_list_view_instance_init): Refresh the rows when the icon
theme changes.
2003-03-01 Dave Camp <dave@ximian.com>
* src/nautilus-window-private.h:
* src/nautilus-window-toolbars.c: (get_back_button),
(get_forward_button), (menu_position_under_widget),
(create_back_or_forward_toolbar_item): Use
bonobo_ui_component_widget_set for the back and forward dropdowns.
This is the nautilus end of a fix for bug #106457.
2003-02-28 Dave Camp <dave@ximian.com>
* libnautilus-private/nautilus-icon-canvas-item.c: (hit_test):
Don't use alpha when checking for hits on the icon.
2003-02-28 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-icon-container.c
(nautilus_icon_container_start_renaming_selected_item)
(rename_filename_selection_end):
Only select the non-extension part of the name when starting a rename.
Set cursor at end of selection.
Set correct font on rename widget.
Make some internal function static.
2003-02-28 Alexander Larsson <alexl@redhat.com>
* components/text/nautilus-text-view.c (nautilus_text_view_instance_init):
Use monospaced font for text view.
Patch by Luca Ferretti <elle.uca@libero.it>