1. 23 Feb, 2001 1 commit
    • Darin Adler's avatar
      reviewed by: John Sullivan <sullivan@eazel.com> · 764d936a
      Darin Adler authored
      	Fix bug 6859 (GTK signal macros don't work in non-GCC compilers
      	for void return types).
      
      	* libnautilus-extensions/nautilus-gtk-macros.h:
      	Replaced old macros that accidentally relied on gccisms with
      	new ones that are portable to other compilers.
      
      		NAUTILUS_CALL_PARENT_CLASS is replaced by
      			NAUTILUS_CALL_PARENT
      		    and NAUTILUS_CALL_PARENT_WITH_RETURN_VALUE.
      
      		NAUTILUS_CALL_VIRTUAL is replaced by
      			NAUTILUS_CALL_METHOD
      		    and NAUTILUS_CALL_METHOD_WITH_RETURN_VALUE
      
      	* components/adapter/nautilus-adapter-control-embed-strategy.c:
      	(nautilus_adapter_control_embed_strategy_destroy):
      	* components/adapter/nautilus-adapter-embed-strategy.c:
      	(nautilus_adapter_embed_strategy_destroy),
      	(nautilus_adapter_embed_strategy_get_widget),
      	(nautilus_adapter_embed_strategy_get_zoomable):
      	* components/adapter/nautilus-adapter-embeddable-embed-strategy.c:
      	(nautilus_adapter_embeddable_embed_strategy_destroy):
      	* components/adapter/nautilus-adapter-factory-server.c:
      	(nautilus_adapter_factory_server_destroy):
      	* components/adapter/nautilus-adapter-file-load-strategy.c:
      	(nautilus_adapter_file_load_strategy_destroy):
      	* components/adapter/nautilus-adapter-load-strategy.c:
      	(nautilus_adapter_load_strategy_destroy),
      	(nautilus_adapter_load_strategy_load_location),
      	(nautilus_adapter_load_strategy_stop_loading):
      	* components/adapter/nautilus-adapter-progressive-load-strategy.c:
      	(nautilus_adapter_progressive_load_strategy_destroy):
      	* components/adapter/nautilus-adapter-stream-load-strategy.c:
      	(nautilus_adapter_stream_load_strategy_destroy):
      	* components/adapter/nautilus-adapter.c:
      	(nautilus_adapter_destroy):
      	* components/hardware/nautilus-hardware-view.c:
      	(nautilus_hardware_view_destroy):
      	* components/history/nautilus-history-view.c:
      	(nautilus_history_view_destroy):
      	* components/loser/content/nautilus-content-loser.c:
      	(nautilus_content_loser_destroy):
      	* components/loser/sidebar/nautilus-sidebar-loser.c:
      	(nautilus_sidebar_loser_destroy):
      	* components/music/nautilus-music-view.c:
      	(nautilus_music_view_destroy):
      	* components/rpmview/nautilus-rpm-verify-window.c:
      	(nautilus_rpm_verify_window_destroy):
      	* components/rpmview/nautilus-rpm-view.c:
      	(nautilus_rpm_view_destroy):
      	* components/sample/nautilus-sample-content-view.c:
      	(nautilus_sample_content_view_destroy):
      	* components/services/install/nautilus-view/nautilus-service-instal
      	l-view.c: (nautilus_service_install_view_destroy),
      	(nautilus_service_install_view_finalize):
      	* components/services/inventory-view/nautilus-inventory-config-page
      	.c: (nautilus_inventory_config_page_destroy):
      	* components/services/inventory-view/nautilus-inventory-view.c:
      	(nautilus_inventory_view_destroy):
      	* components/services/login/nautilus-view/nautilus-change-password-
      	view.c: (nautilus_change_password_view_destroy):
      	* components/services/nautilus-dependent-shared/eazel-services-foot
      	er.c: (footer_destroy):
      	* components/services/nautilus-dependent-shared/eazel-services-head
      	er.c: (header_destroy):
      	* components/services/summary/nautilus-summary-view.c:
      	(nautilus_summary_view_destroy):
      	* components/services/time/nautilus-view/trilobite-eazel-time-view.
      	c: (trilobite_eazel_time_view_destroy):
      	* components/text/nautilus-text-view.c:
      	(nautilus_text_view_destroy):
      	* components/throbber/nautilus-throbber.c:
      	(nautilus_throbber_destroy), (nautilus_throbber_map),
      	(nautilus_throbber_size_allocate):
      	* components/tree/nautilus-tree-change-queue.c:
      	(nautilus_tree_change_queue_destroy):
      	* components/tree/nautilus-tree-expansion-state.c:
      	(nautilus_tree_expansion_state_destroy):
      	* components/tree/nautilus-tree-model.c:
      	(nautilus_tree_model_destroy):
      	* components/tree/nautilus-tree-node.c:
      	(nautilus_tree_node_destroy):
      	* components/tree/nautilus-tree-view.c:
      	(nautilus_tree_view_destroy):
      	* help/nautilus-quick-reference/.cvsignore:
      	* help/nautilus-quick-reference/C/.cvsignore:
      	* libnautilus-extensions/nautilus-background-canvas-group.c:
      	(nautilus_background_canvas_group_update),
      	(nautilus_background_canvas_group_draw),
      	(nautilus_background_canvas_group_render):
      	* libnautilus-extensions/nautilus-background.c:
      	(nautilus_background_destroy):
      	* libnautilus-extensions/nautilus-bookmark.c:
      	(nautilus_bookmark_destroy):
      	* libnautilus-extensions/nautilus-caption.c:
      	(nautilus_caption_destroy), (nautilus_font_picker_show_all):
      	* libnautilus-extensions/nautilus-clickable-image.c:
      	(nautilus_clickable_image_destroy),
      	(nautilus_clickable_image_realize),
      	(nautilus_clickable_image_expose_event):
      	* libnautilus-extensions/nautilus-debug-drawing.c:
      	(debug_pixbuf_viewer_destroy):
      	* libnautilus-extensions/nautilus-directory-metafile-monitor.c:
      	(destroy):
      	* libnautilus-extensions/nautilus-directory.c:
      	(nautilus_directory_destroy),
      	(nautilus_directory_get_name_for_self_as_new_file),
      	(nautilus_directory_are_all_files_seen),
      	(nautilus_directory_contains_file),
      	(nautilus_directory_call_when_ready),
      	(nautilus_directory_cancel_callback),
      	(nautilus_directory_file_monitor_add),
      	(nautilus_directory_file_monitor_remove),
      	(nautilus_directory_force_reload),
      	(nautilus_directory_is_not_empty):
      	* libnautilus-extensions/nautilus-druid-page-eazel.c:
      	(nautilus_druid_page_eazel_destroy),
      	(nautilus_druid_page_eazel_finalize),
      	(nautilus_druid_page_eazel_size_allocate),
      	(nautilus_druid_page_eazel_size_request):
      	* libnautilus-extensions/nautilus-ellipsizing-label.c:
      	(real_size_request), (real_size_allocate), (real_style_set):
      	* libnautilus-extensions/nautilus-entry.c:
      	(nautilus_entry_destroy), (nautilus_entry_key_press),
      	(nautilus_entry_motion_notify), (nautilus_entry_set_selection),
      	(nautilus_entry_insert_text), (nautilus_entry_delete_text),
      	(nautilus_entry_selection_clear):
      	* libnautilus-extensions/nautilus-file.c: (destroy),
      	(nautilus_file_monitor_add), (nautilus_file_monitor_remove),
      	(nautilus_file_get_date), (nautilus_file_get_where_string),
      	(nautilus_file_get_directory_item_count),
      	(nautilus_file_get_deep_counts), (nautilus_file_get_file_type),
      	(nautilus_file_check_if_ready), (nautilus_file_call_when_ready),
      	(nautilus_file_cancel_call_when_ready):
      	* libnautilus-extensions/nautilus-font-factory.c: (destroy):
      	* libnautilus-extensions/nautilus-font-picker.c:
      	(nautilus_font_picker_destroy):
      	* libnautilus-extensions/nautilus-horizontal-splitter.c:
      	(nautilus_horizontal_splitter_destroy),
      	(nautilus_horizontal_splitter_button_press):
      	* libnautilus-extensions/nautilus-icon-canvas-item.c:
      	(nautilus_icon_canvas_item_destroy),
      	(nautilus_icon_canvas_item_update):
      	* libnautilus-extensions/nautilus-icon-container.c: (destroy),
      	(size_allocate), (realize), (unrealize), (button_press_event),
      	(button_release_event), (motion_notify_event), (key_press_event):
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(nautilus_icon_factory_destroy):
      	* libnautilus-extensions/nautilus-image-table.c:
      	(nautilus_image_table_destroy),
      	(nautilus_image_table_expose_event),
      	(nautilus_image_table_realize), (nautilus_image_table_unrealize),
      	(nautilus_image_table_remove):
      	* libnautilus-extensions/nautilus-image.c:
      	(nautilus_image_destroy):
      	* libnautilus-extensions/nautilus-keep-last-vertical-box.c:
      	(nautilus_keep_last_vertical_box_size_allocate):
      	* libnautilus-extensions/nautilus-label.c:
      	(nautilus_label_destroy), (nautilus_label_size_request),
      	(nautilus_label_size_allocate), (label_paint_pixbuf_callback):
      	* libnautilus-extensions/nautilus-labeled-image.c:
      	(nautilus_labeled_image_destroy):
      	* libnautilus-extensions/nautilus-list-column-title.c:
      	(nautilus_list_column_title_finalize):
      	* libnautilus-extensions/nautilus-list.c: (nautilus_list_destroy),
      	(nautilus_list_button_press), (nautilus_list_button_release),
      	(nautilus_list_key_press), (nautilus_list_style_set),
      	(nautilus_list_realize), (nautilus_list_unrealize), (draw_rows),
      	(draw_all), (nautilus_list_draw), (nautilus_list_expose),
      	(nautilus_list_resize_column), (nautilus_list_set_cell_contents),
      	(set_list_cell), (nautilus_list_track_new_column_width),
      	(nautilus_list_motion), (nautilus_list_clear), (insert_row):
      	* libnautilus-extensions/nautilus-merged-directory.c:
      	(merged_destroy):
      	* libnautilus-extensions/nautilus-metafile-factory.c: (destroy):
      	* libnautilus-extensions/nautilus-metafile.c: (destroy):
      	* libnautilus-extensions/nautilus-preferences-box.c:
      	(nautilus_preferences_box_destroy):
      	* libnautilus-extensions/nautilus-preferences-pane.c:
      	(nautilus_preferences_pane_destroy):
      	* libnautilus-extensions/nautilus-scalable-font.c:
      	(nautilus_scalable_font_destroy):
      	* libnautilus-extensions/nautilus-string-picker.c:
      	(nautilus_string_picker_destroy):
      	* libnautilus-extensions/nautilus-tabs.c: (nautilus_tabs_destroy):
      	* libnautilus-extensions/nautilus-text-caption.c:
      	(nautilus_text_caption_destroy):
      	* libnautilus-extensions/nautilus-trash-directory.c:
      	(trash_destroy):
      	* libnautilus-extensions/nautilus-trash-file.c: (trash_destroy):
      	* libnautilus-extensions/nautilus-undo-context.c: (destroy):
      	* libnautilus-extensions/nautilus-undo-manager.c: (destroy):
      	* libnautilus-extensions/nautilus-vfs-directory.c: (vfs_destroy):
      	* libnautilus-extensions/nautilus-vfs-file.c: (vfs_destroy):
      	* libnautilus-extensions/nautilus-viewport.c:
      	(nautilus_viewport_destroy), (nautilus_viewport_realize):
      	* libnautilus-extensions/nautilus-volume-monitor.c:
      	(nautilus_volume_monitor_destroy):
      	* libnautilus-extensions/nautilus-wrap-table.c:
      	(nautilus_wrap_table_destroy):
      	* libnautilus/nautilus-undo-transaction.c:
      	(nautilus_undo_transaction_destroy):
      	* libnautilus/nautilus-view.c: (nautilus_view_destroy):
      	* src/file-manager/fm-desktop-icon-view.c:
      	(fm_desktop_icon_view_destroy), (real_update_menus),
      	(real_merge_menus):
      	* src/file-manager/fm-directory-view.c:
      	(text_attribute_names_changed_callback),
      	(image_display_policy_changed_callback),
      	(directory_view_font_family_changed_callback),
      	(click_policy_changed_callback),
      	(smooth_graphics_mode_changed_callback),
      	(fm_directory_view_destroy),
      	(fm_directory_view_file_limit_reached),
      	(fm_directory_view_bump_zoom_level),
      	(fm_directory_view_zoom_to_level),
      	(fm_directory_view_restore_default_zoom_level),
      	(fm_directory_view_can_zoom_in), (fm_directory_view_can_zoom_out),
      	(fm_directory_view_get_background_widget),
      	(fm_directory_view_get_selection), (reveal_newly_added_folder),
      	(fm_directory_view_get_emblem_names_to_exclude),
      	(fm_directory_view_merge_menus), (fm_directory_view_select_all),
      	(fm_directory_view_set_selection),
      	(fm_directory_get_selected_icon_locations),
      	(fm_directory_view_reveal_selection),
      	(fm_directory_view_is_read_only), (fm_directory_view_is_empty),
      	(fm_directory_view_supports_creating_files),
      	(fm_directory_view_accepts_dragged_files),
      	(fm_directory_view_supports_properties),
      	(fm_directory_view_supports_zooming),
      	(fm_directory_view_update_menus):
      	* src/file-manager/fm-icon-view.c: (fm_icon_view_destroy),
      	(fm_icon_view_clean_up), (fm_icon_view_get_directory_sort_by),
      	(fm_icon_view_set_directory_sort_by),
      	(fm_icon_view_get_directory_sort_reversed),
      	(fm_icon_view_set_directory_sort_reversed),
      	(fm_icon_view_get_directory_auto_layout),
      	(fm_icon_view_set_directory_auto_layout),
      	(fm_icon_view_get_directory_tighter_layout),
      	(fm_icon_view_set_directory_tighter_layout),
      	(fm_icon_view_supports_auto_layout),
      	(fm_icon_view_start_renaming_item), (fm_icon_view_merge_menus),
      	(fm_icon_view_update_menus):
      	* src/file-manager/fm-list-view.c: (fm_list_view_adding_file),
      	(fm_list_view_removing_file), (fm_list_view_file_still_belongs),
      	(get_number_of_columns), (get_link_column),
      	(get_default_sort_attribute), (get_column_specification):
      	* src/file-manager/fm-properties-window.c: (real_shutdown),
      	(real_destroy), (real_finalize):
      	* src/file-manager/fm-search-list-view.c: (real_destroy),
      	(real_add_file), (real_adding_file), (real_removing_file),
      	(real_merge_menus), (real_update_menus):
      	* src/nautilus-about.c: (nautilus_about_destroy):
      	* src/nautilus-application.c: (nautilus_application_destroy),
      	(nautilus_application_startup):
      	* src/nautilus-complex-search-bar.c:
      	(nautilus_complex_search_bar_destroy):
      	* src/nautilus-desktop-window.c: (destroy), (realize):
      	* src/nautilus-location-bar.c: (destroy):
      	* src/nautilus-navigation-bar.c:
      	(nautilus_navigation_bar_get_location),
      	(nautilus_navigation_bar_set_location):
      	* src/nautilus-property-browser.c:
      	(nautilus_property_browser_destroy):
      	* src/nautilus-search-bar-criterion.c:
      	(nautilus_search_bar_criterion_destroy):
      	* src/nautilus-shell.c: (destroy):
      	* src/nautilus-sidebar-tabs.c: (nautilus_sidebar_tabs_destroy),
      	(nautilus_sidebar_tabs_size_allocate):
      	* src/nautilus-sidebar-title.c: (nautilus_sidebar_title_destroy),
      	(nautilus_sidebar_title_size_allocate):
      	* src/nautilus-sidebar.c: (nautilus_sidebar_destroy),
      	(nautilus_sidebar_size_allocate), (nautilus_sidebar_realize):
      	* src/nautilus-simple-search-bar.c:
      	(nautilus_simple_search_bar_destroy):
      	* src/nautilus-switchable-navigation-bar.c:
      	(nautilus_switchable_navigation_bar_destroy):
      	* src/nautilus-switchable-search-bar.c:
      	(nautilus_switchable_search_bar_destroy):
      	* src/nautilus-theme-selector.c: (nautilus_theme_selector_destroy):
      	* src/nautilus-view-frame.c: (nautilus_view_frame_destroy),
      	(nautilus_view_frame_finalize), (nautilus_view_frame_map):
      	* src/nautilus-window.c: (nautilus_window_destroy),
      	(nautilus_window_realize), (nautilus_window_size_request),
      	(nautilus_window_add_current_location_to_history_list),
      	(nautilus_window_show):
      	* src/nautilus-zoom-control.c: (nautilus_zoom_control_destroy),
      	(nautilus_zoom_control_size_allocate):
      	Use the macros by their new names.
      
      	* RENAMING: Updated for some name changes and name change ideas.
      
      	* user-guide/C/.cvsignore:
      	* user-guide/C/html/.cvsignore:
      	* user-guide/C/img/.cvsignore:
      	* user-guide/C/sgml/.cvsignore:
      	Added missing cvsignores.
      764d936a
  2. 15 Feb, 2001 1 commit
    • Ramiro Estrugo's avatar
      reviewed by: Darin Adler <darin@eazel.com> · 88ebb708
      Ramiro Estrugo authored
                           Except for the self checks code.
      
      		     Change code that used a ArtIRect as a "frame" to use
      		     NautilusDimensions instead.  Change all foo_frame functions to
      		     foo_dimensions.
      
      		     * libnautilus-extensions/nautilus-art-extensions.h:
      		     Add a new structure to represent dimensions using signed integers.
      		     Retire nautilus_art_ipoint_assign.
      		     * libnautilus-extensions/nautilus-art-extensions.c:
      		     (nautilus_dimensions_empty): New function to check for empty
      		     dimensions.
      		     (nautilus_art_irect_assign_dimensions): New function to assign
      		     dimensions to a rectangle.
      		     (nautilus_self_check_art_extensions): New self checks.
      
      		     * libnautilus-extensions/nautilus-art-gtk-extensions.h:
      		     * libnautilus-extensions/nautilus-art-gtk-extensions.c:
      		     (nautilus_gdk_rectangle_to_art_irect),
      		     (nautilus_screen_get_dimensions), (nautilus_gdk_window_get_bounds),
      		     (nautilus_gdk_window_get_screen_relative_bounds),
      		     (nautilus_gtk_widget_get_bounds),
      		     (nautilus_gtk_widget_get_dimensions),
      		     (nautilus_gdk_window_clip_dirty_area_to_screen),
      		     (nautilus_art_irect_to_gdk_rectangle),
      		     (nautilus_gdk_window_get_dimensions): New function to get
      		     the dimensions of a GdkWindow.
      		     Update for frame to dimensions changes.  Change functions names to
      		     lose the "irect" sub-prefix.
      
      		     * libnautilus-extensions/nautilus-gdk-pixbuf-extensions.h:
      		     * libnautilus-extensions/nautilus-gdk-pixbuf-extensions.c:
      		     (nautilus_gdk_pixbuf_get_dimensions),
      		     (nautilus_gdk_pixbuf_fill_rectangle_with_color),
      		     (nautilus_gdk_pixbuf_draw_to_drawable),
      		     (nautilus_gdk_pixbuf_draw_to_pixbuf),
      		     (nautilus_gdk_pixbuf_draw_to_pixbuf_alpha),
      		     (nautilus_gdk_pixbuf_new_from_pixbuf_sub_area),
      		     (pixbuf_draw_tiled), (nautilus_gdk_pixbuf_draw_to_pixbuf_tiled),
      		     (nautilus_gdk_pixbuf_draw_to_drawable_tiled),
      		     (nautilus_gdk_pixbuf_intersect): New functions
      		     (nautilus_self_check_gdk_pixbuf_extensions): New self checks.
      		     Update for frame vs dimenensions changes.  Simplify clipping code
      		     by using nautilus_gdk_pixbuf_intersect.  Move
      		     nautilus_gdk_window_get_dimensions to
      		     nautilus_gdk_window_get_dimensions in art-gtk-extensions.
      
      		     * libnautilus-extensions/nautilus-debug-drawing.c:
      		     (debug_pixbuf_viewer_size_request),
      		     (nautilus_debug_pixbuf_draw_point),
      		     (nautilus_debug_pixbuf_draw_rectangle),
      		     (nautilus_debug_pixbuf_draw_rectangle_inset):
      		     Update for frame vs dimenensions changes.
      
      		     * libnautilus-extensions/nautilus-clickable-image.c:
      		     (label_handle_motion):
      		     Update for art-gtk extensions changes.
      
      		     * libnautilus-extensions/nautilus-glyph.h:
      		     * libnautilus-extensions/nautilus-glyph.c: (nautilus_glyph_new):
      		     Change order of parameters to match NautilusScalalbleFont.
      		     (nautilus_glyph_get_dimensions), (nautilus_glyph_draw_to_pixbuf):
      		     Update for frame vs dimenensions changes.
      
      		     * libnautilus-extensions/nautilus-lib-self-check-functions.h:
      		     New declaration for art_extensions and gdk_pixbuf_extensions.
      
      		     * libnautilus-extensions/nautilus-self-checks.c:
      		     (nautilus_check_rectangle_result),
      		     (nautilus_check_dimensions_result):
      		     * libnautilus-extensions/nautilus-self-checks.h:
      		     Add support for checking functions that return rectangles and
      		     dimensions.
      
      		     * libnautilus-extensions/nautilus-scalable-font.h:
      		     * libnautilus-extensions/nautilus-scalable-font.c:
      		     (nautilus_scalable_font_measure_text): Return
      		     NautilusDimensions instead of using pointer parameters.
      		     (nautilus_scalable_font_text_width): Simplify by calling
      		     scalable_font_measure_text.
      		     (nautilus_scalable_font_draw_text),
      		     (nautilus_scalable_font_measure_text_lines),
      		     (nautilus_scalable_font_draw_text_lines_with_dimensions),
      		     (nautilus_scalable_font_draw_text_lines):
      		     Update for frame vs dimenensions changes.  Use NautilusDimensions
      		     arrays instead of individial width and height arrays.  Change all
      		     function signatures to pass in only a font_size instead of both
      		     font_width and font_height.  Simplifies using these a bit.
      		     (nautilus_scalable_font_largest_fitting_font_size): Fix bug where
      		     we were always using the wrong font size to compute the largest
      		     fitting font.
      
      		     * libnautilus-extensions/nautilus-icon-factory.c: (embed_text):
      		     Update for scalable font font_size api changes.
      
      		     * libnautilus-extensions/nautilus-image-table.c:
      		     (image_table_clear_dirty_areas):
      		     Update for frame vs dimenensions changes.
      
      		     * libnautilus-extensions/nautilus-image.c:
      		     (nautilus_image_size_request), (image_get_pixbuf_dimensions),
      		     (image_get_pixbuf_bounds), (image_get_tile_dimensions):
      		     Update for frame vs dimenensions changes.
      
      		     * libnautilus-extensions/nautilus-label.h:
      		     * libnautilus-extensions/nautilus-label.c:
      		     (nautilus_label_initialize_class), (nautilus_label_set_arg),
      		     (nautilus_label_get_arg), (nautilus_label_size_request),
      		     (nautilus_label_size_allocate), (label_composite_pixbuf_callback),
      		     (label_draw_text_to_pixbuf): Fix a type.  Was using [x,x] instead
      		     of [x,y] to render the string.
      		     (label_get_text_dimensions), (label_get_text_bounds),
      		     (label_get_tile_dimensions), (label_line_geometries_clear),
      		     (label_line_geometries_recompute),
      		     Update for frame vs dimenensions changes.  Make the
      		     'smooth_line_wrap' attribute an int instead of a guint.  Use an
      		     array of NautilusDimensions to store text lines geometries instead
      		     of separete width and height arrays.
      		     (label_get_default_line_wrap_width),
      		     (nautilus_label_set_smooth_line_wrap_width),
      		     (nautilus_label_get_smooth_line_wrap_width):
      		     Change signature to return an int instead of a guint.
      
      		     * libnautilus-extensions/nautilus-labeled-image.c:
      		     (nautilus_labeled_image_size_request),
      		     (labeled_image_get_image_dimensions),
      		     (labeled_image_get_label_dimensions),
      		     (labeled_image_get_image_bounds_fill),
      		     (nautilus_labeled_image_get_image_bounds),
      		     (labeled_image_get_label_bounds_fill),
      		     (nautilus_labeled_image_get_label_bounds),
      		     (labeled_image_get_content_dimensions),
      		     (labeled_image_get_content_bounds):
      		     Update for frame vs dimenensions changes.
      
      		     * libnautilus-extensions/nautilus-smooth-widget.h:
      		     * libnautilus-extensions/nautilus-smooth-widget.c:
      		     (smooth_widget_paint_tile_transparent),
      		     (nautilus_smooth_widget_get_preferred_dimensions):
      		     Update for frame vs dimenensions changes.
      
      		     * libnautilus-extensions/nautilus-tabs.c: (measure_tab_name),
      		     (draw_tab_label):
      		     Update for font api changes.
      
      		     * libnautilus-extensions/nautilus-text-layout.c:
      		     (nautilus_text_layout_new), (nautilus_text_layout_paint):
      		     Update for frame vs dimenensions changes.
      
      		     * libnautilus-extensions/nautilus-wrap-table.c:
      		     (nautilus_wrap_table_size_request), (wrap_table_layout),
      		     (wrap_table_art_irect_max_dimensions),
      		     (wrap_table_get_max_child_dimensions),
      		     (wrap_table_get_content_dimensions):
      		     Update for frame vs dimenensions changes.
      
      		     * src/nautilus-about.c: (draw_aa_string):
      		     Update for frame vs dimenensions changes.
      
      		     * src/nautilus-sidebar-tabs.c: (draw_one_tab_plain),
      		     (draw_one_tab_themed), (get_tab_width):
      		     Update for frame vs dimenensions changes.
      
      		     * test/test-nautilus-font-simple.c: (main):
      		     * test/test-nautilus-font.c: (main):
      		     * test/test-nautilus-glyph-simple.c: (glyph_new):
      		     * test/test-nautilus-glyph.c: (glyph_new), (main):
      		     * test/test-nautilus-pixbuf-tile.c:
      		     * test/test.c: (test_pixbuf_draw_rectangle_tiled):
      		     Update test for frame vs dimenensions changes and font api
      		     changes.
      88ebb708
  3. 14 Feb, 2001 1 commit
    • Ramiro Estrugo's avatar
      reviewed by: Arik Devens <arik@eazel.com> · a9818eb5
      Ramiro Estrugo authored
      	* libnautilus-extensions/Makefile.am:
      	* libnautilus-extensions/nautilus-label.c:
      	* libnautilus-extensions/nautilus-scalable-font.c:
      	* libnautilus-extensions/nautilus-scalable-font.h:
      	* libnautilus-extensions/nautilus-text-layout.c:
      	* libnautilus-extensions/nautilus-text-layout.h:
      	* test/test-nautilus-font.c:
      	Move the text layout code to its own place.  No real code changes.
      a9818eb5
  4. 10 Feb, 2001 1 commit
    • Ramiro Estrugo's avatar
      reviewed by: Robey Pointer <robey@eazel.com> · 5585ad97
      Ramiro Estrugo authored
      	* libnautilus-extensions/Makefile.am:
      	* libnautilus-extensions/nautilus-region.c:
      	* libnautilus-extensions/nautilus-region.h:
      	New class for super easy region management using rectangle.
      
      	* libnautilus-extensions/nautilus-art-gtk-extensions.h:
      	* libnautilus-extensions/nautilus-art-gtk-extensions.c:
      	(nautilus_gdk_rectangle_assign_irect):
      	New function to convert ArtIRect to GdkRectangles.
      
      	* libnautilus-extensions/nautilus-customization-data.h:
      	* libnautilus-extensions/nautilus-customization-data.c:
      	(nautilus_customization_data_get_next_element_for_display):
      	Return pixbufs and labels for the object instead of widgets.  This
      	is so that the caller can use the widget that best suits its
      	display needs.
      
      	* libnautilus-extensions/nautilus-image-table.h:
      	* libnautilus-extensions/nautilus-image-table.c:
      	(nautilus_image_table_initialize_class),
      	(nautilus_image_table_initialize),
      	(nautilus_image_table_expose_event),
      	(nautilus_image_table_realize), (nautilus_image_table_unrealize),
      	(nautilus_image_table_set_is_smooth_signal),
      	(image_table_foreach_child_subtract_content),
      	(image_table_clear_dirty_areas), (image_table_peek_clear_gc),
      	(image_table_emit_signal), (image_table_handle_motion),
      	(ancestor_button_press_event), (ancestor_button_release_event),
      	(nautilus_image_table_new), (nautilus_image_table_set_is_smooth),
      	(nautilus_image_table_set_smooth_background_color):
      	Add support for smoothnes.  Register widget as a possible smooth
      	widget.  When smoothness changes, we modify our background drawing
      	behavior such that in smooth mode we dont flicker at all.
      
      	Remove grab/ungrab pair that could screw up operations.  Turns out
      	these are not needed.
      
      	Change event signal emissions to include more data from the raw
      	gdk events without exposing these.
      
      	* libnautilus-extensions/nautilus-image.c:
      	(nautilus_image_initialize_class):
      	Update for new smooth widget class registration scheme.
      
      	* libnautilus-extensions/nautilus-label.c:
      	(nautilus_label_initialize_class):
      	Update for new smooth widget class registration scheme.
      
      	* libnautilus-extensions/nautilus-labeled-image.h:
      	* libnautilus-extensions/nautilus-labeled-image.c:
      	(nautilus_labeled_image_size_allocate),
      	(nautilus_labeled_image_get_image_bounds),
      	(nautilus_labeled_image_get_label_bounds):
      	Make these two functions public.
      
      	* libnautilus-extensions/nautilus-smooth-widget.h:
      	* libnautilus-extensions/nautilus-smooth-widget.c:
      	(smooth_widget_type_list_free), (smooth_widget_list_free),
      	(widget_is_smooth), (nautilus_smooth_widget_register),
      	(nautilus_smooth_widget_register_type):
      	Add mechanism for registering types that are meant to be smooth.
      	That way we dont need to hardcode the list of smooth widget
      	classes.  Also made sure to free the static lists at exit time.
      
      	* libnautilus-extensions/nautilus-viewport.h:
      	* libnautilus-extensions/nautilus-viewport.c:
      	(nautilus_viewport_initialize_class),
      	(nautilus_viewport_initialize), (nautilus_viewport_destroy),
      	(nautilus_viewport_draw), (nautilus_viewport_expose_event),
      	(nautilus_viewport_realize), (nautilus_viewport_paint),
      	(nautilus_viewport_set_is_smooth_signal), (nautilus_viewport_new),
      	(nautilus_viewport_set_is_smooth),
      	(nautilus_viewport_get_scroll_offset):
      	Add support for smoothness.  When the is_smooth attribute changes,
      	the viewport will not clear the background on resize - and so its
      	content will not flicker.
      
      	Add function for querying the scroll offset.
      
      	* libnautilus-extensions/nautilus-wrap-table.h:
      	* libnautilus-extensions/nautilus-wrap-table.c:
      	(wrap_table_get_content_frame), (wrap_table_get_scroll_offset),
      	(nautilus_wrap_table_get_homogeneous),
      	(nautilus_wrap_table_reorder_child):
      	Fix a mod by zero error.
      	Add support for reordering children.
      
      	* src/file-manager/fm-properties-window.c: (create_emblems_page):
      	Simplify a bit by using NautilusWrapTable instead of a GtkTable
      	with a hard coded number of columns.  The emblems now wrap to fit
      	the available space.  Also use NautilusLabeledImages instead of
      	boxes.  Update for changes in customization data api.
      	Remove check box painting workaround.  Its taken care of in
      	NautilusLabeledImage now.
      
      	* src/nautilus-property-browser.c:
      	(nautilus_property_browser_initialize_class),
      	(nautilus_property_browser_initialize), (element_clicked_callback),
      	(nautilus_property_browser_preferences_changed),
      	(make_property_tile), (make_properties_from_directories),
      	(add_reset_property), (make_properties_from_xml_node),
      	(property_browser_category_button_new), (make_category_link),
      	(nautilus_property_browser_update_contents),
      	(emit_emblems_changed_signal):
      	Use a NautilusImageTable instead of a GtkTable to make things wrap
      	propertly and thus not have to recreate the whole property box
      	each time its resized.  Remove a lot of hard coded dimensions.
      	Simplified a bit by using NautilusLabeledImages.
      
      	* src/nautilus-search-bar-criterion.c: (make_emblem_value_menu):
      	Update for changes in customization data api.
      
      	* test/test-nautilus-image-table.c: (labeled_image_new),
      	(foo_timeout), (image_table_size_allocate),
      	(image_table_new_scrolled):
      	Update for new image table features.
      5585ad97
  5. 02 Feb, 2001 1 commit
    • Ramiro Estrugo's avatar
      reviewed by: Maciej Stachowiak <mjs@eazel.com> · f5743c0a
      Ramiro Estrugo authored
      	Fix bug 6131 - NautilusLabel does not support proper line wrap.
      	Its fixed for smooth mode.  Theres a bug (6243) for the more
      	complicated issue of wrapping in non smooth mode.
      
      	* libnautilus-extensions/nautilus-label.h:
      	* libnautilus-extensions/nautilus-label.c:
      	(nautilus_label_initialize_class), (nautilus_label_set_arg),
      	(nautilus_label_get_arg), (nautilus_label_size_allocate),
      	(nautilus_label_set_never_smooth),
      	(nautilus_label_set_adjust_wrap_on_resize),
      	(nautilus_label_get_adjust_wrap_on_resize):
      	Add a boolean attribute 'adjust_wrap_on_resize' that controls
      	whether the label will automatically update its line wrap width
      	when its resized.
      
      	* components/services/summary/nautilus-view/nautilus-summary-view.c
      	: (summary_view_item_label_new), (summary_load_location_callback):
      	No longer need size_allocate hack.  Use NautilusLabel's
      	'adjust_wrap_on_resize' attribute instead.
      
      	* test/test-nautilus-label-wrapped.c: (create_nautilus_label),
      	(create_gtk_label_window), (create_nautilus_label_window), (main):
      	Update for 'adjust_wrap_on_resize'.
      f5743c0a
  6. 01 Feb, 2001 1 commit
    • Ramiro Estrugo's avatar
      reviewed by: Pavel Cisler <pavel@eazel.com> · 33f219c3
      Ramiro Estrugo authored
      	* libnautilus-extensions/Makefile.am:
      	New files.
      	* libnautilus-extensions/nautilus-art-extensions.c:
      	(nautilus_art_irect_align):
      	* libnautilus-extensions/nautilus-art-extensions.h:
      	Make the align function actually work.  The previous version was
      	copied from GtkPixmap and i didnt realize it did not work.  Remove
      	the padding parameters which are not really needed for alignment.
      
      	* libnautilus-extensions/nautilus-clickable-image.h:
      	* libnautilus-extensions/nautilus-clickable-image.c:
      	New class.  A clickable image.
      
      	* libnautilus-extensions/nautilus-labeled-image.h:
      	* libnautilus-extensions/nautilus-labeled-image.c:
      	New class.  A labeled image.
      
      	* libnautilus-extensions/nautilus-image.h:
      	* libnautilus-extensions/nautilus-image.c:
      	(nautilus_image_expose_event), (image_get_pixbuf_bounds),
      	(image_is_smooth), (nautilus_image_set_is_smooth),
      	(nautilus_image_get_is_smooth), (nautilus_image_new_solid),
      	(nautilus_image_set_never_smooth):
      	Add never smooth attribute to force behavior to match GTK+ for
      	cases when consistency is most important.
      	Update for alignment art extensions api change.
      	Some minor paramter name changes to lose abbreviations.
      
      	* libnautilus-extensions/nautilus-label.h:
      	* libnautilus-extensions/nautilus-label.c:
      	(nautilus_label_size_request), (nautilus_label_expose_event),
      	(label_get_text_bounds), (label_is_smooth),
      	(nautilus_label_set_is_smooth), (nautilus_label_get_is_smooth),
      	(nautilus_label_new_solid), (nautilus_label_set_never_smooth):
      	Add never smooth attribute to force behavior to match GTK+ for
      	cases when consistency is most important.
      	Update for alignment art extensions api change.
      	Update for alignment art extensions api change.
      	Some minor paramter name changes to lose abbreviations.
      
      	* libnautilus-extensions/nautilus-smooth-widget.c:
      	(smooth_widget_get_tile_origin_point),
      	(nautilus_smooth_widget_get_preferred_frame):
      	Add some comments explaining why using 0 for ancestor offsets
      	works.
      	Fix a really dumb bug, the paddings where multiplies by 2 twice
      	instead of once.
      
      	* test/.cvsignore:
      	* test/Makefile.am:
      	* test/test-nautilus-clickable-image.c: (clicked_callback),
      	(enter_callback), (leave_callback), (clickable_image_new), (main):
      	* test/test-nautilus-label-background.c:
      	* test/test-nautilus-label-scrolled.c: (label_window_new_scrolled),
      	(label_window_new_table):
      	* test/test-nautilus-label-simple.c: (main):
      	* test/test-nautilus-label.c: (main):
      	* test/test-nautilus-labeled-image.c: (labeled_image_new),
      	(labeled_image_window_new), (labeled_image_button_window_new),
      	(main):
      	* test/test-nautilus-pixbuf-tile.c:
      	(pixbuf_drawing_area_expose_event),
      	(drawable_drawing_area_expose_event), (main):
      	* test/test-nautilus-preferences-change.c: (main):
      	* test/test.c: (test_init):
      	New tests for clickable and labeled images.  Many updates to other
      	tests.
      
      	Also, changed many instances of NautilusFooDetail to
              NautilusFooDetails as well as the corresponding members.
      33f219c3
  7. 22 Jan, 2001 1 commit
    • Ramiro Estrugo's avatar
      reviewed by: John Sullivan <sullivan@eazel.com> · 47c6d18d
      Ramiro Estrugo authored
      	Fix 5613 - Icon captions in sidebar get cropped when toggling
      	"smooth graphics.
      
      	* libnautilus-extensions/nautilus-label.c:
      	(label_force_cached_requisition_flush),
      	(nautilus_label_set_is_smooth):
      	Flush the GtkLabel's requisition cache when the is_smooth
      	attribute is changed.
      
      	* src/nautilus-property-browser.c:
      	(nautilus_property_browser_initialize),
      	(nautilus_property_browser_destroy),
      	(nautilus_property_browser_theme_changed):
      	Remove attempt at fixing parts of 5613.  The fix above should fix
      	it everywhere.
      47c6d18d
  8. 19 Jan, 2001 2 commits
    • Ramiro Estrugo's avatar
      Accidentally checked in a huge default font size. · ee1e5513
      Ramiro Estrugo authored
      	* libnautilus-extensions/nautilus-label.c:
      	Accidentally checked in a huge default font size.
      ee1e5513
    • Ramiro Estrugo's avatar
      reviewed by: Darin Adler <darin@eazel.com> · 773ec652
      Ramiro Estrugo authored
      	* components/services/install/nautilus-view/nautilus-service-instal
      	l-view.c: (install_message_new):
      	Add a tiny bit of padding to this label to prevent the bottom from
      	being cut off.  Im not sure exactly why the bottom is getting cut
      	off.  I suspect that the part container is constraining the widget
      	somehow, perhaps to match the geometry of the label on the right.
      
      	* libnautilus-extensions/nautilus-label.c:
      	(label_composite_pixbuf_callback), (nautilus_label_expose_event):
      	Fix for bugs 5607, 5608 and 5611.  Remove previous workaround for
      	bug 5608.  Do the clipping of the area that we need to copy into
      	the temporary buffer more carefully.  The temporary buffer itself
      	is a workaround for a related bug (2784).
      773ec652
  9. 13 Jan, 2001 1 commit
    • Ramiro Estrugo's avatar
      reviewed by: Arik Devens <arik@gnome.org> · 28703180
      Ramiro Estrugo authored
      	* libnautilus-extensions/nautilus-label.c:
      	(nautilus_label_expose_event),
      	(nautilus_label_set_background_mode), (nautilus_label_set_text),
      	(nautilus_label_get_text):
      	* libnautilus-extensions/nautilus-label.h:
      	Change the get_text() prototype to use a const object.  Add a
      	workaround for bug 5608 while I debug the problem.
      
      	reviewed by: Robey Pointer  <robey@eazel.com>
      
      	* components/services/install/nautilus-view/nautilus-service-install-view.c:
      	(nautilus_service_install_downloading):
      	Remove queue_resize() workarounds for improperly displaying
      	labels.  I checked in a workaround in NautilusLabel instead.
      28703180
  10. 12 Jan, 2001 1 commit
    • Ramiro Estrugo's avatar
      reviewed by: Mike Fleming <mfleming@eazel.com> · 1f39e6b6
      Ramiro Estrugo authored
      	* 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.
      1f39e6b6
  11. 11 Jan, 2001 1 commit
    • Ramiro Estrugo's avatar
      reviewed by: Pavel Cisler <pavel@eazel.com> · 38f9b094
      Ramiro Estrugo authored
      	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.
      38f9b094
  12. 22 Dec, 2000 1 commit
    • Ramiro Estrugo's avatar
      reviewed by: Pavel Cisler <pavel@eazel.com> · 69d913bb
      Ramiro Estrugo authored
      	* libnautilus-extensions/nautilus-icon-canvas-item.c:
      	(draw_or_measure_label_text_aa):
      	* libnautilus-extensions/nautilus-icon-factory.c: (embed_text):
      	* libnautilus-extensions/nautilus-label.c: (render_buffer_pixbuf):
      	* libnautilus-extensions/nautilus-scalable-font.c:
      	(nautilus_scalable_font_draw_text),
      	(nautilus_scalable_font_draw_text_lines_with_dimensions),
      	(nautilus_scalable_font_draw_text_lines),
      	(nautilus_text_layout_paint), (nautilus_gdk_pixbuf_new_from_text):
      	* libnautilus-extensions/nautilus-scalable-font.h:
      	* libnautilus-extensions/nautilus-tabs.c: (draw_tab_label):
      	* src/nautilus-about.c: (draw_aa_string):
      	* src/nautilus-sidebar-tabs.c: (draw_one_tab_plain),
      	(draw_one_tab_themed):
      	* test/test-nautilus-font.c: (main):
      	Lost the "inverted" feature of smooth text drawing.  It wasnt used
      	anywhere except a test program.  It never looked well and the
      	nautilus icon container does something unrelated to select text.
      
      	Also replace some hard coded 255 opacity values to use the
      	NAUTILUS_OPACITY_NONE define.
      69d913bb
  13. 08 Dec, 2000 1 commit
    • Rebecca Schulman's avatar
      Bug numbers for the FIXMEs in libnautilus-extensions. · d160849c
      Rebecca Schulman authored
      2000-12-07  Rebecca Schulman  <rebecka@eazel.com>
              Bug numbers for the FIXMEs in libnautilus-extensions.
      
      	* libnautilus-extensions/nautilus-customization-data.c:
      	(format_name_for_display):
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(dequeue_pending_idle_callback), (cancel_loading_attributes),
      	(nautilus_directory_cancel_loading_file_attributes):
      	* libnautilus-extensions/nautilus-directory.c:
      	(nautilus_directory_handle_directory_moved),
      	(nautilus_directory_notify_files_moved),
      	(nautilus_self_check_directory):
      	* libnautilus-extensions/nautilus-file-utilities.c:
      	(nautilus_make_uri_canonical),
      	(pthread_nautilus_read_file_thread_entry),
      	(pthread_nautilus_read_file_async), (nautilus_read_file_cancel),
      	(nautilus_self_check_file_utilities):
      	* libnautilus-extensions/nautilus-file.c: (get_description),
      	(nautilus_file_forget_attributes_internal):
      	* libnautilus-extensions/nautilus-gdk-extensions.c:
      	* libnautilus-extensions/nautilus-gdk-pixbuf-extensions.c:
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(nautilus_icon_container_start_renaming_selected_item):
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(receive_dropped_uri_list):
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	* libnautilus-extensions/nautilus-label.c:
      	(nautilus_label_size_allocate), (label_recompute_line_geometries):
      	* libnautilus-extensions/nautilus-merged-directory.c:
      	(nautilus_merged_directory_add_real_directory):
      	* libnautilus-extensions/nautilus-mime-actions.c:
      	(nautilus_mime_get_default_application_for_file_internal):
      	* libnautilus-extensions/nautilus-scalable-font.c:
      	(nautilus_text_layout_paint):
      	* libnautilus-extensions/nautilus-search-uri.c:
      	(nautilus_self_check_search_uri):
      	* libnautilus-extensions/nautilus-string.c:
      	* libnautilus-extensions/nautilus-undo-signal-handlers.c:
      	(editable_key_press_event), (nautilus_undo_editable_set_undo_key):
      d160849c
  14. 14 Nov, 2000 1 commit
    • Pavel Cisler's avatar
      reviewed by: Darin Adler <darin@eazel.com> · b7c2daf9
      Pavel Cisler authored
      2000-11-13  Pavel Cisler  <pavel@eazel.com>
      
      	reviewed by: Darin Adler <darin@eazel.com>
      
      	* configure.in:
      	Enable the sign-compare and cast-align warnings.
      
      	* components/help/converters/gnome-db2html2/gdb3html.c:
      	(find_first_element):
      	* components/help/hyperbola-filefmt.c: (fmt_free_tree_info):
      	* components/help/hyperbola-nav-index.c:
      	(hyperbola_navigation_index_update_clist), (despace),
      	(end_element):
      	* components/history/nautilus-history-view.c:
      	(history_load_location):
      	* components/mozilla/nautilus-mozilla-content-view.c:
      	(string_list_get_index_of_string):
      	* components/services/install/lib/eazel-install-corba-types.c:
      	(corba_string_sequence_to_glist),
      	(corba_packagedatastructlist_from_packagedata_list),
      	(packagedata_list_from_corba_packagedatastructlist),
      	(categorydata_list_from_corba_categorystructlist):
      	* components/services/install/lib/eazel-install-query.c:
      	(eazel_install_simple_rpm_query):
      	* components/services/install/lib/eazel-install-rpm-glue.c:
      	(eazel_install_monitor_rpm_process_pipe):
      	* components/services/install/lib/eazel-install-rpm-signature.c:
      	(read_rpm_lead), (read_rpm_signature):
      	* components/services/trilobite/libtrilobite/trilobite-root-helper.
      	c: (trilobite_root_helper_run_program),
      	(trilobite_root_helper_set_time):
      	* cut-n-paste-code/widgets/nautilusclist/nautilusclist.c:
      	(nautilus_clist_get_arg), (nautilus_clist_construct):
      	* helper-utilities/authenticate/nautilus-authenticate.c: (main):
      	* libnautilus-extensions/nautilus-background.c:
      	(set_image_and_color_image_loading_done_callback):
      	* libnautilus-extensions/nautilus-buffered-widget.c:
      	(nautilus_gdk_pixbuf_tile_alpha):
      	* libnautilus-extensions/nautilus-caption-table.c:
      	(entry_activate):
      	* libnautilus-extensions/nautilus-caption-table.h:
      	* libnautilus-extensions/nautilus-ctree.c:
      	(nautilus_ctree_node_nth), (nautilus_ctree_drag_motion):
      	* libnautilus-extensions/nautilus-ctree.h:
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(metafile_write):
      	* libnautilus-extensions/nautilus-file-changes-queue.c:
      	(nautilus_file_changes_consume_changes):
      	* libnautilus-extensions/nautilus-file-operations-progress.c:
      	(truncate_string_from_start):
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(extract_string_until):
      	* libnautilus-extensions/nautilus-file-utilities.c:
      	(nautilus_read_entire_file):
      	* libnautilus-extensions/nautilus-gdk-extensions.c:
      	(nautilus_get_largest_fitting_font):
      	* libnautilus-extensions/nautilus-global-preferences.c:
      	(global_preferences_get_sidebar_panel_view_identifiers):
      	* libnautilus-extensions/nautilus-gtk-extensions.c:
      	(nautilus_gtk_window_set_initial_geometry_from_string),
      	(nautilus_gtk_menu_set_item_visibility):
      	* libnautilus-extensions/nautilus-icon-canvas-item.c:
      	(draw_or_measure_label_text), (draw_or_measure_label_text_aa):
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(rubberband_timeout_callback), (destroy), (compute_stretch):
      	* libnautilus-extensions/nautilus-icon-container.h:
      	(nautilus_icon_container_find_drop_target):
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(check_recently_used_list), (get_themed_icon_file_path),
      	(revise_scale_factors_if_too_big):
      	* libnautilus-extensions/nautilus-icon-text-item.c:
      	(recompute_bounding_box), (iti_draw), (iti_selection_motion):
      	* libnautilus-extensions/nautilus-label.c:
      	(nautilus_label_size_allocate), (label_recompute_line_geometries):
      	* libnautilus-extensions/nautilus-list.c: (draw_cell),
      	(nautilus_list_drag_data_received):
      	* libnautilus-extensions/nautilus-mime-actions.c:
      	(server_matches_content_requirements),
      	(nautilus_do_component_query):
      	* libnautilus-extensions/nautilus-password-dialog.c:
      	(caption_table_activate_callback):
      	* libnautilus-extensions/nautilus-preferences-item.c:
      	(has_image_file):
      	* libnautilus-extensions/nautilus-scalable-font.c:
      	(file_as_string), (parse_font_description_file),
      	(nautilus_text_layout_new):
      	* libnautilus-extensions/nautilus-scalable-font.h:
      	* libnautilus-extensions/nautilus-volume-monitor.c:
      	(check_permissions):
      	* libnautilus/nautilus-view.c:
      	(nautilus_shallow_g_list_from_uri_list):
      	* libnautilus/nautilus-zoomable.c:
      	(nautilus_g_list_from_ZoomLevelList):
      	* librsvg/rsvg-ft.c: (rsvg_ft_measure_or_render_string):
      	* librsvg/rsvg.c: (rsvg_parse_transform):
      	* src/file-manager/fm-icon-view.c:
      	(fm_icon_view_create_background_context_menu_items),
      	(get_sort_criterion_by_metadata_text), (get_sort_criterion_by_id):
      	* src/file-manager/fm-list-view.c: (select_row_common),
      	(select_matching_name_callback), (select_previous_next_common),
      	(fm_list_view_bump_zoom_level):
      	* src/nautilus-search-bar-criterion.c:
      	(nautilus_search_bar_criterion_update_valid_criteria_choices):
      	* src/nautilus-shell.c: (corba_open_windows),
      	(corba_open_default_window):
      	* src/nautilus-sidebar.c: (nautilus_sidebar_add_panel_items):
      	* src/nautilus-window-menus.c:
      	(nautilus_window_disable_keyboard_navigation_for_menus):
      	* src/nautilus-window.c: (nautilus_window_size_request):
      	Fix all sign-compare violations.
      b7c2daf9
  15. 30 Oct, 2000 1 commit
    • Andy Hertzfeld's avatar
      made nautilus_label interpret a wrap width of -1 to mean "use all of the · 869892ff
      Andy Hertzfeld authored
      
      	* libnautilus-extensions/nautilus-label.c:
      	(nautilus_label_initialize_class), (nautilus_label_size_allocate),
      	(get_clipped_width), (label_recompute_line_geometries):
      	made nautilus_label interpret a wrap width of -1 to mean "use
      	all of the available space".
      
      	* components/services/summary/nautilus-view/nautilus-summary-view.c
      	: (generate_service_entry_row), (generate_eazel_news_entry_row),
      	(generate_update_news_entry_row):
      	made the news items use all of the available space by setting its
      	wrap width to -1.
      869892ff
  16. 25 Oct, 2000 2 commits
    • Ramiro Estrugo's avatar
      Removed. It was a bad try. Stuff is now in eazel-services-extensions.h. · e2312c84
      Ramiro Estrugo authored
      
      	* components/services/nautilus-dependent-shared/eazel-services-constants.h:
      	Removed.  It was a bad try.  Stuff is now in eazel-services-extensions.h.
      
      	* components/services/nautilus-dependent-shared/Makefile.am:
      	* components/services/nautilus-dependent-shared/eazel-services-extensions.c:
      	(pixbuf_new_from_name), (eazel_services_image_new),
      	(eazel_services_label_new):
      	* components/services/nautilus-dependent-shared/eazel-services-extensions.h:
      	Add a place to put shared services extensions.
      
      	* components/services/nautilus-dependent-shared/eazel-services-footer.c:
      	(footer_item_new), (footer_remainder_new),
      	(eazel_services_footer_update):
      	* components/services/nautilus-dependent-shared/eazel-services-header.c:
      	(eazel_services_header_new):
      	* components/services/nautilus-dependent-shared/test-footer-header.c:
      	Remove a bunch of duplicated code and put it in a shared
      	extensions location.  Make the footer real.  Add an item_clicked
      	signal to the footer.
      
      	* components/services/summary/nautilus-view/nautilus-summary-view.c:
      	Hook up the footer for item clicks.
      
      	* libnautilus-extensions/nautilus-image.c:
      	(nautilus_image_new_loaded):
      	* libnautilus-extensions/nautilus-image.h:
      	* libnautilus-extensions/nautilus-label.c:
      	(nautilus_label_new_loaded):
      	* libnautilus-extensions/nautilus-label.h:
      	Add constructors that take a bunch of arguments for the various
      	widgets attributes.  Makes the widgets easier to use for callers
      	that need to tweak many attributes (like eazel services).
      e2312c84
    • Ramiro Estrugo's avatar
      Make sure text layout honors the vertical and horizontal offsets. · ace7eb3c
      Ramiro Estrugo authored
      	* libnautilus-extensions/nautilus-label.c:
      	(nautilus_label_size_request), (render_buffer_pixbuf):
      	Make sure text layout honors the vertical and horizontal offsets.
      
      	(nautilus_scalable_font_draw_text):
      	* test/test-nautilus-image.c: (label_new), (label_enter_event),
      	(label_leave_event), (label_free_data),
      	(buffered_widget_add_prelighting), (header_new), (footer_item_new),
      	(footer_remainder_new), (footer_new), (main):
      	More work on prelighting footers.
      ace7eb3c
  17. 16 Oct, 2000 2 commits
    • Ramiro Estrugo's avatar
      Fix memory leak. · ef1386c4
      Ramiro Estrugo authored
      	* libnautilus-extensions/nautilus-label.c:
      	(nautilus_label_set_line_wrap_separators):
      	Fix memory leak.
      ef1386c4
    • Ramiro Estrugo's avatar
      Add support for line wrappping. · 33dad502
      Ramiro Estrugo authored
      	* libnautilus-extensions/nautilus-label.c:
      	(nautilus_label_initialize), (nautilus_label_destroy),
      	(render_buffer_pixbuf), (label_recompute_line_geometries),
      	(nautilus_label_set_line_offset),
      	(nautilus_label_get_drop_shadow_color),
      	(nautilus_label_set_line_wrap), (nautilus_label_get_line_wrap),
      	(nautilus_label_set_line_wrap_width),
      	(nautilus_label_get_line_wrap_width),
      	(nautilus_label_set_line_wrap_separators),
      	(nautilus_label_get_line_wrap_separators):
      	* libnautilus-extensions/nautilus-label.h:
      	Add support for line wrappping.
      
      	* src/nautilus-shell.c: (display_caveat):
      	Change the caveat text to not use hard coded new lines and use the
      	new NautilusLabel text wrapping feature instead.
      
      	* test/.cvsignore:
      	* test/Makefile.am:
      	* test/test-nautilus-label.c: (main):
      	* test/test-nautilus-wrapped-label.c: (delete_event),
      	(create_gtk_label), (create_nautilus_label),
      	(create_gtk_label_window), (create_nautilus_label_window), (main):
      	Add a test for the NautilusLabel line wrapping feature.
      33dad502
  18. 26 Sep, 2000 1 commit
    • Darin Adler's avatar
      Fixed bug bug 3264 (Tree view shows no branches for directories, · 2cd5440e
      Darin Adler authored
      	...HACK... nodes visible), bug 3290 (changing directory or
      	refreshing causes Gdk to assert), bug 2420 (Need to free original
      	key when removing model node), and other assorted problems.
      
      	* components/tree/nautilus-tree-view.c: (insert_hack_node),
      	(remove_hack_node), (nautilus_tree_view_insert_model_node):
      	Fix problem where the hash table key was neither g_strdup'd on the
      	way in, nor g_free'd on the way out. This caused all the problems
      	with bad nesting in the tree view.
      
      	* nautilus-installer/src/installer.c: (create_pixmap):
      	* src/file-manager/fm-list-view.c: (install_row_images):
      	* src/nautilus-theme-selector.c: (add_theme):
      	Added more checks for NULL before calling gdk_bitmap_unref.
      
      	* src/file-manager/fm-directory-view.c: (no_items_showing):
      	Fixed a NautilusDirectory ref. count leak.
      
      	* libnautilus-extensions/nautilus-font-factory.c:
      	(unref_global_font_factory), (nautilus_get_current_font_factory):
      	Unref the font factory on exit.
      	(nautilus_font_factory_initialize_class), (font_hash_node_free),
      	(free_one_hash_node), (destroy): Added code to actually destroy
      	the font factory.
      	(unref_fixed_font), (nautilus_font_factory_get_fallback_font):
      	Unref the fixed font on exit.
      	* libnautilus-extensions/nautilus-volume-monitor.c:
      	(unref_global_volume_monitor), (nautilus_volume_monitor_get):
      	Unref the volume monitor on exit.
      	* src/nautilus-signaller.c: (unref_global_signaller),
      	(nautilus_signaller_get_current): Unref the signaller on exit.
      
      	* src/nautilus-component-adapter-factory.c:
      	(nautilus_component_adapter_factory_initialize): Replaced some
      	strange FIXMEs with a simpler one.
      	(nautilus_component_adapter_factory_destroy): Fix a CORBA object
      	reference leak.
      	(nautilus_component_adapter_factory_get): Did a ref/sink.
      
      	* components/adapter/nautilus-adapter-control-embed-strategy.c:
      	(nautilus_adapter_control_embed_strategy_new):
      	* components/adapter/nautilus-adapter-embeddable-embed-strategy.c:
      	(nautilus_adapter_embeddable_embed_strategy_new):
      	* components/adapter/nautilus-adapter-file-load-strategy.c:
      	(nautilus_adapter_file_load_strategy_new):
      	* components/adapter/nautilus-adapter-progressive-load-strategy.c:
      	(nautilus_adapter_progressive_load_strategy_new):
      	* components/adapter/nautilus-adapter-stream-load-strategy.c:
      	(nautilus_adapter_stream_load_strategy_new):
      	* components/adapter/nautilus-adapter.c: (nautilus_adapter_new):
      	* components/rpmview/nautilus-rpm-verify-window.c:
      	(nautilus_rpm_verify_window_new):
      	* components/services/install/lib/eazel-install-object.c:
      	(eazel_install_new), (eazel_install_new_with_config):
      	* components/services/time/service/trilobite-eazel-time-service.c:
      	(trilobite_eazel_time_service_new):
      	* components/services/trilobite/libtrilobite/trilobite-service-pass
      	wordquery.c: (trilobite_passwordquery_new):
      	* components/services/trilobite/libtrilobite/trilobite-service.c:
      	(trilobite_service_new):
      	* components/tree/nautilus-tree-expansion-state.c:
      	(nautilus_tree_expansion_state_new):
      	* components/tree/nautilus-tree-model.c: (nautilus_tree_model_new):
      	* components/tree/nautilus-tree-node.c: (nautilus_tree_node_new):
      	* cut-n-paste-code/widgets/e-paned/e-hpaned.c: (e_hpaned_new):
      	* cut-n-paste-code/widgets/e-paned/e-vpaned.c: (e_vpaned_new):
      	* libnautilus-extensions/bonobo-stream-vfs.c:
      	(bonobo_stream_create):
      	* libnautilus-extensions/nautilus-any-width-bin.c:
      	(nautilus_any_width_bin_new):
      	* libnautilus-extensions/nautilus-background.c:
      	(nautilus_background_new):
      	* libnautilus-extensions/nautilus-bookmark.c:
      	(nautilus_bookmark_new_with_icon):
      	* libnautilus-extensions/nautilus-caption-table.c:
      	(nautilus_caption_table_new):
      	* libnautilus-extensions/nautilus-caption.c:
      	(nautilus_caption_new):
      	* libnautilus-extensions/nautilus-directory.c:
      	(nautilus_directory_new):
      	* libnautilus-extensions/nautilus-druid-page-eazel.c:
      	(nautilus_druid_page_eazel_new),
      	(nautilus_druid_page_eazel_new_with_vals):
      	* libnautilus-extensions/nautilus-druid.c: (nautilus_druid_new):
      	* libnautilus-extensions/nautilus-entry.c: (nautilus_entry_new):
      	* libnautilus-extensions/nautilus-file-operations-progress.c:
      	(nautilus_file_operations_progress_new):
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_new_from_name), (nautilus_file_new_from_info):
      	* libnautilus-extensions/nautilus-font-picker.c:
      	(nautilus_font_picker_new):
      	* libnautilus-extensions/nautilus-horizontal-splitter.c:
      	(nautilus_horizontal_splitter_new):
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(nautilus_icon_container_new):
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(get_icon_factory):
      	* libnautilus-extensions/nautilus-image.c: (nautilus_image_new):
      	* libnautilus-extensions/nautilus-keep-last-vertical-box.c:
      	(nautilus_keep_last_vertical_box_new):
      	* libnautilus-extensions/nautilus-label.c: (nautilus_label_new):
      	* libnautilus-extensions/nautilus-list-column-title.c:
      	(nautilus_list_column_title_new):
      	* libnautilus-extensions/nautilus-list.c:
      	(nautilus_list_new_with_titles):
      	* libnautilus-extensions/nautilus-password-dialog.c:
      	(nautilus_password_dialog_new):
      	* libnautilus-extensions/nautilus-preference.c:
      	(nautilus_preference_new_from_type):
      	* libnautilus-extensions/nautilus-preferences-box.c:
      	(nautilus_preferences_box_new):
      	* libnautilus-extensions/nautilus-preferences-dialog.c:
      	(nautilus_preferences_dialog_new):
      	* libnautilus-extensions/nautilus-preferences-group.c:
      	(nautilus_preferences_group_new):
      	* libnautilus-extensions/nautilus-preferences-item.c:
      	(nautilus_preferences_item_new):
      	* libnautilus-extensions/nautilus-preferences-pane.c:
      	(nautilus_preferences_pane_new):
      	* libnautilus-extensions/nautilus-radio-button-group.c:
      	(nautilus_radio_button_group_new):
      	* libnautilus-extensions/nautilus-scalable-font.c:
      	(nautilus_scalable_font_new):
      	* libnautilus-extensions/nautilus-string-picker.c:
      	(nautilus_string_picker_new):
      	* libnautilus-extensions/nautilus-text-caption.c:
      	(nautilus_text_caption_new):
      	* libnautilus-extensions/nautilus-undo-context.c:
      	(nautilus_undo_context_new):
      	* libnautilus-extensions/nautilus-undo-manager.c:
      	(nautilus_undo_manager_new):
      	* libnautilus-extensions/nautilus-user-level-manager.c:
      	(user_level_manager_new):
      	* libnautilus/nautilus-undo-transaction.c:
      	(nautilus_undo_transaction_new):
      	* libnautilus/nautilus-view.c:
      	(nautilus_view_new_from_bonobo_control):
      	* src/file-manager/nautilus-trash-monitor.c:
      	(nautilus_trash_monitor_get):
      	* src/nautilus-desktop-window.c: (nautilus_desktop_window_new):
      	* src/nautilus-property-browser.c: (nautilus_property_browser_new):
      	* src/nautilus-shell.c: (nautilus_shell_new):
      	* src/nautilus-sidebar-tabs.c: (nautilus_sidebar_tabs_new):
      	* src/nautilus-sidebar-title.c: (nautilus_sidebar_title_new):
      	* src/nautilus-sidebar.c: (nautilus_sidebar_create_context_menu),
      	(nautilus_sidebar_new):
      	* src/nautilus-theme-selector.c: (nautilus_theme_selector_new):
      	* src/nautilus-throbber.c: (nautilus_throbber_new):
      	* src/nautilus-view-frame.c: (nautilus_view_frame_new):
      	* src/nautilus-zoom-control.c: (nautilus_zoom_control_new):
      	* src/nautilus-about.c: (nautilus_about_new):
      	* src/nautilus-application.c: (nautilus_application_new),
      	(nautilus_application_create_window):
      	* src/nautilus-bookmark-list.c: (nautilus_bookmark_list_new):
      	After Tim Janik explained that gtk_type_new is a low-level call to
      	be avoided, changed most uses of gtk_type_new to gtk_object_new or
      	gtk_widget_new. Also, after Owen and Havoc explained that you
      	can't just ignore the floating bit, added ref/sink calls to the
      	functions used to create objects where we don't use the floating
      	scheme.
      
      	* src/nautilus-zoom-control.c:
      	(nautilus_zoom_control_button_press_event): Take advantage of the
      	fact that the new menu is floating and don't bother with ref'ing.
      
      	* libnautilus-extensions/nautilus-ctree.c:
      	(nautilus_ctree_new_with_titles):
      	Added a cast.
      
      	* components/adapter/main.c: (adapter_factory_make_object):
      	* components/hardware/main.c: (hardware_view_make_object):
      	* components/services/install/lib/eazel-install-corba-callback.c:
      	(eazel_install_callback_get_type), (eazel_install_callback_new):
      	* libnautilus-extensions/nautilus-theme.c:
      	(nautilus_theme_get_theme), (nautilus_theme_set_theme),
      	(nautilus_theme_get_theme_data):
      	Whitespace tweaks.
      2cd5440e
  19. 07 Sep, 2000 3 commits
    • Ramiro Estrugo's avatar
      Make the default font size something more reasonable. · 32e56c7e
      Ramiro Estrugo authored
              * libnautilus-extensions/nautilus-label.c:
              (nautilus_label_initialize):
              Make the default font size something more reasonable.
      32e56c7e
    • Ramiro Estrugo's avatar
      Add support for drawint inverted text. Also cleanup the rendering function · 897a33ff
      Ramiro Estrugo authored
      	* libnautilus-extensions/nautilus-scalable-font.c:
      	(nautilus_scalable_font_measure_text), (invert_glyph),
      	(nautilus_scalable_font_draw_text),
      	(nautilus_scalable_font_draw_text_lines_with_dimensions),
      	(nautilus_scalable_font_draw_text_lines),
      	(nautilus_text_layout_paint):
      	* libnautilus-extensions/nautilus-scalable-font.h:
      	Add support for drawint inverted text.  Also cleanup the rendering
      	function a bit.
      
      	* libnautilus-extensions/nautilus-icon-factory.c: (embed_text):
      	* libnautilus-extensions/nautilus-label.c: (render_buffer_pixbuf):
      	* src/nautilus-about.c: (draw_aa_string):
      	* src/nautilus-sidebar-tabs.c: (draw_one_tab_plain),
      	(draw_one_tab_themed):
      	Update all these for the new inverted scalable font api.
      
      	* test/test-nautilus-font.c: (main):
      	Add a inverted text test.
      897a33ff
    • Ramiro Estrugo's avatar
      Make the empty line height 1/2 of the font size to cram more stuff into · e38dfd4f
      Ramiro Estrugo authored
      	* libnautilus-extensions/nautilus-icon-factory.c: (embed_text):
      	Make the empty line height 1/2 of the font size to cram more stuff
      	into the embedded text.
      
      	* libnautilus-extensions/nautilus-label.c:
      	(nautilus_label_size_request), (render_buffer_pixbuf),
      	(label_get_empty_line_height),
      	(label_get_total_text_and_line_offset_height),
      	(label_recompute_line_geometries):
      	Update for scalable font changes.
      
      	* libnautilus-extensions/nautilus-scalable-font.c:
      	(nautilus_scalable_font_measure_text_lines),
      	(nautilus_scalable_font_draw_text_lines_with_dimensions),
      	(nautilus_scalable_font_draw_text_lines):
      	* libnautilus-extensions/nautilus-scalable-font.h:
      	Add empty_line_height argument to text line measuring and drawing
      	functions.  Use this in both measure and drawing computations.
      
      	* test/test-nautilus-font.c: (gdk_pixbuf_draw_rectangle),
      	(draw_rectangle_around), (main):
      	Update for scalable font changes.  Also draw a box around area
      	that is being clipped (or measured) to determine whether things
      	work precisely.
      e38dfd4f
  20. 05 Sep, 2000 2 commits
    • Ramiro Estrugo's avatar
      Simpify the text line drawing function to not reuqire passing in the · e5b8f548
      Ramiro Estrugo authored
      	* libnautilus-extensions/nautilus-label.c: (render_buffer_pixbuf):
      	* libnautilus-extensions/nautilus-scalable-font.c:
      	(nautilus_scalable_font_draw_text_lines_with_dimensions),
      	(nautilus_scalable_font_draw_text_lines):
      	* libnautilus-extensions/nautilus-scalable-font.h:
      	Simpify the text line drawing function to not reuqire passing in
      	the number of lines or their dimensions.  Compute these when
      	needed.  An alternate function that accepts the dimensions is
      	available as well.
      
      	* test/test-nautilus-font.c: (main):
      	Draw both text lines and single line clipped text to test more
      	stuff.
      e5b8f548
    • Ramiro Estrugo's avatar
      More work on task 1588. · 4025fec5
      Ramiro Estrugo authored
      	* libnautilus-extensions/nautilus-scalable-font.c:
      	(nautilus_scalable_font_draw_text),
      	(nautilus_scalable_font_measure_text_lines),
      	(nautilus_scalable_font_draw_text_lines):
      	* libnautilus-extensions/nautilus-scalable-font.h:
      	Change text rendering api to take in x,y coordinates along with a
      	clip_area.
      
      	Remove some #if 0 code i left in before.
      
      	Also change the text lines rendering api to optionally do its own
      	line measuring - for the convenience of the caller.
      
      	* libnautilus-extensions/nautilus-label.c: (render_buffer_pixbuf):
      	Update for text rendering changes.
      	Fix the justification bug.
      	Fix the multiple newlines bug.
      
      	* src/nautilus-about.c: (draw_aa_string):
      	Update for text rendering changes.
      
      	* src/nautilus-sidebar-tabs.c: (draw_one_tab_plain),
      	(draw_one_tab_themed):
      	Update for text rendering changes.
      
      	* test/test-nautilus-font.c: (main):
      	Update for text rendering changes.
      	Also add multiple new lines test and clipping test.
      
      	* test/test-nautilus-label.c: (main):
      	Update for text rendering changes.
      4025fec5
  21. 04 Sep, 2000 1 commit
    • Ramiro Estrugo's avatar
      Work on task 1588. · 93861b34
      Ramiro Estrugo authored
      	* libnautilus-extensions/nautilus-scalable-font.c:
      	(nautilus_scalable_font_measure_text),
      	(nautilus_scalable_font_draw_text),
      	(nautilus_scalable_font_measure_text_lines),
      	(nautilus_scalable_font_draw_text_lines),
      	(nautilus_scalable_font_measure_text_lines),
      	(nautilus_scalable_font_draw_text_lines),
      	(nautilus_scalable_font_largest_fitting_font_size):
      	* libnautilus-extensions/nautilus-scalable-font.h:
      	Change api to accept a string with embedded new lines instead of
      	an array of strings.  This simplifies many things.
      
      	* libnautilus-extensions/nautilus-label.c:
      	(nautilus_label_initialize), (nautilus_label_destroy),
      	(render_buffer_pixbuf), (label_recompute_line_geometries):
      	Update for NautilusScalalbleFont api changes.  No longer need to
      	tokenize the text string.  we can feed the string to the rendering
      	api as is.
      
      	* librsvg/rsvg-ft.c: (rsvg_ft_render_string):
      	* librsvg/rsvg-ft.h:
      	Change the string to glyph rendering api to accept the string
      	length rather than computing it.  This makes it possible to feed
      	it arbitrary lengths.
      
      	* librsvg/rsvg.c: (rsvg_text_handler_characters):
      	* librsvg/test-ft-gtk.c: (draw_line):
      	* librsvg/test-ft.c: (main):
      	Update for api changes.
      
      	* src/nautilus-about.c: (draw_aa_string):
      	* src/nautilus-sidebar-tabs.c: (draw_one_tab_plain),
      	(draw_one_tab_themed), (get_tab_width):
      	* test/test-nautilus-font.c: (main):
      	Update test to use text lines drawing api.
      
      	* test/test-nautilus-label.c:
      	(alpha_background_color_value_changed_callback), (main):
      	Update test for 2 new lines in a row.
      93861b34
  22. 29 Aug, 2000 1 commit
    • Ramiro Estrugo's avatar
      Add unref/ref functions for gcs that take NULL. · f7276747
      Ramiro Estrugo authored
      	* libnautilus-extensions/nautilus-buffered-widget.c:
      	(nautilus_buffered_widget_initialize),
      	(nautilus_buffered_widget_destroy),
      	(buffered_widget_update_pixbuf),
      	(create_background_pixbuf_from_none),
      	(create_background_pixbuf_from_solid),
      	(create_background_pixbuf_from_ancestor),
      	(create_background_pixbuf),
      	(nautilus_buffered_widget_get_vertical_offset),
      	(nautilus_buffered_widget_set_background_type),
      	(nautilus_buffered_widget_get_background_type),
      	(nautilus_buffered_widget_set_background_color),
      	(nautilus_buffered_widget_get_background_color):
      	* libnautilus-extensions/nautilus-buffered-widget.h:
      
      	* libnautilus-extensions/nautilus-gdk-extensions.c:
      	(nautilus_gdk_gc_ref_if_not_null),
      	(nautilus_gdk_gc_unref_if_not_null):
      	* libnautilus-extensions/nautilus-gdk-extensions.h:
      	Add unref/ref functions for gcs that take NULL.
      
      	* libnautilus-extensions/nautilus-label.c: (nautilus_label_new):
      	* libnautilus-extensions/nautilus-label.h:
      	Make the cons...
      f7276747
  23. 28 Aug, 2000 1 commit
    • Ramiro Estrugo's avatar
      New convenient function to set the font from components. · c4c0eb9d
      Ramiro Estrugo authored
      	* libnautilus-extensions/nautilus-label.c:
      	(nautilus_label_set_font_from_components):
      	* libnautilus-extensions/nautilus-label.h:
      	New convenient function to set the font from components.
      
      	* components/music/nautilus-music-view.c:
      	(nautilus_music_view_initialize), (add_play_controls):
      	Use new nautilus_label_set_font_from_components to avoid font
      	object leaks.
      
      	components/services/nautilus-dependent-shared/shared-service-widgets.c:
      	(create_label_widget), (create_services_title_widget):
      	Use new nautilus_label_set_font_from_components.
      
      	* src/nautilus-first-time-druid.c: (make_anti_aliased_label),
      	(make_hbox_user_level_radio_button), (set_up_update_feedback_page):
      	Use new nautilus_label_set_font_from_components to avoid font
      	object leaks.
      c4c0eb9d
  24. 25 Aug, 2000 3 commits
    • Ramiro Estrugo's avatar
      Some dumb renamings and superfluous assertion removal. · db1897b9
      Ramiro Estrugo authored
      	* libnautilus-extensions/nautilus-buffered-widget.c:
      	(nautilus_buffered_widget_initialize_class),
      	(nautilus_buffered_widget_realize),
      	(nautilus_buffered_widget_draw),
      	(nautilus_buffered_widget_size_allocate),
      	(nautilus_buffered_widget_expose_event):
      	Some dumb renamings and superfluous assertion removal.
      
      	* libnautilus-extensions/nautilus-image.c:
      	(nautilus_image_initialize_class), (nautilus_image_draw),
      	(nautilus_image_expose_event), (nautilus_image_paint),
      	(nautilus_image_set_alpha_mode):
      	Add support for two alpha rendering modes: 1) FULL, the pixbuf is
      	composited on top of the widget's background - expensive.  2)
      	THRESHOLD, the pixbuf is drawn with an alpha threshold without any
      	compositing - fast but not as smooth.
      
      	* libnautilus-extensions/nautilus-label.c: (render_buffer_pixbuf):
      	Remove a dumb printf i left in before.
      
      	* src/nautilus-sidebar-title.c:
      	(nautilus_sidebar_title_initialize), (update_icon),
      	(nautilus_sidebar_title_h...
      db1897b9
    • Ramiro Estrugo's avatar
      Add suport for a vertical and horizontal offset. Pass these on to the · 42840523
      Ramiro Estrugo authored
      	* libnautilus-extensions/nautilus-buffered-widget.c:
      	(nautilus_buffered_widget_initialize),
      	(buffered_widget_update_pixbuf),
      	(nautilus_buffered_widget_set_tile_pixbuf),
      	(nautilus_buffered_get_tile_pixbuf_size),
      	(nautilus_buffered_widget_set_horizontal_offset),
      	(nautilus_buffered_widget_get_horizontal_offset),
      	(nautilus_buffered_widget_set_vertical_offset),
      	(nautilus_buffered_widget_get_vertical_offset):
      	* libnautilus-extensions/nautilus-buffered-widget.h:
      
      	Add suport for a vertical and horizontal offset.  Pass these on to
      	the pixbuf render function so that the subclasses can do stuff
      	with them.
      
      	* libnautilus-extensions/nautilus-image.c:
      	(nautilus_image_initialize), (nautilus_image_size_request),
      	(render_buffer_pixbuf), (nautilus_image_set_overall_alpha),
      	(nautilus_image_set_alpha_mode), (nautilus_image_get_alpha_mode):
      	* libnautilus-extensions/nautilus-image.h:
      
      	Use the GtkMisc xpad/ypad into account when computing t...
      42840523
    • Ramiro Estrugo's avatar
      New function to access the tile_height. · 0054cac7
      Ramiro Estrugo authored
      	* libnautilus-extensions/nautilus-buffered-widget.c:
      	(nautilus_buffered_widget_expose),
      	(buffered_widget_create_pixbuf_from_background),
      	(nautilus_buffered_widget_get_tile_pixbuf),
      	(nautilus_buffered_get_tile_pixbuf_size):
      	* libnautilus-extensions/nautilus-buffered-widget.h:
      	New function to access the tile_height.
      
      	* libnautilus-extensions/nautilus-label.c:
      	(nautilus_label_size_request):
      	Take the tile height into account when computing the requested
      	label height.
      0054cac7
  25. 23 Aug, 2000 1 commit
    • Ramiro Estrugo's avatar
      Bug 2286 - sidebar text gets cut off. The problem was that the text · 2b6673a9
      Ramiro Estrugo authored
      	* libnautilus-extensions/nautilus-label.c: (render_buffer_pixbuf),
      	(label_recompute_line_geometries), (nautilus_label_new),
      	(nautilus_label_set_text), (nautilus_label_set_font),
      	(nautilus_label_set_font_size):
      	Bug 2286 - sidebar text gets cut off.  The problem was that the
      	text geometry was not being recomputed on changes that affected
      	it, like font and font size.   Put the geometry code to a new
      	function.
      
      	Also fix a dumb overflow bug caused by abusing guint16.
      
      	* libnautilus-extensions/nautilus-scalable-font.c:
      	(nautilus_scalable_font_draw_text_lines):
      	Was not setting the rectangle end point.
      2b6673a9
  26. 21 Aug, 2000 2 commits
    • Ramiro Estrugo's avatar
      Add support for drop shadows. · f2421293
      Ramiro Estrugo authored
      	* libnautilus-extensions/nautilus-label.c:
      	(nautilus_label_initialize), (nautilus_label_size_request),
      	(render_buffer_pixbuf), (nautilus_label_set_text),
      	(nautilus_label_set_font), (nautilus_label_set_text_color),
      	(nautilus_label_set_text_alpha),
      	(nautilus_label_set_drop_shadow_offset),
      	(nautilus_label_get_drop_shadow_offset),
      	(nautilus_label_set_drop_shadow_color):
      	* libnautilus-extensions/nautilus-label.h:
      
      	Add support for drop shadows.
      
      	* src/nautilus-sidebar-title.c:
      	(nautilus_sidebar_title_initialize):
      
      	Make the offset between labels more pleasing to comrade arlo.
      f2421293
    • Ramiro Estrugo's avatar
      Tasks: 1612, 1274, 1511 and 1588. · 70505287
      Ramiro Estrugo authored
      	* libnautilus-extensions/nautilus-scalable-font.c:
      	* libnautilus-extensions/nautilus-scalable-font.h:
      
      	New GtkObject subclass that provdes a simple interface to raph's
      	librsvg FreeType2 bases anti aliased text rendering.
      
      	* libnautilus-extensions/nautilus-font-picker.c:
      	* libnautilus-extensions/nautilus-font-picker.h:
      
      	New font picker class.  I will soon use it in the preferences
      	dialog instead of the current one.
      
      	* libnautilus-extensions/nautilus-buffered-widget.c:
      	* libnautilus-extensions/nautilus-buffered-widget.h:
      
      	New virtual widget class that encapsulates the details of finding
      	a suitable background for compositing pixbufs.
      
      	* libnautilus-extensions/nautilus-image.c:
      	* libnautilus-extensions/nautilus-image.h:
      
      	Rewritten NautilusImage class.  Took out all the label stuff,
      	which lives in its own class.  Now subclassed from
      	NautilusBufferedWidget so that background the image gets
      	composited on is always correct and groks NautilusBackground.
      
      	* libnautilus-extensions/nautilus-label.c:
      	* libnautilus-extensions/nautilus-label.h:
      
      	New NautilusLabel widget class.  A label widget that is capable of
      	displaying anti aliased text composited over a complex background.
      
      	The background can be installed as NautilusBackground on a
      	NautilusLabel widget or any of its ancestors.  The best background
      	will automatically be found and used by the widget.
      
      	* services/nautilus-dependant-shared/shared-service-widgets.c,
      	* services/nautilus-dependant-shared/shared-service-widgets.h,
      	* services/startup/nautilus-view/nautilus-service-startup-view.c:
      
      	Update for changes in the NautilusImage api.  Unfortunately, these
      	components are slightly broken now cause of the NautilusImage
      	changes.  I will fix them shortly.
      
      	* libnautilus-extensions/nautilus-string-map.c:
      	* libnautilus-extensions/nautilus-string-map.h:
      
      	New simple class to map an arbitrary number of strings to a single
      	string.
      
      	* libnautilus-extensions/nautilus-lib-self-check-functions.h:
      	Add tests for the new string map class.
      
      	* libnautilus-extensions/Makefile.am:
      
      	Build the new widgets.  Also add some depedencies on the static
      	libraries we link into this beast.  This way,
      	libnautilus-extensions will rebuild of one if its dependency
      	static libs is touched.
      
      	* test/.cvsignore,
      	* test/Makefile.am,
      	* test/test-nautilus-font-picker.c,
      	* test/test-nautilus-font.c,
      	* test/test-nautilus-image.c,
      	* test/test-nautilus-label.c:
      
      	Update test programs for new widgets.
      70505287