1. 03 Jan, 2002 1 commit
    • Darin Adler's avatar
      Port from EelLabel to GtkLabel. · fa2a9d00
      Darin Adler authored
      	* components/hardware/nautilus-hardware-view.c:
      	(update_uptime_text), (setup_overview_form):
      	* components/music/nautilus-music-view.c:
      	* src/file-manager/nautilus-indexing-info.c:
      	(update_progress_display):
      	* src/nautilus-property-browser.c:
      	(nautilus_property_browser_init), (labeled_image_configure),
      	(labeled_image_new), (make_category),
      	(property_browser_category_button_new),
      	(nautilus_property_browser_update_contents):
      	* test/test.h:
      	* src/nautilus-shell.c:
      	* src/nautilus-sidebar-title.c: (nautilus_sidebar_title_init):
      	Port from EelLabel to GtkLabel.
      
      	* components/news/nautilus-news.c: (do_destroy),
      	(draw_rss_logo_image), (draw_rss_title), (draw_rss_items),
      	(nautilus_news_set_title), (free_channel),
      	(empty_message_size_allocate), (set_up_main_widgets),
      	(make_news_view):
      	* libnautilus-private/nautilus-icon-private.h:
      	* src/nautilus-sidebar-tabs.c:
      	(nautilus_sidebar_tabs_load_theme_data),
      	(nautilus_sidebar_tabs_init), (nautilus_sidebar_tabs_destroy),
      	(draw_one_tab_plain), (draw_one_tab_themed), (get_tab_width),
      	(nautilus_sidebar_tabs_add_view):
      	Port to Pango text instead of Eel text.
      
      	* libnautilus-private/nautilus-customization-data.c:
      	(add_reset_text):
      	* libnautilus-private/nautilus-icon-factory.c:
      	(embedded_text_font_changed_callback), (embed_text):
      	* src/nautilus-about.c: (draw_aa_string), (draw_author_list),
      	(nautilus_about_draw_info), (nautilus_about_update_authors):
      	Disable Eel text and ifdef with GNOME2_CONVERSION_COMPLETE.
      
      	* libnautilus-private/nautilus-global-preferences.h:
      	* libnautilus-private/nautilus-global-preferences.c:
      	Turn off font-related preferences. Maybe delete later or
      	convert for Pango fonts.
      
      	* libnautilus-private/nautilus-icon-canvas-item.h:
      	* libnautilus-private/nautilus-icon-container.h:
      	Remove eel-scalable-font.h includes.
      
      	* src/nautilus-component-adapter-factory.c:
      	(nautilus_component_adapter_factory_create_adapter):
      	Disable the adapter because it was causing problems.
      fa2a9d00
  2. 18 Dec, 2001 1 commit
    • Darin Adler's avatar
      Do text drawing with Pango for the anti-aliased case. Remove all use of · 0e61a2dc
      Darin Adler authored
      	* libnautilus-private/nautilus-icon-canvas-item.h:
      	* libnautilus-private/nautilus-icon-canvas-item.c:
      	(nautilus_icon_canvas_item_init),
      	(nautilus_icon_canvas_item_finalize),
      	(nautilus_icon_canvas_item_invalidate_label_size),
      	(nautilus_icon_canvas_item_set_arg),
      	(nautilus_icon_canvas_item_get_arg), (draw_or_measure_label_text),
      	(measure_label_text), (create_label_layout), (get_label_layout),
      	(draw_label_layout), (draw_or_measure_label_text_aa),
      	(draw_label_text_aa), (nautilus_icon_canvas_item_class_init):
      	Do text drawing with Pango for the anti-aliased case. Remove all
      	use of the non-Pango Eel anti-aliased text drawing code.
      
      	* libnautilus-private/nautilus-icon-container.h:
      	* libnautilus-private/nautilus-icon-container.c: (finalize),
      	(nautilus_icon_container_init),
      	(nautilus_icon_container_update_icon),
      	(nautilus_icon_container_set_label_font_for_zoom_level):
      	* src/file-manager/fm-icon-view.c: (create_icon_container),
      	(fm_icon_view_init):
      	Remove the smooth-font stuff. We're going to use a single font
      	once we change everything to use Pango.
      
      	* icons/Makefile.am: Remove help-system icons.
      	* icons/hyperbola-*: Remove help-system icons.
      0e61a2dc
  3. 28 Oct, 2001 1 commit
  4. 24 Oct, 2001 1 commit
  5. 30 Apr, 2001 1 commit
    • Ramiro Estrugo's avatar
      Change parameters for functions that accept and return ArtIRect, · 1260bbb9
      Ramiro Estrugo authored
      	* components/news/nautilus-news.c:
      	* libnautilus-extensions/nautilus-icon-canvas-item.c:
      	* libnautilus-extensions/nautilus-icon-canvas-item.h:
      	* libnautilus-extensions/nautilus-icon-container.c:
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	* src/file-manager/fm-list-view.c:
      	* src/nautilus-about.c:
      	* test/test.c:
      	Change parameters for functions that accept and return ArtIRect,
      	EelArtIPoint, ArtDRect, EelDimensions to pass by value instead of
      	by pointer.
      1260bbb9
  6. 04 Apr, 2001 1 commit
    • Ramiro Estrugo's avatar
      Remove librsvg. · fbbaf803
      Ramiro Estrugo authored
      	* Makefile.am:
      	Remove librsvg.
      
      	* librsvg/.cvsignore:
      	* librsvg/Makefile.am:
      	* librsvg/art_render.c:
      	* librsvg/art_render.h:
      	* librsvg/art_render_gradient.c:
      	* librsvg/art_render_gradient.h:
      	* librsvg/art_render_mask.c:
      	* librsvg/art_render_mask.h:
      	* librsvg/art_render_svp.c:
      	* librsvg/art_render_svp.h:
      	* librsvg/art_rgba.c:
      	* librsvg/art_rgba.h:
      	* librsvg/example-nested-transform.svg:
      	* librsvg/makefile-simple:
      	* librsvg/opacity.svg:
      	* librsvg/rsvg-bpath-util.c:
      	* librsvg/rsvg-bpath-util.h:
      	* librsvg/rsvg-css.c:
      	* librsvg/rsvg-css.h:
      	* librsvg/rsvg-defs.c:
      	* librsvg/rsvg-defs.h:
      	* librsvg/rsvg-ft.c:
      	* librsvg/rsvg-ft.h:
      	* librsvg/rsvg-paint-server.c:
      	* librsvg/rsvg-paint-server.h:
      	* librsvg/rsvg-path.c:
      	* librsvg/rsvg-path.h:
      	* librsvg/rsvg.c:
      	* librsvg/rsvg.h:
      	* librsvg/subpixel-text-test:
      	* librsvg/test-ft-gtk.c:
      	* librsvg/test-ft.c:
      	* librsvg/test-rsvg.c:
      	* librsvg/test.svg:
      	Move librsvg to its own top level GNOME CVS module.
      
      	* configure.in:
      	Add librsvg and eel dependencies.
      	Remove librsvg and font entries.
      
      	* nautilus.spec.in:
      	Remove font entries.  Add librsvg and eel requirements.
      
      	* data/Makefile.am:
      	* data/fonts/.cvsignore:
      	* data/fonts/Makefile.am:
      	* data/fonts/urw/.cvsignore:
      	* data/fonts/urw/Makefile.am:
      	* data/fonts/urw/README:
      	* data/fonts/urw/fonts.dir:
      	* data/fonts/urw/n019003l.afm:
      	* data/fonts/urw/n019003l.pfb:
      	* data/fonts/urw/n019003l.pfm:
      	* data/fonts/urw/n019004l.afm:
      	* data/fonts/urw/n019004l.pfb:
      	* data/fonts/urw/n019004l.pfm:
      	* data/fonts/urw/n019023l.afm:
      	* data/fonts/urw/n019023l.pfb:
      	* data/fonts/urw/n019023l.pfm:
      	* data/fonts/urw/n019024l.afm:
      	* data/fonts/urw/n019024l.pfb:
      	* data/fonts/urw/n019024l.pfm:
      	Retire default fonts.  These now live in eel.
      
      	* libnautilus/nautilus-undo-transaction.c:
      	(nautilus_undo_transaction_destroy):
      	* libnautilus/nautilus-view.c: (nautilus_view_destroy):
      	Update for eel changes.  Use eel-gtk-macros.
      
      	* nautilus-installer/src/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):
      	Update for eel changes.  Use eel-gtk-macros.
      
      	* libnautilus-extensions/Makefile.am:
      	* libnautilus-extensions/nautilus-bonobo-extensions.c:
      	* libnautilus-extensions/nautilus-bonobo-extensions.h:
      	* libnautilus-extensions/nautilus-bookmark.c:
      	* libnautilus-extensions/nautilus-ctree.c:
      	* libnautilus-extensions/nautilus-customization-data.c:
      	* libnautilus-extensions/nautilus-dateedit-extensions.c:
      	* libnautilus-extensions/nautilus-dateedit-extensions.h:
      	* libnautilus-extensions/nautilus-directory-async.c:
      	* libnautilus-extensions/nautilus-directory-background.c:
      	* libnautilus-extensions/nautilus-directory-background.h:
      	* libnautilus-extensions/nautilus-directory-metafile-monitor.c:
      	* libnautilus-extensions/nautilus-directory-metafile.c:
      	* libnautilus-extensions/nautilus-directory.c:
      	* libnautilus-extensions/nautilus-drag-window.c:
      	* libnautilus-extensions/nautilus-drag.c:
      	* libnautilus-extensions/nautilus-druid-page-eazel.c:
      	* libnautilus-extensions/nautilus-druid.c:
      	* libnautilus-extensions/nautilus-entry.c:
      	* libnautilus-extensions/nautilus-file-changes-queue.c:
      	* libnautilus-extensions/nautilus-file-operations-progress.c:
      	* libnautilus-extensions/nautilus-file-operations.c:
      	* libnautilus-extensions/nautilus-file-private.h:
      	* libnautilus-extensions/nautilus-file-utilities.c:
      	* libnautilus-extensions/nautilus-file.c:
      	* libnautilus-extensions/nautilus-font-factory.c:
      	* libnautilus-extensions/nautilus-gconf-extensions.c:
      	* libnautilus-extensions/nautilus-generous-bin.c:
      	* libnautilus-extensions/nautilus-global-preferences.c:
      	* libnautilus-extensions/nautilus-global-preferences.h:
      	* libnautilus-extensions/nautilus-horizontal-splitter.c:
      	* libnautilus-extensions/nautilus-icon-canvas-item.c:
      	* libnautilus-extensions/nautilus-icon-canvas-item.h:
      	* libnautilus-extensions/nautilus-icon-container.c:
      	* libnautilus-extensions/nautilus-icon-container.h:
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	* libnautilus-extensions/nautilus-icon-factory.h:
      	* libnautilus-extensions/nautilus-icon-private.h:
      	* libnautilus-extensions/nautilus-icon-text-item.c:
      	* libnautilus-extensions/nautilus-keep-last-vertical-box.c:
      	* libnautilus-extensions/nautilus-lib-self-check-functions.c:
      	* libnautilus-extensions/nautilus-lib-self-check-functions.h:
      	* libnautilus-extensions/nautilus-link-set.c:
      	* libnautilus-extensions/nautilus-link.c:
      	* libnautilus-extensions/nautilus-list-column-title.c:
      	* libnautilus-extensions/nautilus-list.c:
      	* libnautilus-extensions/nautilus-medusa-support.c:
      	* libnautilus-extensions/nautilus-merged-directory.c:
      	* libnautilus-extensions/nautilus-metafile-factory.c:
      	* libnautilus-extensions/nautilus-metafile.c:
      	* libnautilus-extensions/nautilus-mime-actions.c:
      	* libnautilus-extensions/nautilus-preferences-box.c:
      	* libnautilus-extensions/nautilus-preferences-dialog.c:
      	* libnautilus-extensions/nautilus-preferences-group.c:
      	* libnautilus-extensions/nautilus-preferences-item.c:
      	* libnautilus-extensions/nautilus-preferences-pane.c:
      	* libnautilus-extensions/nautilus-preferences.c:
      	* libnautilus-extensions/nautilus-preferences.h:
      	* libnautilus-extensions/nautilus-program-chooser.c:
      	* libnautilus-extensions/nautilus-program-choosing.c:
      	* libnautilus-extensions/nautilus-program-choosing.h:
      	* libnautilus-extensions/nautilus-search-uri.c:
      	* libnautilus-extensions/nautilus-sidebar-functions.c:
      	* libnautilus-extensions/nautilus-tabs.c:
      	* libnautilus-extensions/nautilus-theme.c:
      	* libnautilus-extensions/nautilus-thumbnails.c:
      	* libnautilus-extensions/nautilus-trash-directory.c:
      	* libnautilus-extensions/nautilus-trash-file.c:
      	* libnautilus-extensions/nautilus-trash-monitor.c:
      	* libnautilus-extensions/nautilus-undo-context.c:
      	* libnautilus-extensions/nautilus-undo-manager.c:
      	* libnautilus-extensions/nautilus-undo-signal-handlers.c:
      	* libnautilus-extensions/nautilus-vfs-directory.c:
      	* libnautilus-extensions/nautilus-vfs-file.c:
      	* libnautilus-extensions/nautilus-view-identifier.c:
      	* libnautilus-extensions/nautilus-volume-monitor.c:
      	Use new eel library.
      
      	* libnautilus-extensions/nautilus-art-extensions.c:
      	* libnautilus-extensions/nautilus-art-extensions.h:
      	* libnautilus-extensions/nautilus-art-gtk-extensions.c:
      	* libnautilus-extensions/nautilus-art-gtk-extensions.h:
      	* libnautilus-extensions/nautilus-background-canvas-group.c:
      	* libnautilus-extensions/nautilus-background-canvas-group.h:
      	* libnautilus-extensions/nautilus-background.c:
      	* libnautilus-extensions/nautilus-background.h:
      	* libnautilus-extensions/nautilus-caption-table.c:
      	* libnautilus-extensions/nautilus-caption-table.h:
      	* libnautilus-extensions/nautilus-caption.c:
      	* libnautilus-extensions/nautilus-caption.h:
      	* libnautilus-extensions/nautilus-clickable-image.c:
      	* libnautilus-extensions/nautilus-clickable-image.h:
      	* libnautilus-extensions/nautilus-debug-drawing.c:
      	* libnautilus-extensions/nautilus-debug-drawing.h:
      	* libnautilus-extensions/nautilus-debug.c:
      	* libnautilus-extensions/nautilus-debug.h:
      	* libnautilus-extensions/nautilus-ellipsizing-label.c:
      	* libnautilus-extensions/nautilus-ellipsizing-label.h:
      	* libnautilus-extensions/nautilus-enumeration.c:
      	* libnautilus-extensions/nautilus-enumeration.h:
      	* libnautilus-extensions/nautilus-font-manager.c:
      	* libnautilus-extensions/nautilus-font-manager.h:
      	* libnautilus-extensions/nautilus-font-picker.c:
      	* libnautilus-extensions/nautilus-font-picker.h:
      	* libnautilus-extensions/nautilus-gdk-extensions.c:
      	* libnautilus-extensions/nautilus-gdk-extensions.h:
      	* libnautilus-extensions/nautilus-gdk-font-extensions.c:
      	* libnautilus-extensions/nautilus-gdk-font-extensions.h:
      	* libnautilus-extensions/nautilus-gdk-pixbuf-extensions.c:
      	* libnautilus-extensions/nautilus-gdk-pixbuf-extensions.h:
      	* libnautilus-extensions/nautilus-glib-extensions.c:
      	* libnautilus-extensions/nautilus-glib-extensions.h:
      	* libnautilus-extensions/nautilus-glyph.c:
      	* libnautilus-extensions/nautilus-glyph.h:
      	* libnautilus-extensions/nautilus-gnome-extensions.c:
      	* libnautilus-extensions/nautilus-gnome-extensions.h:
      	* libnautilus-extensions/nautilus-graphic-effects.c:
      	* libnautilus-extensions/nautilus-graphic-effects.h:
      	* libnautilus-extensions/nautilus-gtk-extensions.c:
      	* libnautilus-extensions/nautilus-gtk-extensions.h:
      	* libnautilus-extensions/nautilus-gtk-macros.h:
      	* libnautilus-extensions/nautilus-image-table.c:
      	* libnautilus-extensions/nautilus-image-table.h:
      	* libnautilus-extensions/nautilus-image-with-background.c:
      	* libnautilus-extensions/nautilus-image-with-background.h:
      	* libnautilus-extensions/nautilus-image.c:
      	* libnautilus-extensions/nautilus-image.h:
      	* libnautilus-extensions/nautilus-label-with-background.c:
      	* libnautilus-extensions/nautilus-label-with-background.h:
      	* libnautilus-extensions/nautilus-label.c:
      	* libnautilus-extensions/nautilus-label.h:
      	* libnautilus-extensions/nautilus-labeled-image.c:
      	* libnautilus-extensions/nautilus-labeled-image.h:
      	* libnautilus-extensions/nautilus-lib-self-check-functions.c:
      	* libnautilus-extensions/nautilus-lib-self-check-functions.h:
      	* libnautilus-extensions/nautilus-password-dialog.c:
      	* libnautilus-extensions/nautilus-password-dialog.h:
      	* libnautilus-extensions/nautilus-radio-button-group.c:
      	* libnautilus-extensions/nautilus-radio-button-group.h:
      	* libnautilus-extensions/nautilus-region.c:
      	* libnautilus-extensions/nautilus-region.h:
      	* libnautilus-extensions/nautilus-scalable-font-private.h:
      	* libnautilus-extensions/nautilus-scalable-font.c:
      	* libnautilus-extensions/nautilus-scalable-font.h:
      	* libnautilus-extensions/nautilus-self-checks.c:
      	* libnautilus-extensions/nautilus-self-checks.h:
      	* libnautilus-extensions/nautilus-smooth-text-layout-cache.c:
      	* libnautilus-extensions/nautilus-smooth-text-layout-cache.h:
      	* libnautilus-extensions/nautilus-smooth-text-layout.c:
      	* libnautilus-extensions/nautilus-smooth-text-layout.h:
      	* libnautilus-extensions/nautilus-smooth-widget.c:
      	* libnautilus-extensions/nautilus-smooth-widget.h:
      	* libnautilus-extensions/nautilus-stock-dialogs.c:
      	* libnautilus-extensions/nautilus-stock-dialogs.h:
      	* libnautilus-extensions/nautilus-string-list.c:
      	* libnautilus-extensions/nautilus-string-list.h:
      	* libnautilus-extensions/nautilus-string-map.c:
      	* libnautilus-extensions/nautilus-string-map.h:
      	* libnautilus-extensions/nautilus-string-picker.c:
      	* libnautilus-extensions/nautilus-string-picker.h:
      	* libnautilus-extensions/nautilus-string.c:
      	* libnautilus-extensions/nautilus-string.h:
      	* libnautilus-extensions/nautilus-text-caption.c:
      	* libnautilus-extensions/nautilus-text-caption.h:
      	* libnautilus-extensions/nautilus-viewport.c:
      	* libnautilus-extensions/nautilus-viewport.h:
      	* libnautilus-extensions/nautilus-wrap-table.c:
      	* libnautilus-extensions/nautilus-wrap-table.h:
      	* libnautilus-extensions/nautilus-xml-extensions.c:
      	* libnautilus-extensions/nautilus-xml-extensions.h:
      	Remove these files.  These are all part of eel now.
      
      	* applets/launcher/nautilus-launcher-applet.c:
      	* applets/preferences-applet/nautilus-preferences-applet.c:
      	* components/adapter/Makefile.am:
      	* components/adapter/main.c:
      	* components/adapter/nautilus-adapter-control-embed-strategy.c:
      	* components/adapter/nautilus-adapter-embed-strategy.c:
      	* components/adapter/nautilus-adapter-embeddable-embed-strategy.c:
      	* components/adapter/nautilus-adapter-factory-server.c:
      	* components/adapter/nautilus-adapter-file-load-strategy.c:
      	* components/adapter/nautilus-adapter-load-strategy.c:
      	* components/adapter/nautilus-adapter-progressive-load-strategy.c:
      	* components/adapter/nautilus-adapter-stream-load-strategy.c:
      	* components/adapter/nautilus-adapter.c:
      	* components/hardware/Makefile.am:
      	* components/hardware/nautilus-hardware-view.c:
      	* components/help/Makefile.am:
      	* components/help/help-method.c:
      	* components/help/hyperbola-filefmt.c:
      	* components/help/hyperbola-nav-tree.c:
      	* components/history/Makefile.am:
      	* components/history/nautilus-history-view.c:
      	* components/image-viewer/Makefile.am:
      	* components/image-viewer/nautilus-image-view.c:
      	* components/loser/content/Makefile.am:
      	* components/loser/content/nautilus-content-loser.c:
      	* components/loser/sidebar/Makefile.am:
      	* components/loser/sidebar/nautilus-sidebar-loser.c:
      	* components/mozilla/Makefile.am:
      	* components/mozilla/bonobo-extensions.c:
      	* components/mozilla/nautilus-mozilla-content-view.c:
      	* components/music/Makefile.am:
      	* components/music/nautilus-music-view.c:
      	* components/notes/Makefile.am:
      	* components/notes/nautilus-notes.c:
      	* components/rpmview/Makefile.am:
      	* components/rpmview/nautilus-rpm-verify-window.c:
      	* components/rpmview/nautilus-rpm-view-install.c:
      	* components/rpmview/nautilus-rpm-view.c:
      	* components/sample/nautilus-sample-content-view.c:
      	* components/services/install-view/Makefile.am:
      	* components/services/install-view/callbacks.c:
      	* components/services/install-view/forms.c:
      	* components/services/install-view/nautilus-service-install-view.c:
      	* components/services/install/lib/eazel-install-logic2.c:
      	* components/services/install/server/main.c:
      	* components/services/inventory-view/Makefile.am:
      	* components/services/inventory-view/nautilus-inventory-config-page
      	.c:
      	* components/services/inventory-view/nautilus-inventory-disable-pag
      	* components/services/inventory-view/nautilus-inventory-enable-page
      	* components/services/inventory-view/nautilus-inventory-view.c:
      	* components/services/inventory/Makefile.am:
      	* components/services/inventory/eazel-inventory-upload-callback.c:
      	* components/services/inventory/eazel-inventory.c:
      	* components/services/inventory/main.c:
      	* components/services/login/nautilus-view/Makefile.am:
      	* components/services/login/nautilus-view/nautilus-change-password-
      	view.c:
      	* components/services/login/nautilus-view/password-box.c:
      	* components/services/nautilus-dependent-shared/Makefile.am:
      	* components/services/nautilus-dependent-shared/eazel-services-exte
      	nsions.c:
      	* components/services/nautilus-dependent-shared/eazel-services-exte
      	nsions.h:
      	* components/services/nautilus-dependent-shared/eazel-services-foot
      	er.c:
      	* components/services/nautilus-dependent-shared/eazel-services-head
      	er.c:
      	* components/services/nautilus-dependent-shared/test-footer-header.
      	c:
      	* components/services/summary/Makefile.am:
      	* components/services/summary/nautilus-summary-callbacks.c:
      	* components/services/summary/nautilus-summary-dialogs.c:
      	* components/services/summary/nautilus-summary-dialogs.h:
      	* components/services/summary/nautilus-summary-footer.c:
      	* components/services/summary/nautilus-summary-menu-items.c:
      	* components/services/summary/nautilus-summary-view-private.h:
      	* components/services/summary/nautilus-summary-view.c:
      	* components/services/time/nautilus-view/main.c:
      	* components/services/time/nautilus-view/trilobite-eazel-time-view.
      	c:
      	* components/services/trilobite/sample/nautilus-view/Makefile.am:
      	* components/text/Makefile.am:
      	* components/text/nautilus-text-view.c:
      	* components/throbber/Makefile.am:
      	* components/throbber/main.c:
      	* components/throbber/nautilus-throbber.c:
      	* components/tree/Makefile.am:
      	* components/tree/nautilus-tree-change-queue.c:
      	* components/tree/nautilus-tree-expansion-state.c:
      	* components/tree/nautilus-tree-model.c:
      	* components/tree/nautilus-tree-node.c:
      	* components/tree/nautilus-tree-view-dnd.c:
      	* components/tree/nautilus-tree-view.c:
      	* helper-utilities/authenticate/Makefile.am:
      	* helper-utilities/authenticate/nautilus-authenticate.c:
      	* nautilus-installer/src/nautilus-druid.c:
      	* src/Makefile.am:
      	* src/file-manager/fm-desktop-icon-view.c:
      	* src/file-manager/fm-directory-view.c:
      	* src/file-manager/fm-directory-view.h:
      	* src/file-manager/fm-error-reporting.c:
      	* src/file-manager/fm-icon-text-window.c:
      	* src/file-manager/fm-icon-view.c:
      	* src/file-manager/fm-list-view.c:
      	* src/file-manager/fm-properties-window.c:
      	* src/file-manager/fm-search-list-view.c:
      	* src/file-manager/nautilus-indexing-info.c:
      	* src/nautilus-about.c:
      	* src/nautilus-application.c:
      	* src/nautilus-bookmark-list.c:
      	* src/nautilus-bookmark-parsing.c:
      	* src/nautilus-bookmarks-window.c:
      	* src/nautilus-complex-search-bar.c:
      	* src/nautilus-component-adapter-factory.c:
      	* src/nautilus-desktop-window.c:
      	* src/nautilus-first-time-druid.c:
      	* src/nautilus-link-set-window.c:
      	* src/nautilus-location-bar.c:
      	* src/nautilus-main.c:
      	* src/nautilus-navigation-bar.c:
      	* src/nautilus-profiler.c:
      	* src/nautilus-property-browser.c:
      	* src/nautilus-search-bar-criterion.c:
      	* src/nautilus-search-bar.c:
      	* src/nautilus-shell.c:
      	* src/nautilus-sidebar-tabs.c:
      	* src/nautilus-sidebar-title.c:
      	* src/nautilus-sidebar.c:
      	* src/nautilus-signaller.c:
      	* src/nautilus-simple-search-bar.c:
      	* src/nautilus-switchable-navigation-bar.c:
      	* src/nautilus-switchable-search-bar.c:
      	* src/nautilus-theme-selector.c:
      	* src/nautilus-view-frame-corba.c:
      	* src/nautilus-view-frame.c:
      	* src/nautilus-window-manage-views.c:
      	* src/nautilus-window-menus.c:
      	* src/nautilus-window-toolbars.c:
      	* src/nautilus-window.c:
      	* src/nautilus-window.h:
      	* src/nautilus-zoom-control.c:
      	Update for new eel library usage.
      
      	* test/test-nautilus-background.c:
      	* test/test-nautilus-clickable-image.c:
      	* test/test-nautilus-font-manager.c:
      	* test/test-nautilus-font-picker.c:
      	* test/test-nautilus-font-simple.c:
      	* test/test-nautilus-font.c:
      	* test/test-nautilus-glyph-simple.c:
      	* test/test-nautilus-glyph.c:
      	* test/test-nautilus-image-background.c:
      	* test/test-nautilus-image-scrolled.c:
      	* test/test-nautilus-image-simple.c:
      	* test/test-nautilus-image-table.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-offset.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-labeled-image.c:
      	* test/test-nautilus-password-dialog.c:
      	* test/test-nautilus-pixbuf-tile.c:
      	* test/test-nautilus-smooth-text-layout.c:
      	* test/test-nautilus-viewport-constraint.c:
      	* test/test-nautilus-widgets.c:
      	Remove these.  They live in eel now.
      
      	* test/vsignore:
      	* test/kefile.am:
      	* test/st-nautilus-preferences-change.c:
      	* test/st-nautilus-preferences-display.c:
      	* test/st-nautilus-wrap-table.c:
      	* test/st.c:
      	* test/st.h:
      	Update for new eel library usage.
      fbbaf803
  7. 28 Mar, 2001 1 commit
    • Ramiro Estrugo's avatar
      Fix bugs: · f7170ace
      Ramiro Estrugo authored
      	7343 - Fonts checks should work even when nautilus has not
      	undergone 'make install'
      
      	7703 - index status dialog is mixing gnome dialog font and
      	nautilus custom font
      
      	7204 - Need a better way to pick a fallback font
      
      	1102 - Embedded text should use preferences to determine the font
      	it uses
      
      	7357 - Preferences dialog spews critical in the ja_JP locale
      
      	7344 - NautilusScalable should not be doing any preferences
      	peeking
      
      	7345 - Default font "helvetica" hard coded and marked for
      	translatation in many places
      
      	7834 - Should mark selected style in font picker menu
      
      	5239 - Please make the text viewer use a fixed-width font
      
      	7401 - Non smooth font family picker should have a "GTK System
      	Font" entry
      
      	Work in progress for related bugs:
      
      	5101 - font sizes hard-coded in icon view
      	5456 - Sidebar tabs use hard coded font families
      	7670 - Font size is small in list view.
      
      	reviewed by: Glynn Foster <glynn.foster@ireland.sun.com>
      
      	* components/notes/nautilus-notes.c: (make_notes_view):
      	Dont translate the font name.
      
      	* components/text/nautilus-text-view-ui.xml:
      	Add default and fixed entries.
      
      	* components/text/nautilus-text-view.c:
      	(nautilus_text_view_initialize_class),
      	(nautilus_text_view_initialize), (nautilus_text_view_destroy),
      	(nautilus_text_view_update_font), (handle_ui_event),
      	(merge_bonobo_menu_items), (nautilus_text_view_zoom_to_level),
      	(zoomable_zoom_to_fit_callback), (font_changed_callback):
      	Dont store the font name and size.  Compute these as needed.  Use
      	deltas instead of hard coded font sizes to compute the font size
      	for a given zoom level.  Store the font changes in preferences.
      
      	* libnautilus-extensions/nautilus-caption.c:
      	(nautilus_caption_initialize), (nautilus_caption_set_title_label),
      	(nautilus_caption_get_title_label),
      	(nautilus_caption_get_title_label_width),
      	(nautilus_caption_set_child), (nautilus_caption_set_spacing):
      	* libnautilus-extensions/nautilus-caption.h:
      	Add support for nice caption alignments.
      
      	* libnautilus-extensions/nautilus-directory.c:
      	(add_preferences_callbacks), (remove_preferences_callbacks):
      	A bit of a hack.  Keep track of changes in the default smooth font
      	so that embedded icon text previews can be updated as needed.
      
      	* libnautilus-extensions/nautilus-font-factory.c:
      	(nautilus_font_factory_get_font_by_family),
      	A temporary hack for default system font usage.  In a future
      	checkin this will not be needed anymore.
      
      	(nautilus_font_factory_get_font_from_preferences):
      	Dont translate font names anymore.
      
      	* libnautilus-extensions/nautilus-font-manager.c:
      	(font_description_new), (font_description_free),
      	(font_description_get_char_set), (font_description_table_for_each),
      	(font_list_find_bold_callback), (get_test_font_dir),
      	(nautilus_self_check_font_manager):
      	* libnautilus-extensions/nautilus-font-manager.h:
      	Merge char_set_registry and char_set_encoding into one string
      	'char_set.'  Make the font checks work even if nautilus has not
      	undergone 'make install'
      
      	* libnautilus-extensions/nautilus-font-picker.c:
      	(nautilus_font_picker_initialize), (nautilus_font_picker_destroy),
      	(font_picker_populate), (font_make_style_name),
      	(font_style_entry_new), (compare_style),
      	(global_font_list_populate_callback):
      	* libnautilus-extensions/nautilus-font-picker.h:
      	Sublcass the font picker from NautilusCaption so that it will
      	nicely align in the preferences dialog.
      	Mark selected style in font picker menus by using radio buttons.
      	Fix a storage leak on destruction.
      
      	* libnautilus-extensions/nautilus-glib-extensions.c:
      	(nautilus_compare_integer), (nautilus_self_check_glib_extensions):
      	* libnautilus-extensions/nautilus-glib-extensions.h:
      	New GCompare function for integers.
      
      	* libnautilus-extensions/nautilus-global-preferences.c:
      	(global_preferences_install_defaults),
      	(global_preferences_create_dialog),
      	(global_preferences_create_search_pane),
      	(global_preferences_create_sidebar_panels_pane),
      	(global_preferences_pane_update_callback),
      	(global_preferences_get_dialog),
      	(global_preferences_install_sidebar_panel_defaults),
      	(global_preferences_make_sidebar_panel_key),
      	(global_preferences_is_sidebar_panel_enabled),
      	(global_preferences_install_home_location_defaults),
      	(global_preferences_install_font_defaults),
      	(global_preferences_install_medusa_defaults),
      	(global_preferences_populate_pane),
      	(global_preferences_get_smooth_font),
      	(global_preferences_get_smooth_bold_font),
      	(nautilus_global_preferences_get_icon_view_smooth_font),
      	(nautilus_global_preferences_get_default_smooth_font),
      	(nautilus_global_preferences_get_default_smooth_bold_font),
      	(nautilus_global_preferences_initialize):
      	* libnautilus-extensions/nautilus-global-preferences.h:
      	Simplify the creation of preferences by using structures to
      	describe both preferences and preference fialog entries.
      
      	* libnautilus-extensions/nautilus-gtk-extensions.c:
      	(nautilus_gtk_get_system_font):
      	* libnautilus-extensions/nautilus-gtk-extensions.h:
      	New function to obtain the "Gtk System Font."
      
      	* libnautilus-extensions/nautilus-icon-canvas-item.c:
      	(nautilus_icon_canvas_item_initialize_class),
      	(nautilus_icon_canvas_item_set_arg),
      	(nautilus_icon_canvas_item_get_arg),
      	(nautilus_icon_canvas_item_set_smooth_font_size):
      	* libnautilus-extensions/nautilus-icon-canvas-item.h:
      	Use signed integers for the font dimensions.
      
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(nautilus_icon_container_initialize),
      	(nautilus_icon_container_update_icon),
      	(nautilus_icon_container_theme_changed),
      	(nautilus_icon_container_set_font_size_table):
      	* libnautilus-extensions/nautilus-icon-container.h:
      	* libnautilus-extensions/nautilus-icon-private.h:
      	Dont translate the font names.  Rename the font size table to
      	better reflect its purpose.  Use signed integers for font sizes.
      
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(embedded_text_font_changed_callback), (embedded_text_font_free),
      	(embed_text):
      	Keep track of changes in the smooth font used for embedded text so
      	that the icon text previews will update as needed.
      
      	* libnautilus-extensions/nautilus-preferences-box.c:
      	(nautilus_preferences_box_find_pane):
      	* libnautilus-extensions/nautilus-preferences-box.h:
      	New function to find a named pane.
      
      	* libnautilus-extensions/nautilus-preferences-group.c:
      	(preferences_group_align_captions),
      	(nautilus_preferences_group_update),
      	(nautilus_preferences_group_get_title_label):
      	* libnautilus-extensions/nautilus-preferences-group.h:
      	Add support for aligning captions.
      
      	* libnautilus-extensions/nautilus-preferences-item.c:
      	(nautilus_preferences_item_initialize),
      	(preferences_item_construct), (preferences_item_update_enum),
      	(preferences_item_create_enum),
      	(preferences_item_update_short_enum),
      	(preferences_item_create_short_enum),
      	(preferences_item_update_boolean),
      	(preferences_item_create_boolean),
      	(preferences_item_update_editable_string),
      	(preferences_item_create_editable_string),
      	(preferences_item_update_editable_integer),
      	(preferences_item_create_editable_integer),
      	(preferences_item_update_constrained_integer),
      	(preferences_item_create_constrained_integer),
      	(preferences_item_update_font), (preferences_item_create_font),
      	(preferences_item_update_smooth_font),
      	(preferences_item_create_smooth_font),
      	(nautilus_preferences_item_new),
      	(enum_radio_group_changed_callback),
      	(boolean_button_toggled_callback), (font_item_changed_callback),
      	(editable_string_changed_callback),
      	(editable_integer_changed_callback),
      	(constrained_integer_changed_callback),
      	(nautilus_preferences_item_update_displayed_value),
      	(preferences_item_update_editable_integer_settings_at_idle),
      	(nautilus_preferences_item_get_control_showing),
      	(nautilus_preferences_item_set_constrained_integer_paramaters),
      	(nautilus_preferences_item_child_is_caption),
      	(nautilus_preferences_item_get_caption_title_label_width),
      	(nautilus_preferences_item_set_caption_spacing):
      	* libnautilus-extensions/nautilus-preferences-item.h:
      	Add a new CONSTRAINED INTEGER item type.  Add support for aligning
      	captions.
      	Dont translate font names.
      
      	* libnautilus-extensions/nautilus-preferences-pane.c:
      	(nautilus_preferences_pane_add_group),
      	(nautilus_preferences_pane_add_item_to_nth_group),
      	(nautilus_preferences_pane_get_num_visible_groups),
      	(nautilus_preferences_pane_get_num_groups),
      	(nautilus_preferences_pane_find_group):
      	* libnautilus-extensions/nautilus-preferences-pane.h:
      	Add a function for finding a named group.
      
      	* libnautilus-extensions/nautilus-scalable-font.c:
      	(nautilus_scalable_font_get_default_font),
      	(nautilus_scalable_font_get_default_bold_font):
      	Dont peek preferences for the default fonts.  These are now
      	handled in nautilus-global-preferences.
      
      	* libnautilus-extensions/nautilus-smooth-text-layout.c:
      	(smooth_text_layout_line_list_new),
      	(smooth_text_layout_line_list_new_wrapped),
      	(nautilus_smooth_text_layout_new),
      	(nautilus_smooth_text_layout_set_font_size):
      	Use signed integers for font sizes.
      
      	* libnautilus-extensions/nautilus-string-picker.c:
      	(nautilus_string_picker_initialize),
      	(nautilus_string_picker_set_string_list):
      	Update for Caption superclass changes.  Dont make singleton
      	choices insensitive.
      
      	* libnautilus-extensions/nautilus-text-caption.c:
      	(nautilus_text_caption_initialize):
      	* libnautilus-extensions/nautilus-text-caption.h:
      	Update for Caption superclass changes.  Fix errors in header comments.
      
      	* src/file-manager/fm-directory-view.c:
      	(fm_directory_view_initialize), (fm_directory_view_destroy):
      	* src/file-manager/fm-directory-view.h:
      	Remove knowledge of font stuff.  The fonts for icon and list view
      	are now handled separately so each subclass will have to do its
      	own preferences listening.
      
      	* src/file-manager/fm-icon-view.c: (set_sort_criterion_by_id),
      	(font_changed_callback), (smooth_font_changed_callback),
      	(standard_font_size_changed_callback),
      	(fm_icon_view_initialize_class), (fm_icon_view_initialize),
      	(fm_icon_view_update_icon_container_font_size_table),
      	(fm_icon_view_update_icon_container_smooth_font),
      	(create_icon_container):
      	Keep track of icon view font changes.  Use deltas to compute the
      	font sizes instead of hard coded point sizes.
      
      	* src/file-manager/fm-list-view.c: (fm_list_view_initialize_class),
      	(fm_list_view_initialize), (fm_list_view_update_font),
      	(font_or_font_size_changed_callback),
      	(fm_list_view_image_display_policy_changed):
      	Keep track of list view font changes.  Use deltas to compute the
      	font sizes instead of hard coded point sizes.
      
      	* src/file-manager/nautilus-indexing-info.c:
      	(last_index_time_and_reindex_button_dialog_new),
      	(index_progress_dialog_new):
      	Dont use smooth labels mixed in with regular gtk labels.
      
      	* src/nautilus-sidebar-tabs.c:
      	(nautilus_sidebar_tabs_load_theme_data),
      	(smooth_font_changed_callback), (nautilus_sidebar_tabs_initialize),
      	(nautilus_sidebar_tabs_destroy):
      	Add macros and FIXME for hard coded font size.  NULL out the tab_font
      	when its unreffed, otherwise all hell breaks lose when user level
      	changes.  Update for default font changes.
      
      	* src/nautilus-sidebar-title.c: (smooth_font_changed_callback),
      	(nautilus_sidebar_title_initialize),
      	(nautilus_sidebar_title_destroy), (update_font):
      	Keep track of smooth font changes.  Update for default font changes.
      
      	* test/test-nautilus-font-manager.c: (font_iterator_callback):
      	* test/test-nautilus-font-picker.c: (update_font),
      	(print_selected_font_callback), (main):
      	* test/test-nautilus-label-simple.c: (use_system_font_callback),
      	(use_system_font_bold_callback), (main):
      	Update for font picker and font manager changes.
      f7170ace
  8. 26 Feb, 2001 1 commit
    • Gene Z. Ragan's avatar
      reviewed by: John Harper <jsh@eazel.com> · f24dff79
      Gene Z. Ragan authored
      2001-02-26  Gene Z. Ragan  <gzr@eazel.com>
      
      	reviewed by: John Harper <jsh@eazel.com>
      
      	Fixed bug 3898, selection in icon view extremely slow
      
      	I increased the performance of drag selection of icons in a few ways.
      	First, I avoid unneeded, repeated transforms of coordinates from
      	world coordinates to canvas coordinates.  I also cached three freqeuently
      	calculated dimensions; the icons bounds in canvas coordinates, the icons
      	text bounds and canvas coordinates and the bounding rect of all emblems
      	in canvas coordinates.  Instead of repeatedly calculating these values,
      	have functions refer to the cached values.  In hit_test, I then do a
      	quick intersection check of the drag rect with the cached values before
      	proceeding to the more expensive intersection detection routines.
      
      	* libnautilus-extensions/nautilus-icon-canvas-item.c:
      	* libnautilus-extensions/nautilus-icon-canvas-item.h:
      	(nautilus_icon_canvas_item_set_image), (compute_text_rectangle),
      	(nautilus_icon_canvas_item_draw),
      	(nautilus_icon_canvas_item_render),
      	(nautilus_icon_canvas_item_bounds), (get_icon_canvas_rectangle),
      	Set up the various places that we need to update our cached items.
      
      	(nautilus_icon_canvas_item_update_bounds):
      	Update our cached values.
      
      	(hit_test), (hit_test_stretch_handle):
      	Perform quick interesection checks before doing more expensive checks.
      
      	(nautilus_icon_canvas_item_hit_test_rectangle):
      	Change function to use canvas coordinates. The caller is responsible
      	to do the conversion form world to canvas. This provides a large
      	optimization if this routine is caled in a loop.
      
      	* libnautilus-extensions/nautilus-icon-container.c:
      	* libnautilus-extensions/nautilus-icon-container.h:
      	(rubberband_select):
      	Do transform of drag rect from world coordiantes to canvas canvas
      	coordinates onlty once. There is no need to do this for every canvas
      	item that is visted during list traversal.
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(nautilus_icon_container_item_at):
      	Call nautilus_icon_canvas_item_hit_test_rectangle() using coordinate
      	converted to canvas coordinates.
      f24dff79
  9. 11 Jan, 2001 1 commit
    • Andy Hertzfeld's avatar
      fixed bug 5338, switching to and from "tighter layout" messes up icon · dfaeb7a0
      Andy Hertzfeld authored
      
      	fixed bug 5338, switching to and from "tighter layout" messes up
      	icon labels, by adding a call to invalidate an item's cached label
      	size, and making the icon canvas invalidate the items when appropriate.
      	This also fixes a similar problem when the anti-aliased mode changes.
      
      	* libnautilus-extensions/nautilus-icon-canvas-item.c:
      	(nautilus_icon_canvas_item_initialize),
      	(nautilus_icon_canvas_item_invalidate_label_size),
      	(nautilus_icon_canvas_item_set_arg):
      	renamed internal invalidation routine to make it externally accessible
      
      	* libnautilus-extensions/nautilus-icon-canvas-item.h:
      	added nautilus_icon_canvas_item_invalidate_label_size
      
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(invalidate_label_sizes),
      	(nautilus_icon_container_set_anti_aliased_mode),
      	(nautilus_icon_container_set_tighter_layout):
      	added an invalidate_label_sizes routine and called it when
      	tighter layout or the anti-aliased mode changes.
      dfaeb7a0
  10. 20 Sep, 2000 1 commit
    • Darin Adler's avatar
      Fixed bug 640 (icon cache never frees images (awaiting GdkPixbuf · 1035b5ea
      Darin Adler authored
      	fix)). Also took care of bug 3145 (zillions of 'main_loops !=
      	NULL' assertion failures when quitting) and bug 3138 (Some code in
      	the icon factory is cut and pasted from elsewhere). And a few
      	unrelated things that came up while I was busy working on these.
      
      	* configure.in: Applied patch from Dan Winship to fix handling of
      	CFLAGS and LDFLAGS. Fixes some missing quoting and other mistakes.
      
      	* libnautilus-extensions/Makefile.am:
      	* libnautilus-extensions/nautilus-icon-factory-private.h:
      	* libnautilus-extensions/nautilus-thumbnails.c:
      	* libnautilus-extensions/nautilus-thumbnails.h:
      	Broke out the thumbnailing code into its own source file for
      	clarity.
      
      	* libnautilus-extensions/nautilus-directory.c:
      	* libnautilus-extensions/nautilus-file-utilities.h:
      	* libnautilus-extensions/nautilus-file-utilities.c:
      	(nautilus_make_directory_and_parents):
      	Moved nautilus_make_directory_and_parents into a place where the
      	thumbnail code can share it instead of requiring its own copy.
      
      	* libnautilus-extensions/nautilus-global-preferences.h:
      	* libnautilus-extensions/nautilus-global-preferences.c:
      	(destroy_global_prefs_dialog), (global_preferences_get_dialog),
      	(nautilus_global_preferences_dialog_update),
      	(nautilus_global_preferences_initialize):
      	* libnautilus-extensions/nautilus-preferences.h:
      	* libnautilus-extensions/nautilus-preferences.c:
      	(preferences_initialize_if_needed), (preferences_shutdown):
      	* src/nautilus-application.c: (nautilus_application_destroy):
      	Changed code so that it cleans up with g_atexit instead of with an
      	explicit shutdown call. This makes it sequence correctly with
      	other atexit code.
      
      	* libnautilus-extensions/nautilus-icon-canvas-item.h:
      	* libnautilus-extensions/nautilus-icon-canvas-item.c:
      	(nautilus_icon_canvas_item_destroy),
      	(nautilus_icon_canvas_item_set_attach_points),
      	(emblem_layout_next):
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(nautilus_icon_container_update_icon):
      	Added a Nautilus prefix to the EmblemAttachPoints typedef, since
      	it's public.
      
      	* libnautilus-extensions/nautilus-icon-factory.h:
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	Changed the icon factory structure so that it will actually free
      	pixbufs when done with them. Made some other small fixes to the
      	icon factory in passing, including removing some redundant code
      	and fixing the logic for getting custom icons and deleting the
      	icon factory and g_atexit time.
      
      	* src/file-manager/fm-icon-view.c: (play_file), (preview_sound):
      	Restructured the logic for playing sound previews a little to get
      	rid of compiler warnings and close some loopholes in the old code.
      
      	* src/nautilus-main.c: (is_event_loop_needed),
      	(quit_if_in_main_loop), (nautilus_gtk_main_quit_all),
      	(event_loop_unregister), (nautilus_main_event_loop_register),
      	(nautilus_main_is_event_loop_mainstay),
      	(nautilus_main_event_loop_quit), (main): Fixed the main loop
      	quitting logic so that it is a bit simpler and works with the
      	gnome-vfs code that runs event handling after the last main loop
      	is gone.
      1035b5ea
  11. 06 Sep, 2000 1 commit
    • Ramiro Estrugo's avatar
      Add arguments and setter functions to set the font and font size in smooth · cb9b641a
      Ramiro Estrugo authored
      	* libnautilus-extensions/nautilus-icon-canvas-item.c:
      	(nautilus_icon_canvas_item_initialize_class),
      	(nautilus_icon_canvas_item_initialize),
      	(nautilus_icon_canvas_item_destroy),
      	(nautilus_icon_canvas_item_set_arg),
      	(nautilus_icon_canvas_item_get_arg), (icon_canvas_item_is_smooth),
      	(nautilus_icon_canvas_item_get_max_text_width),
      	(nautilus_icon_canvas_item_set_smooth_font),
      	(nautilus_icon_canvas_item_set_smooth_font_size):
      	* libnautilus-extensions/nautilus-icon-canvas-item.h:
      	Add arguments and setter functions to set the font and font size
      	in smooth mode.  Also added a function to determine whether we are
      	in smooth mode or not.
      cb9b641a
  12. 02 Aug, 2000 1 commit
  13. 23 Jun, 2000 1 commit
    • Darin Adler's avatar
      Some icon layout fixes. · e4ad959a
      Darin Adler authored
      	* libnautilus-extensions/nautilus-icon-canvas-item.h:
      	* libnautilus-extensions/nautilus-icon-canvas-item.c: (map_pixbuf),
      	(draw_label_text_aa), (nautilus_icon_canvas_item_render),
      	(nautilus_icon_canvas_item_event),
      	(nautilus_icon_canvas_item_hit_test_stretch_handles),
      	(nautilus_icon_canvas_item_get_max_text_width):
      	Added comments and FIXMEs and fixed formatting. Removed unused
      	functions and changed all the functions to return values in world
      	coordinates rather than doing some in canvas coordinates.
      
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(nautilus_gtk_adjustment_set_value): Added a function that clamps
      	to the scroll bar range. The original in Gtk allows scrolling past
      	the end of where the scroll bar does.
      	(scroll): Call the new function. This fixes the "auto-scroll past
      	edge of the screen" problem.
      	(reveal_icon): Use the new function even though it shouldn't matter
      	here.
      	(set_scroll_region): Add some padding on the left and right and
      	fix some of the math. Also use the new function to clamp the value
      	instead of trying to do it by hand here. I think this fixes the
      	dancing icon problem.
      	(get_icon_space_width), (lay_down_one_line), (relayout): Wrote new
      	layout code that works more simply and is closer to the layout we
      	want. This fixes a few bugs, but for now it's only for auto layout
      	-- I still need to fix manual layout.
      	(nautilus_icon_container_update_icon): Made the maximum size for
      	icons take the X and Y scale factors into account too. Now we
      	probably need maximum scale factors, but without this stretching
      	was quite broken.
      	(nautilus_icon_container_start_renaming_selected_item): Simplified
      	some of the renaming code to require a bit less from the canvas
      	item.
      	(nautilus_icon_container_emit_preview_signal): Let booleans be
      	booleans.
      
      	* libnautilus-extensions/nautilus-icon-container.h:
      	* libnautilus-extensions/nautilus-icon-private.h:
      	Moved nautilus_icon_container_set_anti_aliased_mode into the
      	private header.
      e4ad959a
  14. 05 May, 2000 1 commit
    • Darin Adler's avatar
      Moved the "embedded text" feature into the icon factory and · 33910528
      Darin Adler authored
      	NautilusFile.
      
      	* libnautilus-extensions/nautilus-directory-private.h:
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(metafile_read_close), (nautilus_metafile_read_cancel),
      	(metafile_read_failed), (metafile_read_complete),
      	(metafile_read_callback), (metafile_read_some),
      	(metafile_read_open_callback), (metafile_read_start),
      	(nautilus_directory_request_read_metafile), (metafile_write_done),
      	(metafile_write_failed), (metafile_write_callback),
      	(metafile_write_create_callback), (nautilus_metafile_write_start),
      	(metafile_write), (lacks_top_left), (wants_top_left),
      	(has_problem), (select_needy_file), (count_lines),
      	(top_left_read_done), (top_left_read_failed),
      	(top_left_read_complete), (top_left_read_close),
      	(top_left_read_callback), (top_left_read_some),
      	(top_left_open_callback), (start_getting_top_lefts),
      	(state_changed):
      	Added code to read top lefts of files in the background.
      	Restructured things to accomodate this new code nicely with
      	a minimum of copy and paste (there still was plenty of copy
      	and paste so there's room for improvement).
      
      	* libnautilus-extensions/nautilus-directory.c:
      	(nautilus_directory_destroy):
      	Name changes from above required revising some asserts.
      
      	* libnautilus-extensions/nautilus-file-private.h:
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_get_top_left_text): Now it returns something
      	besides just NULL.
      	(nautilus_extract_top_left_text): Function that remembers only
      	the part of the top left text that we want to keep around.
      
      	* libnautilus-extensions/nautilus-gtk-extensions.h:
      	* libnautilus-extensions/nautilus-gtk-extensions.c:
      	(nautilus_gtk_marshal_NONE__POINTER_POINTER_POINTER),
      	(nautilus_gtk_marshal_POINTER__POINTER_INT_INT_POINTER_POINTER):
      	Needed some new marshal functions.
      
      	* libnautilus-extensions/nautilus-icon-canvas-item.h:
      	* libnautilus-extensions/nautilus-icon-canvas-item.c:
      	(nautilus_icon_canvas_item_initialize_class),
      	(nautilus_icon_canvas_item_destroy),
      	(nautilus_icon_canvas_item_set_arg),
      	(nautilus_icon_canvas_item_get_arg),
      	(nautilus_icon_canvas_item_get_image),
      	(nautilus_icon_canvas_item_set_image),
      	(nautilus_icon_canvas_item_draw):
      	Removed the old embedded text support. It came with a whole lot
      	of baggage, also removed.
      
      	* libnautilus-extensions/nautilus-icon-container.h:
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(nautilus_icon_container_update_icon): Moved pixbuf computing code
      	into the FMIconView class. We might decide later to move it back
      	again, but for now the embedded text makes it easier to do it
      	this way.
      	(nautilus_icon_container_initialize_class): Merged
      	get_icon_editable_text and get_icon_additional_text back into
      	a single signal that gets both.
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(nautilus_icon_dnd_begin_drag): Updated for change in icon factory
      	API.
      
      	* src/file-manager/fm-directory-view.c: (finish_loading_uri):
      	Ask for top-left text attribute for all directories.
      
      	* src/file-manager/fm-icon-view.c: (get_icon_images_callback):
      	Moved pixbuf computing code into the FMIconView class. We might
      	decide later to move it back again, but for now the embedded text
      	makes it easier to do it this way.
      	(get_icon_text_callback): Merged get_icon_editable_text and
      	get_icon_additional_text back into a single signal that gets both.
      33910528
  15. 22 Apr, 2000 1 commit
    • Gene Z. Ragan's avatar
      libnautilus-extensions/nautilus-icon-canvas-item.c Return value of · aa0ef3fd
      Gene Z. Ragan authored
      2000-04-21  Gene Z. Ragan  <gzr@eazel.com>
      	* libnautilus-extensions/nautilus-icon-canvas-item.c
      	* libnautilus-extensions/nautilus-icon-canvas-item.h
      	(nautilus_icon_canvas_item_get_max_text_width):
      	Return value of MAX_TEXT_WIDTH constant.  Used is positoning the rename
      	text widget.
      
      	* libnautilus-extensions/nautilus-icon-container.c
      	Added signal "icon_text_edit_occurred" called when the text rename widget
      	recieves some sort of edit, such as a keyboard entry.
      	(rename_text_dirty):  Returns boolean indicating edit state of
      	text in rename widget.  Used in undo operation.
      	(text_edited_callback):  Signal callback called when NautilusIconTextItem
      	text is edited.
      	(nautilus_icon_container_start_renaming_selected_item):  Fixed positioning
      	code to address bug #543
      	(nautilus_icon_container_undo_renaming_selected_item):  Added simple undo
      	code.  This needs to be replaced with a global undo system.
      
      	* libnautilus-extensions/nautilus-icon-text-item.c
      	(iti_paint_text):  Fixed drawing of i-beam to address bug #506
      	(iti_event): Added keyboard handling for simple undo
      	(nautilus_icon_text_item_get_margins):  Returns values of MARGIN_X and
      	MARGIN_X constants.  Used when positioning text item in canvas.
      
      	* src/file-manager/fm-directory-view.c
      	Moved menu item title constants to header file.  This is needed so
      	FMIconView can get menu position paths when placing items in the
      	bonobo and contect menus.  Renamed the constants to be specific to
      	FMDirectoryView.
      	(fm_directory_view_get_context_menu_index):  Added function to return
      	index of requested menu item.
      
      	* src/file-manager/fm-icon-view.c
      	(fm_icon_view_icon_text_edit_callback):  Callback that connect to
      	NautilusIconContainer signal.
      	(undo_rename_icon_callback): Added simple undo functionality.
      	(insert_one_context_menu_item): Added function to insert context menu
      	add a specific index.
      	Fixed bug #499, Rename menu in bad place in context menu.
      aa0ef3fd
  16. 19 Apr, 2000 1 commit
    • Gene Z. Ragan's avatar
      *libnautilus-extensions/nautilus-icon-canvas-item.c · da18a3bb
      Gene Z. Ragan authored
      
      2000-04-18  Gene Z. Ragan <gzr@eazel.com>
      
      	*libnautilus-extensions/nautilus-icon-canvas-item.c
      	*libnautilus-extensions/nautilus-icon-canvas-item.h
      	Renamed several public functions to use proper nomenclature.
      	An example would be changing nautilus_icon_canvas_get_editable_text_bounds
      	to nautilus_icon_canvas_item_get_editable_text_bounds.  A few of
      	these misnaming were in my last submission.
      
      	*libnautilus-extensions/nautilus-icon-container.c
      	*libnautilus-extensions/nautilus-icon-container.h
      	Renamed nautilus_icon_container_show_rename_widget to
      	nautilus_icon_container_start_renaming_selected_item
      
      	*libnautilus-extensions/nautilus-icon-text-item.c
      	Fixed the following bugs:
      	487 Trying to rename an icon to empty string should revert to original
      	498 Renaming text field looks silly when empty
      	500 text-editng box too narrow when renaming files with short names
      	508 Icon text appears and disappears incorrectly when zooming
      da18a3bb
  17. 18 Apr, 2000 1 commit
    • Darin Adler's avatar
      Added commands for Auto vs. Manual layout, but the guts behind · 6a3930e9
      Darin Adler authored
      	them is not yet implemented.
      
      	Did some cleanup on the new renaming code.
      
      	* nautilus-glib-extensions.c:
      	* nautilus-glib-extensions.h:
      	Added nautilus_g_list_exactly_one_item and
      	nautilus_g_list_more_than_one_item. These are more-efficient
      	versions of g_list_length (x) == 1 and g_list_length (x) > 1.
      
      	* nautilus-icon-canvas-item.c:
      	(draw_or_measure_label_text): Add a line break between the
      	editable text and the additional text.
      	(nautilus_icon_canvas_get_text_bounds),
      	(nautilus_icon_canvas_get_editable_text_bounds),
      	(nautilus_icon_canvas_get_editable_text),
      	(nautilus_icon_canvas_set_renaming):
      	Replaced g_assert with g_return_if_fail calls, and added the
      	complete set of g_return_if_fail.
      	(nautilus_icon_canvas_set_renaming): Don't update the item
      	unless the renaming state has actually changed.
      
      	* nautilus-icon-canvas-item.h: Fixed formatting.
      
      	* nautilus-icon-container.c:
      	* nautilus-icon-container.h:
      	Added nautilus_icon_container_set_auto_layout and
      	nautilus_icon_container_is_auto_layout. For now they are
      	placeholders that just modify a boolean.
      
      	* nautilus-icon-private.h:
      	Added the auto_layout boolean.
      
      	* nautilus-icon-text-item.c:
      	* nautilus-icon-text-item.h:
      	Just some formatting and other minor cleanup.
      
      	* nautilus-metadata.h:
      	Added NAUTILUS_METADATA_KEY_ICON_VIEW_AUTO_LAYOUT.
      
      	* nautilus-location-bar.c (drag_data_received_cb): Use the new
      	nautilus_g_list_more_than_one_item function.
      
      	* fm-directory-view.c (bonobo_menu_open_cb), (open_cb): Use the
      	new nautilus_g_list_exactly_one_item.
      
      	* fm-icon-text-window.c (attribute_names_string_is_good),
      	(set_preference_string), (synch_menus_with_preference),
      	(preference_changed_callback),
      	(changed_attributes_option_menu_cb): Got rid of the hard-coded
      	first item "name" which is no longer needed.  Also changed to
      	handle bad data in the preferences.
      
      	* fm-icon-view.c (fm_icon_view_initialize_class): Updated since
      	there's no "name" item needed any more.
      	(fm_icon_view_compute_menu_item_info): Merged MENU_PATH_RENAME
      	with MENU_RENAME_TEXT and simplified the logic.
      	(fm_icon_view_append_selection_context_menu_items): Merged
      	MENU_PATH_RENAME with MENU_RENAME_TEXT.
      	(update_layout_menus), (auto_layout_callback),
      	(manual_layout_callback), (fm_icon_view_merge_menus): Added menu
      	items for auto layout and for manual layout.
      	(fm_icon_view_begin_loading): Load setting for auto layout from
      	metadata.
      	(fm_icon_view_get_icon_text_attribute_names): Changed to get rid
      	of the "name" first item from the list of text attributes.
      	(get_icon_editable_text_callback): Simplified since the editable text
      	is always the icon name. Also got rid of copied and pasted code that's
      	no longer needed for this case.
      	(get_icon_additional_text_callback): Got rid of special case for name,
      	since the name is no longer treated as an attribute.
      6a3930e9
  18. 17 Apr, 2000 1 commit
    • Gene Z. Ragan's avatar
      Added functionality to allow files to be renamed in icov view. This · e1827af4
      Gene Z. Ragan authored
      
      
      2000-04-18  Gene Z. Ragan <gzr@eazel.com>
      	Added functionality to allow files to be renamed in icov view.  This feature is
      	available by either context click on the icon or selecting a single file and 			choosing "Rename" form the File menu.
      
      	* libnautilus-extensions/nautilus-icon-text-item.c
      	* libnautilus-extensions/nautilus-icon-text-item.h: New files.
      	This is an editable icon text item used in the renaming feature.
      	It is based on GnomeIconTextItem but modified to fix bugs in the
      	original code and add extended functionality need by nautilus.  If
      	thse changes were rolled into the current GnomeIconTextItem, it would
      	break gmc.
      
      	* libnautilus-extensions/Makefile.am
      	Modified file so that the two new files listed above would properly
      	be included in generated makefiles.
      
      	* libnautilus-extensions/nautilus-icon-canvas-item.c
      	Split text class variable into two variables, editable_text and
      	additonal_text.  editable_text refers to attributes that the user can change
      	via rename in place.  additional_text is any other text that the user cannot
      	edit via the rename in place feature.  Added a boolean flag, is_renaming, to
      	check against during various operations that effect the renaming feature.
      	Removed ARG_TEXT argument ID and replaced with ARG_EDITABLE_TEXT and
      	ARG_ADDITIONAL_TEXT.
      	(nautilus_icon_canvas_item_initialize_class):  Function now check for both
      	ARG_EDITABLE_TEXT and ARG_ADDITIONAL_TEXT.  Removed check for ARG_TEXT.
      	(nautilus_icon_canvas_item_destroy):  Both editable_text and
      	additonal_text are freed.
      	(nautilus_icon_canvas_item_set_arg):  Removed ARG_TEXT and added
      	handling of ARG_EDITABLE_TEXT and ARG_ADDITIONAL_TEXT.
      	(nautilus_icon_canvas_item_get_arg): Removed ARG_TEXT and added
      	handling of ARG_EDITABLE_TEXT and ARG_ADDITIONAL_TEXT.
      	(draw_or_measure_label_text):  Modified function to not draw the label
      	icon text if we are renaming in place.
      	(draw_or_measure_label_text):  Function now combines editable and additional
      	text when performing the measuring operation.
      	(compute_editable_text_rectangle):  Added function to compute bounds of
      	editable text.  This is used to determine size and placement of editable
      	text item when in renaming mode.
      	(nautilus_icon_canvas_get_text_bounds):  Public API to get bounds of
      	icon label text.
      	(nautilus_icon_canvas_get_editable_text_bounds): Public API to get bounds of
      	editable icon label text.
      	(hit_test_pixbuf): Added check against is_renaming flag.
      	(nautilus_icon_canvas_get_editable_text):  Public API to get editable text string.
      	(nautilus_icon_canvas_item_set_renaming):  Public API to toggle is_renaming flag.
      
      	* libnautilus-extensions/nautilus-icon-canvas-item.h
      	Added public API prototypes to functions described above.
      
      	* libnautilus-extensions/nautilus-icon-container.c
      	Added GET_ICON_EDITABLE_TEXT and GET_ICON_ADDITONAL_TEXT signals.
      	Removed GET_ICON_TEXT signal.  Added ICON_TEXT_CHANGED signal.
      	(icon_toggle_selected):  Renaming mode is now exited when a selection/deselection occurs.
      	(key_press_event):  GDK_Return ends rename mode and attempts to accept modification.  GDK_Escpae
      	ends rename mode and reverts modification to original.
      	(nautilus_icon_container_initialize_class):  icon_text_changed, get_icon_editable_text and
      	get_icon_additional_text signals are registered.
      	(editing_started): New function.  Called when an edit begins.  Inits class member variables
      	for edit mode.
      	(editing_stopped): New function.  Called when edit ends.  Cleans up edit mode.
      	(nautilus_icon_container_initialize): rename_widget and original_text private variables
      	are set to NULL.
      	(icon_toggle_selected):  Added call to end_renaming_mode.
      	(nautilus_icon_container_update_icon):  Added emitting of GET_ICON_EDITABLE_TEXT and
      	GET_ICON_ADDITIONAL_TEXT signals.  Updated gnome_canvas_item_set to use new arguments defined
      	in nautilus-icon-text-item.
      	(nautilus_icon_container_show_rename_widget):  New function.  Creates and displays renaming_widget.
      	Creates cached copy of original editable text for later compare, connects signals and enters
      	renaming mode.
      	(end_renaming_mode): New function.  Cleans up and end renaiming mode.
      	(hide_rename_widget):  Called by end_renaming_mode to hide and free renaming_widget.
      
      	* libnautilus-extensions/nautilus-icon-container.h
      	Added prototypes for public functions described above.
      
      	* libnautilus-extensions/nautilus-icon-private.h
      	Added boolean for renaming.  Added a NautilusIconTextItem variable for the renaiming widget.
      
      	* src/file-manager/fm-icon-view.c
      	Added defines MENU_PATH_RENAME. Added a char * to hold original editable text for a later compare.
      	Removed get_icon_text_callback and added get_icon_editable_text_callback and
      	get_icon_additonal_text_callback.  These return the editable and additonal text of the icon view.
      	(rename_icon_callback):  Added callback that attempts to rename the NautilusFile the icon view
      	represents.  Action in not taken if there has been no change to the editable text.  If the operation
      	fails, the user is notified.
      	(fm_icon_view_append_selection_context_menu_items):  Added Rename menu item.
      	(append_bonobo_menu_item):  Added Rename menu item and callback.
      	(update_bonobo_menu_item):  Added senesitivity check for the Rename item.  It is
      	enabled only if a single item is selected.
      	(fm_icon_view_icon_text_changed_callback):  Added function to attempt to change the filename
      	to the new text.  Notify user if operation fails.
      	(get_icon_editable_text_callback): This callback returns the text items that areeditable by
      	the user using the "Rename" command.  In the case of FMIconView, this
      	would be the attribute with the name "name".
      	(get_icon_additional_text_callback): This callback returns the text items that are not
      	editable by the user using the "Rename" command.
      e1827af4
  19. 14 Apr, 2000 1 commit
    • Darin Adler's avatar
      Fixed a bug my changes to GNOME VFS exposed. The callback couldn't handle · 74748cdc
      Darin Adler authored
      	* components/html/ntl-web-browser.c: (browser_vfs_read_callback):
      	Fixed a bug my changes to GNOME VFS exposed. The callback couldn't
      	handle a "bytes_read" of 0.
      
      	* libnautilus/nautilus-directory-private.h:
      	* libnautilus/nautilus-directory.c:
      	* libnautilus/nautilus-directory.h:
      	* src/file-manager/fm-directory-view.c:
      	Added a new interface for monitoring files and directories.
      	Also fixed the self-check code that was failing since the
      	async. changes.
      
      	* libnautilus/nautilus-file.h:
      	Added the interface for monitoring single files, but it isn't
      	implemented yet.
      
      	* libnautilus/nautilus-icon-canvas-item.c:
      	* libnautilus/nautilus-icon-canvas-item.h:
      	* libnautilus/nautilus-icon-container.c:
      	* libnautilus/nautilus-icon-container.h:
      	* libnautilus/nautilus-icon-dnd.c:
      	* libnautilus/nautilus-icon-dnd.h:
      	* libnautilus/nautilus-icon-private.h:
      	Restructured Andy's modifier changes so the canvas item doesn't
      	have to know about modifiers. This makes the canvas item private
      	again. Users of NautilusIconContainer shouldn't have to know
      	about the canvas item.
      
      	* src/file-manager/fm-icon-view.c:
      	Reformatting.
      74748cdc
  20. 12 Apr, 2000 1 commit
  21. 22 Mar, 2000 1 commit
    • Darin Adler's avatar
      Did some of the items from RENAMING. · 1764f212
      Darin Adler authored
      	* libnautilus/Makefile.am:
      	* libnautilus/gnome-icon-container-dnd.c:
      	* libnautilus/gnome-icon-container-dnd.h:
      	* libnautilus/gnome-icon-container-grid.c:
      	* libnautilus/gnome-icon-container-grid.h:
      	* libnautilus/gnome-icon-container-private.h:
      	* libnautilus/gnome-icon-container.c:
      	* libnautilus/gnome-icon-container.h:
      	* libnautilus/gtkflist.c:
      	* libnautilus/gtkflist.h:
      	* libnautilus/nautilus-icon-canvas-item.c:
      	* libnautilus/nautilus-icon-canvas-item.h:
      	* libnautilus/nautilus-icon-container.c:
      	* libnautilus/nautilus-icon-container.h:
      	* libnautilus/nautilus-icon-dnd.c:
      	* libnautilus/nautilus-icon-dnd.h:
      	* libnautilus/nautilus-icon-grid.c:
      	* libnautilus/nautilus-icon-grid.h:
      	* libnautilus/nautilus-icon-private.h:
      	* libnautilus/nautilus-icons-view-icon-item.c:
      	* libnautilus/nautilus-icons-view-icon-item.h:
      	* libnautilus/nautilus-lib-self-check-functions.h:
      	* libnautilus/nautilus-list-column-title.c:
      	* libnautilus/nautilus-list.c:
      	* libnautilus/nautilus-list.h:
      	* src/file-manager/Makefile.am:
      	* src/file-manager/fm-directory-view-icons.c:
      	* src/file-manager/fm-directory-view-icons.h:
      	* src/file-manager/fm-directory-view-list.c:
      	* src/file-manager/fm-directory-view-list.h:
      	* src/file-manager/fm-icon-view.c:
      	* src/file-manager/fm-icon-view.h:
      	* src/file-manager/fm-list-view.c:
      	* src/file-manager/fm-list-view.h:
      	* src/ntl-app.c:
      	Did these RENAMING entries:
      	  FMDirectoryViewIcons -> FMIconView
      	  FMDirectoryViewList  -> FMListView
      	  GnomeIconContainer -> NautilusIconContainer
      	  GnomeIconContainerIcon -> NautilusIcon
      	  NautilusIconsViewIconItem -> NautilusIconCanvasItem
      
      	* RENAMING: Marked the renaming done.
      1764f212