discovered while verifying. Yay for bug verification!
* src/file-manager/fm-icon-view.c: (switch_to_manual_layout):
I had neglected to remove an extra call to
nautilus_icon_container_reset_scroll_region here. It's already
handled one level lower, where the empty directory case is
taken into account.
Fixed bug 2207 (Search needs to gracefully handle too
many items found)
* libnautilus-extensions/nautilus-directory-async.c:
(directory_load_done): Don't treat GNOME_VFS_OK as an
error case here. This was happening when the file limit
was reached, and the resulting propogated error was making
it to the search list view code, which was putting up
an error dialog saying no error had occurred.
* libnautilus-extensions/nautilus-directory.h:
Added FIXME with bug number for new bug 5603, which complains
that the file list limit isn't as hard as it claims.
* src/file-manager/fm-directory-view.h:
* src/file-manager/fm-directory-view.c:
(fm_directory_view_initialize_class),
(fm_directory_view_file_limit_reached), (real_file_limit_reached),
(check_for_directory_hard_limit): Broke out the code that handles
the UI when the directory contains too many files such that
subclasses can override the behavior.
(fm_directory_view_get_containing_window): Renamed from
"get_containing_window" and made public so subclasses don't have
to reimplent.
(fm_directory_view_confirm_multiple_windows),
(fm_directory_view_launch_application), (choose_program),
(fm_directory_view_confirm_deletion), (confirm_delete_from_trash),
(report_broken_symbolic_link), (fm_directory_view_activate_file):
Updated for function name change.
* src/file-manager/fm-search-list-view.c:
(load_error_callback): Marked strings for localization; reworded to
avoid use of "directory".
(fm_search_list_view_initialize_class), (real_file_limit_reached):
Put up dialog that's been worded specifically for search results
when too many items are found.
* components/services/install/lib/eazel-install-logic.c:
(eazel_install_start_transaction):
Reverse the package list just before installing, so that the
install view gets info on toplevel packages before their
dependencies (this keeps the user from being bored, since they'll
see the package detailed info on toplevel packages while the
others are installing).
* components/services/install/lib/eazel-install-metadata.c:
(init_default_install_configuration):
* components/services/install/lib/eazel-install-object.c:
(eazel_install_uninstall_packages):
Remove last vestigal uses of a literal "/var" path.
* components/services/install/nautilus-view/nautilus-service-instal
l-view.c: (install_message_new), (generate_install_form),
(current_progress_bar_complete),
(nautilus_service_install_downloading),
(previous_install_finished), (nautilus_service_install_installing),
(nautilus_service_install_done):
* components/services/install/nautilus-view/nautilus-service-instal
l-view.h:
Finish Arlo'ification of the install view: Pin the message box at
a specific height, clean up lots of nastiness caused by the new
font system, and fix up the text displayed per-package when the
package is done being installed. Also, fix a bug that caused a
cancelled install to report that it was successful.
* components/services/nautilus-dependent-shared/eazel-services-head
er.c: (eazel_services_header_middle_new):
Change positioning of the middle header so that it doesn't cause
mondo amounts of empty space to appear beneath it. (Not sure why;
GTK magic.)
2001-01-11 John Harper <jsh@eazel.com>
reviewed by: Pavel Cisler <pavel@eazel.com>
Fixed bug 5589 (crash when dragging from list view), that I'd
introduced when making list view icons anti-aliased
* libnautilus-extensions/nautilus-list.h,
libnautilus-extensions/nautilus-list.c
(nautilus_list_get_pixbuf): new function, returns the GdkPixbuf
stored in a cell, or a null pointer if there isn't one
* src/file-manager/fm-list-view.c (fm_list_get_drag_pixmap):
use nautilus_list_get_pixbuf to fetch the GdkPixbuf from the
row, then gdk_pixbuf_render_pixmap_and_mask to turn it into the
required format (instead of accessing the NautilusClist widget
directly, assuming that a Pixmap is stored in the cell)
2001-01-12 Rebecca Schulman <rebecka@eazel.com>
* src/nautilus-complex-search-bar.c:
(nautilus_complex_search_bar_get_location):
Change "index-only" to "index-if-available"
in search uris, to take advantage of the new
option in medusa to perform a slow search
only if an index is unavailable
Fixed bug 2068 (Dragging icons adjusts scroll area in a way
that causes immediate scrolling)
Fixed bug 3402 (Dragging singleton icon to edge of window in
manual layout mode puts it back at top-left)
Fixed bug 3405 (Dropping an icon into empty manual-layout
window always puts it at top-left)
Fixed bug 3570 (Relayout glitch after removing an item from
a view)
I had earlier started to fix these by trying to save and
restore the scroll position per directory. But this path
turned evil, and I gave up on it. There is still some
partly-implemented work from my start in the evil direction,
which I will remove in my next checkin.
The new fix was to always include the visible white space
when recomputing the icon container's scroll region, unless
a caller has specifically requested not to.
* libnautilus-extensions/nautilus-icon-container.h:
* libnautilus-extensions/nautilus-icon-container.c:
(nautilus_icon_container_reset_scroll_region): New function,
sets a flag in the details struct that's respected in the
next scroll region update.
(reset_scroll_region_if_not_empty): New helper function,
calls _reset_scroll_region unless container is empty.
(nautilus_icon_container_update_scroll_region_include_visible_area):
Removed this function; its equivalent is to call reset_scroll_region
before calling update_scroll_region.
(nautilus_icon_container_update_scroll_region): Now that the
_include_visible_area variant is gone, merged the local function
update_scroll_region with this public one. It decides whether to
include the visible area or not based on the flag set by
_reset_scroll_region (also, it never includes the visible area
if the container is empty).
(nautilus_icon_container_set_auto_layout): Reset the scroll region
when changing the auto_layout state.
(nautilus_icon_container_sort): reset the scroll region before
sorting.
* libnautilus-extensions/nautilus-icon-dnd.c: (handle_local_move):
Call nautilus_icon_container_update_scroll_region instead of
_update_scroll_region_include_visible_area, which no longer exists.
* libnautilus-extensions/nautilus-icon-private.h: Store flag for
resetting scroll region in details; eliminate prototype for
nautilus_icon_container_update_scroll_region_include_visible_area.
* src/file-manager/fm-directory-view.h:
* src/file-manager/fm-directory-view.c:
(fm_directory_view_initialize_class), (done_loading),
(fm_directory_view_begin_loading), (fm_directory_view_end_loading):
Added end_loading signal that's sent when a directory is finished
loading, parallel to existing begin_loading signal.
* src/file-manager/fm-icon-view.c:
(fm_icon_view_add_file): Reset the scroll region for the first
icon added when loading a directory.
(fm_icon_view_begin_loading), (fm_icon_view_end_loading):
Remember that we're loading, so fm_icon_view_add_file can test correctly.
(set_sort_criterion_by_id): Bail out early if state hasn't changed.
(switch_to_manual_layout): Bail out early if state hasn't changed.
Also, reset scroll region before switching to manual layout.
(fm_icon_view_initialize_class): Attach fm_icon_view_end_loading to
virtual function slot.
* libnautilus-extensions/nautilus-art-extensions.c:
(nautilus_art_irect_align):
* libnautilus-extensions/nautilus-art-extensions.h:
New function to align a rectangle within another.
* libnautilus-extensions/nautilus-image.c:
(image_get_pixbuf_bounds):
* libnautilus-extensions/nautilus-label.c: (label_get_text_bounds):
Share more code between these two widgets by using a common
alignment routine.
* src/nautilus-property-browser.c: (make_category_link):
make the category links use nautilus-image for anti-aliased
graphics like we intended, now that Ramiro has fixed the
background problems.
* icons/eazel/Back.png
* icons/eazel/Forward.png
* icons/eazel/Home.png
* icons/eazel/Refresh.png
* icons/eazel/Search.png
* icons/eazel/SearchWeb.png
* icons/eazel/Services.png
* icons/eazel/Stop.png
* icons/eazel/Up.png
newer toolbar buttons from Susan
* components/services/install/lib/eazel-install-corba-callback.c:
(eazel_install_callback_initialize), (eazel_install_callback_new):
Turn g_error to g_warning in the EazelInstallCallback initializer,
so that it doesn't kill off the view when the install service
isn't around. Instead, set some fields to NULL and return
normally. The *_new call then returns NULL on failure.
* components/services/install/nautilus-view/nautilus-service-instal
l-view.c: (nautilus_service_install_installing),
(nautilus_service_install_view_update_from_uri):
Notice if the eazel_install_callback_new call returns NULL, and
gracefully handle it by ceasing operations and popping up a dialog
about the failure. This solves the "don't crash if the install
service is missing" bug.
* components/services/install/lib/eazel-install-object.c:
(eazel_install_add_repository):
* components/services/install/lib/eazel-install-private.h:
* components/services/install/lib/eazel-install-protocols.c:
(my_copy_file), (eazel_install_fetch_file):
* components/services/install/lib/eazel-install-public.h:
* nautilus-installer/src/installer.c: (get_candidate_dirs),
(search_for_local_cds), (eazel_installer_initialize):
* nautilus-installer/src/main.c:
Retrofit the --cache-dir option and code to automatically add
mounted CD packages to the repository, from the PR3 installer
branch.
* nautilus-installer/src/Makefile:
Help me, Obi-wan, you're my only hope.
Fix bugs 4711, 2322, 3778, 4989, 5044, 5166, 5408, 4418, 3779 (parts),
5051, 2783 and maybe other relating to (ab)use of fonts,
backgrounds and other sacred attrbiutes of Gtk themes.
* components/hardware/nautilus-hardware-view.c: (setup_form_title),
(setup_overview_form), (setup_CPU_form), (setup_RAM_form),
(setup_IDE_form):
Fix hard coded fonts.
* components/music/nautilus-music-view.c:
(nautilus_music_view_initialize),
(music_view_set_selected_song_title), (reset_playtime),
(play_status_display), (slider_moved_callback),
(add_play_controls):
Fix hard coded fonts.
* components/rpmview/nautilus-rpm-verify-window.c:
(nautilus_rpm_verify_window_initialize):
Fix hard coded fonts.
* components/rpmview/nautilus-rpm-view.c:
(nautilus_rpm_view_initialize):
* components/services/install/nautilus-view/nautilus-service-instal
l-view.c: (horizontal_line_new), (install_message_new),
(generate_install_form),
(nautilus_service_install_view_initialize),
(current_progress_bar_complete),
(nautilus_service_install_installing):
Fix hard coded fonts.
* components/services/login/nautilus-view/nautilus-change-password-
view.c: (generate_change_password_form), (authn_succeeded),
(authn_failed), (change_password_button_cb),
(nautilus_change_password_view_initialize):
Fix hard coded fonts. Cleanup header inclusion a bit.
* components/services/nautilus-dependent-shared/Makefile.am:
Retire some crufty code.
* components/services/nautilus-dependent-shared/eazel-services-exte
nsions.c: (eazel_services_image_new),
(eazel_services_image_new_from_uri):, (eazel_services_label_new):
Update for label, image and hard coded font changes.
* components/services/nautilus-dependent-shared/eazel-services-exte
nsions.h:
Make the colors opaque. Remove a bunch of hard coded font stuff.
Also remove a bunch of hard coded offsets. We use alignments and
paddings instead.
* components/services/nautilus-dependent-shared/eazel-services-foot
er.c: (label_enter_event), (label_leave_event),
(image_enter_event), (footer_item_new),
(eazel_services_footer_update):
Update for label, image and hard coded font changes.
* components/services/nautilus-dependent-shared/eazel-services-head
er.c: (eazel_services_header_title_new),
(eazel_services_header_middle_new):
* components/services/nautilus-dependent-shared/shared-service-util
ities.c:
* components/services/nautilus-dependent-shared/shared-service-util
ities.h:
* components/services/nautilus-dependent-shared/shared-service-widg
ets.c:
* components/services/nautilus-dependent-shared/shared-service-widg
ets.h:
* components/services/summary/nautilus-view/nautilus-summary-callba
cks.c:
* components/services/summary/nautilus-view/nautilus-summary-dialog
s.c: (generate_login_dialog):
* components/services/summary/nautilus-view/nautilus-summary-footer
.c:
* components/services/summary/nautilus-view/nautilus-summary-menu-i
tems.c:
* components/services/summary/nautilus-view/nautilus-summary-view-p
rivate.h:
* components/services/summary/nautilus-view/nautilus-summary-view.c
: (generate_summary_form), (generate_service_entry_row),
(generate_eazel_news_entry_row), (generate_update_news_entry_row):
Update for label, image and hard coded font changes.
* libnautilus-extensions/Makefile.am:
Add new smooth/label/image widget stuff. Retire buffered widget.
* libnautilus-extensions/nautilus-art-extensions.c:
(nautilus_art_irect_get_width), (nautilus_art_irect_get_height):
* libnautilus-extensions/nautilus-art-extensions.h:
Two new very simple functions to get the width/height of an
ArtIRect.
* libnautilus-extensions/nautilus-art-gtk-extensions.c:
(nautilus_irect_gtk_widget_get_frame):
* libnautilus-extensions/nautilus-art-gtk-extensions.h:
New simple function to get the dimensions of a widget as an
ArtIRect frame.
* libnautilus-extensions/nautilus-buffered-widget.c:
* libnautilus-extensions/nautilus-buffered-widget.h:
Retire. We dont use this no more.
* libnautilus-extensions/nautilus-customization-data.c:
(nautilus_customization_data_get_next_element_for_display):
Update for image and hard coded font changes.
* libnautilus-extensions/nautilus-debug-drawing.c:
(debug_pixbuf_viewer_initialize_class),
(debug_pixbuf_viewer_initialize), (debug_pixbuf_viewer_destroy),
(debug_pixbuf_viewer_size_request),
(debug_pixbuf_viewer_expose_event),
(debug_pixbuf_viewer_set_pixbuf),
(nautilus_debug_draw_rectangle_and_cross), (destroy_debug_window),
(nautilus_debug_show_pixbuf):
* libnautilus-extensions/nautilus-debug-drawing.h:
Back to using a widget to display the debug pixbuf. But since we
cant use NautilusImage (because we want to use this debug stuff to
debug NautilusImage itselft) we need something else. Thus a new
private and simple widget to display the debug pixbuf.
* libnautilus-extensions/nautilus-gdk-pixbuf-extensions.c:
(nautilus_gdk_pixbuf_draw_to_drawable),
(nautilus_gdk_pixbuf_draw_to_pixbuf_alpha): Fix a very dumb typo.
(draw_tile_to_pixbuf_callback),
(nautilus_gdk_pixbuf_draw_to_pixbuf_tiled),
(nautilus_gdk_pixbuf_draw_to_drawable_tiled),
(nautilus_gdk_pixbuf_get_from_window_safe):
Rename opacity macros to FULLY_OPAQUE and FULLY_TRANSPARENT for
clarity.
* libnautilus-extensions/nautilus-gdk-pixbuf-extensions.h:
Rename opacity macros to FULLY_OPAQUE and FULLY_TRANSPARENT for
clarity.
* libnautilus-extensions/nautilus-icon-factory.c: (embed_text):
Update opacity macros. Tiny update for change in font constructor.
* libnautilus-extensions/nautilus-image-with-background.h:
* libnautilus-extensions/nautilus-image-with-background.c:
(find_background_ancestor), (draw_background_callback),
(nautilus_image_new_with_background):
Create a NautilusImage that uses NautilusBackground to
draw the background. We put this in a separate file to avoid the
ugly dependency chain in NautilusBackground so that NautilusImage
can be used by standalone components in the future.
* libnautilus-extensions/nautilus-image.h:
* libnautilus-extensions/nautilus-image.c:
(nautilus_image_initialize_class), (nautilus_image_initialize),
(nautilus_image_destroy), (nautilus_image_set_arg),
(nautilus_image_get_arg), (nautilus_image_size_request),
(image_paint_pixbuf_callback), (image_composite_pixbuf_callback),
(nautilus_image_expose_event),
(nautilus_image_set_is_smooth_signal), (image_get_pixbuf_frame),
(image_get_pixbuf_bounds), (image_get_tile_frame),
(nautilus_image_new), (nautilus_image_set_is_smooth),
(nautilus_image_get_is_smooth), (nautilus_image_set_tile_pixbuf),
(nautilus_image_get_tile_pixbuf), (nautilus_image_set_pixbuf),
(nautilus_image_set_pixbuf_from_file_name),
(nautilus_image_get_pixbuf), (nautilus_image_set_pixbuf_opacity),
(nautilus_image_get_pixbuf_opacity),
(nautilus_image_set_tile_opacity),
(nautilus_image_get_tile_opacity), (nautilus_image_set_tile_width),
(nautilus_image_get_tile_width), (nautilus_image_set_tile_height),
(nautilus_image_get_tile_height),
(nautilus_image_set_tile_mode_vertical),
(nautilus_image_get_tile_mode_vertical),
(nautilus_image_set_tile_mode_horizontal),
(nautilus_image_get_tile_mode_horizontal),
(nautilus_image_set_tile_pixbuf_from_file_name),
(nautilus_image_set_background_mode),
(nautilus_image_get_background_mode),
(nautilus_image_set_solid_background_color),
(nautilus_image_get_solid_background_color),
(nautilus_image_new_solid):
Fixed many problems. Properly handles rendering
on top of arbitrary Gtk backgrounds. Does not allocate a buffer
the size of the widget anymore. All rendering occurs on exposure
events. Honrts the the GtkMisc superclass attrbutes for alignment
and padding. The widget is a lot simpler now.
* libnautilus-extensions/nautilus-label-with-background.h:
* libnautilus-extensions/nautilus-label-with-background.c:
(find_background_ancestor), (draw_background_callback),
(nautilus_label_new_with_background):
Create a NautilusLabel that uses NautilusBackground to
draw the background. We put this in a separate file to avoid the
ugly dependency chain in NautilusBackground so that NautilusLabel
can be used by standalone components in the future.
* libnautilus-extensions/nautilus-label.h:
* libnautilus-extensions/nautilus-label.c:
(nautilus_label_initialize_class), (nautilus_label_initialize),
(nautilus_label_destroy), (nautilus_label_set_arg),
(nautilus_label_get_arg), (nautilus_label_size_request),
(label_paint_pixbuf_callback), (label_composite_pixbuf_callback),
(nautilus_label_expose_event),
(nautilus_label_set_is_smooth_signal), (label_draw_text_to_pixbuf),
(label_get_default_line_wrap_width), (label_get_text_frame),
(label_get_text_bounds), (label_get_tile_frame), (label_peek_text),
(label_get_empty_line_height),
(label_get_total_text_and_line_offset_height),
(label_line_geometries_clear), (label_line_geometries_recompute),
(nautilus_label_new), (nautilus_label_set_smooth_font),
(nautilus_label_get_smooth_font),
(nautilus_label_set_smooth_font_size),
(nautilus_label_get_smooth_font_size),
(nautilus_label_set_is_smooth), (nautilus_label_get_is_smooth),
(nautilus_label_set_tile_pixbuf), (nautilus_label_get_tile_pixbuf),
(nautilus_label_set_text_opacity),
(nautilus_label_get_text_opacity),
(nautilus_label_set_tile_opacity),
(nautilus_label_get_tile_opacity), (nautilus_label_set_tile_width),
(nautilus_label_get_tile_width), (nautilus_label_set_tile_height),
(nautilus_label_get_tile_height),
(nautilus_label_set_tile_mode_vertical),
(nautilus_label_get_tile_mode_vertical),
(nautilus_label_set_tile_mode_horizontal),
(nautilus_label_get_tile_mode_horizontal),
(nautilus_label_set_tile_pixbuf_from_file_name),
(nautilus_label_set_background_mode),
(nautilus_label_get_background_mode),
(nautilus_label_set_solid_background_color),
(nautilus_label_get_solid_background_color),
(nautilus_label_set_smooth_line_wrap_width),
(nautilus_label_get_smooth_line_wrap_width),
(nautilus_label_set_text_color), (nautilus_label_get_text_color),
(nautilus_label_set_smooth_drop_shadow_offset),
(nautilus_label_get_smooth_drop_shadow_offset),
(nautilus_label_set_smooth_drop_shadow_color),
(nautilus_label_get_smooth_drop_shadow_color),
(nautilus_label_set_justify), (nautilus_label_get_text_justify),
(nautilus_label_set_text), (nautilus_label_get_text),
(nautilus_label_set_wrap), (nautilus_label_get_wrap),
(nautilus_label_new_solid), (nautilus_label_make_bold),
(nautilus_label_make_larger), (nautilus_label_make_smaller):
Fixed many problems. Properly handles rendering
on top of arbitrary Gtk backgrounds. Does not allocate a buffer
the size of the widget anymore. All rendering occurs on exposure
events. Honors the the GtkMisc superclass attrbutes for alignment
and padding. NautilusLabel is now subclassed from GtkLabel
itself. That means that the is_smooth attribute can be toggled to
make both religions happy. Support for making the label larger,
smaller and/or bold based on the current font. Renamed a lot of
methods to make it obvious that they apply only to the smooth case.
Also made the api match GtkLabel more closely. So many functions
got renamed.
* libnautilus-extensions/nautilus-radio-button-group.c:
(nautilus_radio_button_group_set_entry_pixbuf):
Tiny update for changes in the NautilusImage constructor.
* libnautilus-extensions/nautilus-scalable-font-private.h:
New file. Some private font stuff lives here. I need this
changed for a checkin that I will make later regarding improvement
of performance in the icon container smooth fonts.
* libnautilus-extensions/nautilus-scalable-font.h:
* libnautilus-extensions/nautilus-scalable-font.c:
(nautilus_scalable_font_initialize), (font_entry_new),
(font_entry_free), (nautilus_scalable_font_new),
(nautilus_scalable_font_make_bold),
(nautilus_scalable_font_draw_text),
(nautilus_scalable_font_draw_text_lines_with_dimensions),
(nautilus_scalable_font_draw_text_lines),
(nautilus_scalable_font_get_default_font),
(nautilus_scalable_font_get_rsvg_handle),
(nautilus_scalable_font_get_rsvg_context),
(nautilus_text_layout_paint):
Change the constructor to return the type itself instead of
GtkObject. Some minor style tweaks. Keep track of the font entry
that was used to allocate the font. New private functions for
accessing the rsvg context and font handles. Remove an unsed
function.
* libnautilus-extensions/nautilus-smooth-widget.h:
* libnautilus-extensions/nautilus-smooth-widget.c:
(widget_is_smooth), (smooth_widget_set_is_smooth),
(preferences_get_is_smooth), (smooth_widget_destroy),
(smooth_graphics_mode_changed_callback),
(nautilus_smooth_widget_register),
(smooth_widget_get_tile_origin_point),
(smooth_widget_get_gtk_background), (smooth_widget_get_background),
(smooth_widget_paint_tile_opaque),
(smooth_widget_paint_tile_transparent),
(smooth_widget_paint_content_opaque),
(smooth_widget_paint_content_transparent),
(smooth_widget_paint_tile_and_content_transparent),
(nautilus_smooth_widget_paint),
(nautilus_smooth_widget_get_tile_bounds),
(nautilus_smooth_widget_get_preferred_frame):
Shared code between NautilusLabel and NautilusImage. ALl the code
to support smooth toggable widgets lives here. Also, keep track
of smooth widgets and toggle their is_smooth attribute in response
to nautilus smooth graphics preferences changes.
* libnautilus-extensions/nautilus-tabs.c:
(nautilus_tabs_initialize), (draw_tab_label):
Tiny update for change in font constructor. Add a FIXME for a
hard coded font issue im going to fix later. Opacity macro
update.
* src/file-manager/fm-properties-window.c:
(create_image_widget_for_file):
Using the new image widget makes this code a lot simpler. No
longer need to check smooth preference. It all happens
automatically.
* src/file-manager/nautilus-indexing-info.c:
(update_progress_display), (show_reindex_request_information),
(show_index_progress_bar), (show_indexing_info_dialog):
Fix a bunch of hard coded font issues.
* src/nautilus-about.c: (draw_aa_string),
(nautilus_about_draw_info), (nautilus_about_update_authors):
Tiny update for change in font constructor. Opacity macro
update.
* src/nautilus-first-time-druid.c: (label_new_left_justified),
(make_hbox_user_level_radio_button), (set_up_user_level_page),
(set_up_service_signup_page), (set_up_update_page),
(set_up_proxy_config_page), (set_up_update_feedback_page),
(nautilus_first_time_druid_show):
Fix a bunch of hard coded font issues. Also fix the rendering
problems with image usage inside selectable buttons.
* src/nautilus-property-browser.c:
(nautilus_property_browser_initialize),
(set_emblem_image_from_file), (make_property_tile),
(make_properties_from_directories), (add_reset_property),
(make_properties_from_xml_node),
(nautilus_property_browser_update_contents):
Fix hard coded fonts. Update for NautilusImage and NautilusLabel
changes.
* src/nautilus-search-bar-criterion.c:
Remove unused #include.
* src/nautilus-shell.c: (display_caveat):
Fix hard coded fonts.
* src/nautilus-sidebar-tabs.c:
(nautilus_sidebar_tabs_load_theme_data), (draw_one_tab_plain),
(draw_one_tab_themed):
Fix hard coded fonts. Opacity macros update.
* src/nautilus-sidebar-title.c:
(nautilus_sidebar_title_initialize),
(nautilus_sidebar_title_select_text_color), (update_icon),
(update_font), (update_title), (update_more_info), (add_emblem),
(sidebar_title_create_title_label),
(sidebar_title_create_more_info_label),
(smooth_graphics_mode_changed_callback):
Update for NautilusImage and NautilusLabel changes. Made the
widget a lot simpler.
We no longer need to keep track of smooth changes in the sidebar
title. They are taked care automatically by the widgets.
We no longer need to create 2 labels to honor smoothness.
NautilusLabel does it all now.
Removed a set_background() function that already
exists in nautilus-extensions.
* src/nautilus-theme-selector.c:
(nautilus_theme_selector_initialize), (set_help_label),
(exit_remove_mode):
Fix hard coded fonts.
* test/font-test.sh:
Retire. Not needed.
* test/.cvsignore:
* test/Makefile.am:
Add a bunch of tests.
* test/test.h:
* test/test.c:
Put shared test code here.
* test/test-nautilus-font-simple.c:
* test/test-nautilus-font.c:
* test/test-nautilus-image-background.c:
* test/test-nautilus-image-scrolled.c:
* test/test-nautilus-image-simple.c:
* test/test-nautilus-image-tile.c:
* test/test-nautilus-image.c:
* test/test-nautilus-label-background.c:
* test/test-nautilus-label-flavorful.c:
* test/test-nautilus-label-scrolled.c:
* test/test-nautilus-label-simple.c:
* test/test-nautilus-label-wrapped.c:
* test/test-nautilus-label.c:
* test/test-nautilus-pixbuf-tile.c:
* test/test-nautilus-smooth-graphics.c:
* test/test-nautilus-wrapped-label.c:
Some new tests. Many updates to old label and image tests.
* components/services/install/command-line/Makefile.am:
Don't build the inventory test code here as the inventory code has
moved to the inventory component.
* components/services/inventory/eazel-inventory-service-interface.i
dl:
This file was missing from mjs' checkin of the inventory upload code.
fixed bug 5338, switching to and from "tighter layout" messes up
icon labels, by adding a call to invalidate an item's cached label
size, and making the icon canvas invalidate the items when appropriate.
This also fixes a similar problem when the anti-aliased mode changes.
* libnautilus-extensions/nautilus-icon-canvas-item.c:
(nautilus_icon_canvas_item_initialize),
(nautilus_icon_canvas_item_invalidate_label_size),
(nautilus_icon_canvas_item_set_arg):
renamed internal invalidation routine to make it externally accessible
* libnautilus-extensions/nautilus-icon-canvas-item.h:
added nautilus_icon_canvas_item_invalidate_label_size
* libnautilus-extensions/nautilus-icon-container.c:
(invalidate_label_sizes),
(nautilus_icon_container_set_anti_aliased_mode),
(nautilus_icon_container_set_tighter_layout):
added an invalidate_label_sizes routine and called it when
tighter layout or the anti-aliased mode changes.
reviewed by: John Sullivan
* libnautilus-extensions/nautilus-stock-dialogs.c:
(timed_wait_delayed_destroy_dialog_callback), (timed_wait_free),
(timed_wait_cancel_callback), (timed_wait_callback),
(nautilus_timed_wait_start), (nautilus_timed_wait_stop):
* libnautilus-extensions/nautilus-trash-directory.c:
(find_directory_callback), (add_volume):
We now put up a dialog when searching for trash is slow - bug 3990.
Also added a minimum time up to nautilus_timed_wait dialogs
so they don't disappear before the user has a chance to read them.
Also, nautilus_timed_wait_start will now accept NULL for the
cancel_callback, resulting in a dialog without a cancel button.
Fix bugs 5100 ("First time dialog" for inventory preferences) and
5099 (Need configuration preferences for inventory control). Ian
and I did a first cut at a component for inventory gathering and
upload, as well as a start on the client-side UI for this.
* components/services/Makefile.am, configure.in: Add
components/services/inventory and
components/services/inventory-view directories to build.
* components/services/install/lib/eazel-inventory-utils.c,
components/services/install/lib/eazel-inventory-utils.h: Move
these files to components/services/inventory.
* components/services/install/lib/Makefile.am: Remove from build
here.
* components/services/inventory-view/.cvsignore:
* components/services/inventory-view/Makefile.am:
* components/services/inventory-view/Nautilus_View_inventory.oaf.in
:
* components/services/inventory-view/main.c: (main):
* components/services/inventory-view/nautilus-inventory-config-page
.c: (nautilus_inventory_config_page_initialize_class),
(next_button_callback),
(nautilus_inventory_config_page_initialize),
(nautilus_inventory_config_page_new),
(nautilus_inventory_config_page_destroy):
* components/services/inventory-view/nautilus-inventory-config-page
.h:
* components/services/inventory-view/nautilus-inventory-view.c:
(nautilus_inventory_view_initialize_class),
(nautilus_inventory_view_initialize),
(nautilus_inventory_view_destroy),
(inventory_load_location_callback):
* components/services/inventory-view/nautilus-inventory-view.h:
First cut at the inventory view component. Right now it only
provides a config page, over time it may also do inventory
display.
* components/services/inventory/.cvsignore:
* components/services/inventory/Makefile.am:
* components/services/inventory/Trilobite_Service_inventory.oaf.in:
* components/services/inventory/eazel-inventory-client.c:
(gboolean_to_yes_or_no), (main):
* components/services/inventory/eazel-inventory-service.c:
(get_enabled), (impl_Trilobite_Eazel_Inventory__get_enabled),
(impl_Trilobite_Eazel_Inventory__set_enabled),
(impl_Trilobite_Eazel_Inventory__get_machine_name),
(impl_Trilobite_Eazel_Inventory__set_machine_name),
(get_warn_before_upload),
(impl_Trilobite_Eazel_Inventory__get_warn_before_upload),
(impl_Trilobite_Eazel_Inventory__set_warn_before_upload),
(impl_Trilobite_Eazel_Inventory_upload),
(eazel_inventory_service_get_epv),
(eazel_inventory_service_finalize),
(eazel_inventory_service_unref),
(eazel_inventory_service_class_initialize),
(eazel_inventory_service_create_corba_object),
(eazel_inventory_service_initialize),
(eazel_inventory_service_get_type), (eazel_inventory_service_new):
* components/services/inventory/eazel-inventory-service.h:
* components/services/inventory/eazel-inventory-utils.c:
(eazel_inventory_gconf_done), (check_gconf_init),
(eazel_create_configuration_metafile), (eazel_gather_inventory):
* components/services/inventory/main.c:
(eazel_inventory_service_factory_destroy),
(eazel_inventory_service_factory), (main):
First cut at back end inventory gathering and upload
component. Right now it uses libeazelinstall directly, it should
probably be changed to use the install/package system CORBA
component for package info.
* components/services/summary/nautilus-view/nautilus-summary-callba
cks.c: (authn_cb_failed):
Dialog rewording. Commented out the "Login failed" dialog that I had
added. The user keeps getting re-prompted for now.
* components/text/nautilus-text-view.c:
(nautilus_text_view_initialize), (nautilus_text_view_destroy),
(done_file_read), (file_read_callback), (file_opened_callback),
(nautilus_text_view_update):
fixed bug 3256, loading a huge text file crashes nautilus. Now,
if the file size exceeds a predetermined threshold, currently
set at a megabyte, it truncates it to the threshold amount and
warns the user with an error dialog. As part of this, I made
the text view load files asynchronously and progressively, as
Maciej suggested; however, we won't see the benefit of this
until Pavel checks in some gnome-vfs optimizations he's working
on since currently gnome-vfs doesn't give the main loop much
time to run if it has ongoing activity.
* components/text/services/Makefile.am:
* components/text/services/french_to_english.xml:
at Bud's request, checked in the "frech to english" text service
* src/file-manager/fm-properties-window.c: (create_emblems_page):
removed debug message that I accidentally checked in.
2001-01-10 Gene Z. Ragan <gzr@eazel.com>
reviewed by: Pavel Cisler <pavel@eazel.com>
Fixed bug 5427, Right-click menu for disk should include
a way to unmount it.
* src/file-manager/fm-desktop-icon-view.c:
(unmount_volume_callback), (volume_link_is_selection),
(real_update_menus), (real_merge_menus):
Add a context sensitive menu to Nautilus volume links
which allows the volume it represents to be unmounted.
Only allow this if the volume is removable. Currently
only removable volumes are shown on the desktop.
* src/file-manager/nautilus-desktop-icon-view-ui.xml:
Add command path for new unmount volume command
reviewed by: John Harper
* configure.in:
* libnautilus-extensions/nautilus-background-canvas-group.c:
(nautilus_background_canvas_group_initialize_common),
(nautilus_background_canvas_group_initialize),
(nautilus_background_canvas_group_supplant_root_class):
* libnautilus-extensions/nautilus-background-canvas-group.h:
* libnautilus-extensions/nautilus-background.c:
(nautilus_background_set_up_canvas):
Turned on dithering for canvases (aa mode). We no longer expose
NautilusBackgroundCanvasGroupClass, in nautilus-background-canvas-
group.h. Now we just provide an API to do the class change.
2001-01-10 Pavel Cisler <pavel@eazel.com>
* components/services/install/nautilus-view/nautilus-service-install-view.c:
(install_message_new):
Fix a warning and the build.
3871
Logging in to account that has not been activated
should produce activation instructions
3399
no bad passwd lockout dialog in Nautilus
Also, changed the way the "max login retries" condition was handled
(it previously wasn't)
* components/services/summary/nautilus-view/nautilus-summary-callba
cks.c: (authn_cb_failed), (login_button_cb):
* components/services/summary/nautilus-view/nautilus-summary-dialog
s.c: (nautilus_summary_login_failure_dialog),
(generate_login_dialog):
* components/services/summary/nautilus-view/nautilus-summary-dialog
s.h:
* components/services/summary/nautilus-view/nautilus-summary-view-p
rivate.h:
* components/services/install/nautilus-view/Nautilus_View_install.o
af.in:
Give the install view a reasonable name that won't make people's
heads explode.
* components/services/install/nautilus-view/nautilus-service-instal
l-view.c: (line_expose), (horizontal_line_new),
(install_message_destroy), (install_message_new),
(generate_install_form), (show_overall_feedback),
(nautilus_service_install_view_initialize), (deps_destroy_foreach),
(nautilus_service_install_view_destroy),
(nautilus_service_install_view_get_nautilus_view),
(nautilus_install_parse_uri), (current_progress_bar_complete),
(nautilus_service_install_downloading),
(nautilus_service_install_dependency_check),
(nautilus_service_install_download_failed),
(nautilus_service_install_installing),
(nautilus_service_install_failed),
(nautilus_service_install_view_update_from_uri),
(nautilus_service_install_view_load_uri),
(service_install_stop_loading_callback):
* components/services/install/nautilus-view/nautilus-service-instal
l-view.h:
* components/services/nautilus-dependent-shared/eazel-services-exte
nsions.h:
Many changes to make the install view prettier and less annoying
-- mostly Arlo'ified now, with some tweaking left to do.
2001-01-09 John Harper <jsh@eazel.com>
reviewed by: Pavel Cisler <pavel@eazel.com>
Work to make icons in list view draw anti-aliased in respect to
the background. Fixes bug 1659
* cut-n-paste-code/widgets/nautilusclist/nautilusclist.h
(NautilusCellType): added new type NAUTILUS_CELL_PIXBUF at end
of this enum
* libnautilus-extensions/nautilus-list.c (NautilusListDetails):
added fields for RGB values of all background colors
(nautilus_gdk_set_shifted_foreground_gc_color): return the
shifted RGB value
(nautilus_list_setup_style_colors): save RGB values of all
background colors into the details structure
(get_cell_style): added another parameter: `bg_rgb', when a non
null pointer it gets set to the RGB value of the chosen
background color
(draw_cell_pixbuf): added another parameter: `bg_rgb'.
Composite the pixbuf onto a square of this color (using the
full 8-bit alpha), then blit the entire square onto the
drawable
(draw_cell): added cases to handle NAUTILUS_CELL_PIXBUF type.
Also pass the extra arg to draw_cell_pixbuf in
NAUTILUS_CELL_PIXBUF_LIST case
(nautilus_list_set_cell_contents): handle NAUTILUS_CELL_PIXBUF
case
(nautilus_list_set_pixbuf_list): broke out contents into the
new function set_list_cell, parameterized by the
NautilusCellType in addition
(nautilus_list_set_pixbuf): new function, calls set_list_cell
* src/file-manager/fm-list-view.c (install_row_images): get the
file's icon as a pixbuf, not a pixmap/mask pair. Then use
nautilus_list_set_pixbuf to install it in the list cell
2001-01-09 Gene Z. Ragan <gzr@eazel.com>
reviewed by: Mike Engber <engber@eazel.com>
Fixed bug 5220, Default desktop icon overwritten by dragging
same-named file to Desktop
* libnautilus-extensions/nautilus-file-operations.c:
(handle_transfer_overwrite):
We now check for special link files being overwritten and notify the user
that such an action is not allowed.
* libnautilus-extensions/nautilus-customization-data.c:
(nautilus_customization_data_destroy):
fixed recently introduced memory leak by calling
nautilus_g_hash_table_destroy_deep instead of
g_hash_table_destroy
* src/nautilus-sidebar-title.c: (update_icon):
fixed problem in the sidebar where web pages were getting the
generic icon instead of the web icon. Fixed by adding
"http:" to the protocols the sidebar special-cases.
A cut at an ability to build without Medusa, starting with a patch
that Eric Fischer wrote. This change is not fully tested.
Fixed bug 5513 ("nautilus --help" displays "Help options" twice).
* acconfig.h: Add HAVE_MEDUSA.
* configure.in: Add code to detect HAVE_MEDUSA.
* libnautilus-extensions/nautilus-customization-data.c:
(nautilus_customization_data_destroy), (load_name_map_hash_table):
Added a FIXME.
* libnautilus-extensions/Makefile.am:
* libnautilus-extensions/nautilus-file.h:
* libnautilus-extensions/nautilus-trash-file.h:
* libnautilus-extensions/nautilus-trash-file.c:
(nautilus_trash_file_initialize), (trash_destroy),
(nautilus_trash_file_initialize_class):
* libnautilus-extensions/nautilus-vfs-file.h:
* libnautilus-extensions/nautilus-vfs-file.c:
(nautilus_vfs_file_initialize), (vfs_destroy),
(nautilus_vfs_file_initialize_class):
Initial cut at breaking out the special trash version of
NautilusFile. Sadly we need this as well as
NautilusTrashDirectory.
* src/file-manager/fm-search-list-view.c:
(load_location_callback): Add _() so things get localized and put
the code to compose the indexing message inside ifdef HAVE_MEDUSA.
* src/file-manager/nautilus-indexing-info.h:
* src/file-manager/nautilus-indexing-info.c:
Put HAVE_MEDUSA ifdefs around most of this file.
(get_text_for_progress_label): Mark string for translation.
(update_progress_display): Remove code to "handle" timeout left
around after dialog is destroyed.
(update_file_index_callback): Change error messages to be more
easily localizable. Use nautilus_error_dialog instead of
gnome_error_dialog.
(timeout_remove_callback): Get rid of the timeout when the object
is destroyed.
(show_index_progress_bar): Connect handler to get rid of the
timeout when the object is destroyed.
(show_indexing_info_dialog): Move code that puts up dialog into a
new function. Also use nautilus_gtk_window_present to put up a
window. Change the NautilusLabel to use line wrapping.
(show_search_service_not_available_dialog): Put this dialog in its
own function so you can use it multiple times.
(nautilus_indexing_info_request_reindex): Put HAVE_MEDUSA around
the content of this function.
(nautilus_indexing_info_get_last_index_time): Put HAVE_MEDUSA
around the function, with a small simple implementation for the
other case.
(nautilus_indexing_info_show_dialog): Put HAVE_MEDUSA around the
function, with a small invocation of the "not available" dialog.
* src/nautilus-main.c: (main): Remove redundant AUTOHELP.
* src/nautilus-search-bar-criterion.c: (make_emblem_value_menu):
Fix emblem_name storage lifetime problem.
* src/file-manager/fm-icon-view.c: Whitespace tweak.
Some infrastructure for bug 2068 and related bugs.
No actual user-visible changes yet.
* libnautilus-extensions/nautilus-scrolled-window.h:
* libnautilus-extensions/nautilus-scrolled-window.c:
New files, implement a subclass of GtkScrolledWindow
that sends a signal when the scroll position changes.
This was tragically left out of GtkScrolledWindow.
(nautilus_scrolled_window_initialize_class),
(nautilus_scrolled_window_initialize): The usual stuff.
(get_hadjustment), (get_vadjustment): Little helper
functions to avoid repeating some casting.
(adjustment_changed_callback): Callback that emits the
scroll_changed signal when the scroll changes.
(connect_adjustment): Helper function that disconnects
old signals and sets up new ones when the adjustment
objects change.
(real_set_arg): virtual function overridden to connect
up adjustment_changed_callback.
(nautilus_scrolled_window_set_vadjustment),
(nautilus_scrolled_window_set_hadjustment): New functions
that call through to gtk_scrolled_window_xxx and connect
up adjustment_changed_callback.
* libnautilus-extensions/Makefile.am: Add the new
files to the build.
* libnautilus-extensions/nautilus-metadata.h:
#define NAUTILUS_METADATA_KEY_ICON_VIEW_SCROLL_ORIGIN
* src/file-manager/fm-directory-view.h:
* src/file-manager/fm-directory-view.c:
(fm_directory_view_initialize): Make FMDirectoryView inherit
from NautilusScrolledWindow instead of GtkScrolledWindow so
it can hook into the scroll_changed signal.
2001-01-08 Gene Z. Ragan <gzr@eazel.com>
Fixed bug 5507, nautilus crashes when you unmount a drive while a file is
viewed in music viewer
* libnautilus-extensions/nautilus-volume-monitor.c:
(close_error_pipe):
In the case of a failed unmount, I was just assigning a string to memory
that was later being freed, rather than allocating the memory and
copying the string. I now allocate memory and copy the string.
* components/services/install/lib/eazel-install-logic2.c:
(is_satisfied), (is_filename_probably_a_directory),
(no_two_packages_with_same_file),
(package_is_upgrading_and_doesnt_need_file),
(check_conflicts_with_other):
Rough drafts for 2 of the functions Eskil left in pseudocode form.
* components/services/install/lib/eazel-install-protocols.c:
(eazel_install_fetch_package):
* components/services/trilobite/libtrilobite/trilobite-core-network
.c: (trilobite_open_uri):
Fix two typos (no code change).
* components/services/install/nautilus-view/nautilus-service-instal
l-view.c: (nautilus_service_install_preflight_check),
(nautilus_service_install_installing):
Add gnome-vfs and oaf to the list of packages that trigger a
Nautilus restart.
* nautilus-installer/src/Makefile:
* nautilus-installer/src/gtk-hackery.c: (gtk_box_nth):
* nautilus-installer/src/installer.c: (find_old_tmpdir):
* nautilus-installer/src/package-tree.c:
(package_customizer_set_package_list), (table_hbox_nth),
(focus_next), (handle_focus), (jump_to_package_tree_page):
Add mondo code to do keyboard focus management (as well as GTK
will let us) in the package selector.