Commit graph

148 commits

Author SHA1 Message Date
Federico Mena Quintero
452167e8fa New file with a little torture test. It does a bunch of file operations on
2006-10-19  Federico Mena Quintero  <federico@novell.com>

	* test/file-torture.py: New file with a little torture test.  It
	does a bunch of file operations on a directory.  Nautilus
	sometimes crashes when viewing that directory, so this should help
	us find bugs.
2006-10-19 16:46:53 +00:00
Martin Wehner
63b8582c8e Fix C99-style variable initialization. Patch from Jens Granseuer
2006-01-26  Martin Wehner  <martin.wehner@gmail.com>

	* test/test-nautilus-directory-async.c: (main):
	Fix C99-style variable initialization.
	Patch from Jens Granseuer <jensgr@gmx.net>
2006-01-26 22:04:20 +00:00
Alexander Larsson
671e4bdaa4 --- Merged the nautilus-search2 branch --- 2005-12-12 16:59:19 +00:00
James Henstridge
61694af05c don't define GNOMELOCALEDIR in INCLUDES.
2004-01-11  James Henstridge  <james@jamesh.id.au>

	* test/Makefile.am: don't define GNOMELOCALEDIR in INCLUDES.

	* src/Makefile.am: remove desktop and server files on clean.
	Don't include GNOMELOCALEDIR in INCLUDES, since it is now defined
	in config.h.

	* Makefile.am: remove desktop files on clean, and intltool files
	on distclean.

	* acconfig.h: remove, since it isn't needed anymore.

	* configure.in: remove some macro calls not needed with newer
	automakes, and use newer versions of some macros.

	* autogen.sh: require Automake >= 1.7.
2005-01-11 09:39:27 +00:00
Alexander Larsson
67e2a42fea Merge bonobo-slay-branch
2004-11-22  Alexander Larsson  <alexl@redhat.com>
        * Merge bonobo-slay-branch
2004-11-22 15:24:38 +00:00
Dave Camp
eb6a30500d Merged the nautilus-new-mime branch.
2004-07-21  Dave Camp  <dave@novell.com>

	* Merged the nautilus-new-mime branch.
2004-07-22 03:57:44 +00:00
Alexander Larsson
5849070a30 Remove eel-string-picker.h
2004-01-06  Alexander Larsson <alexl@redhat.com>

	* test/test.h:
	Remove eel-string-picker.h
2004-01-06 07:48:32 +00:00
Anders Carlsson
9ade106bfd Remove use of EelGenerousBin, we can use a GtkBox with only one child for
2004-01-03  Anders Carlsson  <andersca@gnome.org>

	* components/adapter/nautilus-adapter.c: (nautilus_adapter_new):
	* src/nautilus-navigation-bar.c:
	* src/nautilus-navigation-bar.h:
	* src/nautilus-navigation-window.c:
	* src/nautilus-spatial-window.c:
	(nautilus_spatial_window_instance_init):
	* src/nautilus-view-frame.c:
	* src/nautilus-view-frame.h:
	* src/nautilus-window.c:
	Remove use of EelGenerousBin, we can use a GtkBox with only one
	child for that instead.

	* test/Makefile.am:
	Don't use Eel stuff that no-one else uses.
2004-01-03 18:34:46 +00:00
Alexander Larsson
3e0d21df23 AIX port from Laurent.Vivier@bull.net (Laurent Vivier)
2003-04-23  Alexander Larsson  <alexl@redhat.com>

        AIX port from Laurent.Vivier@bull.net (Laurent Vivier)

	* configure.in:
	Look for popt and some aix headers

	* components/hardware/Nautilus_View_hardware.server.in.in:
	Fix up LIBEXECDIR reference

	* components/history/nautilus-history-view.c:
	* components/notes/nautilus-notes.c:
	* components/throbber/nautilus-throbber.c:
	* libnautilus-private/nautilus-icon-canvas-item.c:
	* libnautilus-private/nautilus-icon-container.c:
	* libnautilus-private/nautilus-icon-dnd.c:
	* libnautilus-private/nautilus-program-chooser.c:
	* libnautilus-private/nautilus-volume-monitor.h:
	* src/nautilus-applicable-views.h:
	* src/nautilus-property-browser.c:
	* src/nautilus-sidebar-title.c:
	* src/file-manager/fm-directory-view.c:
	* test/test-nautilus-preferences-change.c: (main):
	* test/test.c: (test_quit):
	Fix c++ comments and commas at end of enums.
	Move math.h includes to top.

	* data/Makefile.am:
	Remove duplicate definitions

	* libnautilus-adapter/Makefile.am:
	* libnautilus-private/Makefile.am:
	* libnautilus/Makefile.am:
	Add correct libs

	* libnautilus-private/nautilus-file-private.h:
	Bitfields can't be enums.

	* libnautilus-private/nautilus-volume-monitor.c:
	Implement AIX support.

	* src/Makefile.am:
	Add POPT_FLAGS
2003-04-23 09:50:03 +00:00
Alexander Larsson
4e04c0a008 Convert file attributes from list of strings to a bitmask. Patch from
2003-04-02  Alexander Larsson  <alexl@redhat.com>

	* components/notes/nautilus-notes.c:
	* components/tree/nautilus-tree-model.c:
	* components/tree/nautilus-tree-view.c:
	* libnautilus-private/nautilus-directory-async.c:
	* libnautilus-private/nautilus-directory-background.c:
	* libnautilus-private/nautilus-directory-private.h:
	* libnautilus-private/nautilus-directory.c:
	* libnautilus-private/nautilus-directory.h:
	* libnautilus-private/nautilus-file-attributes.h:
	* libnautilus-private/nautilus-file-private.h:
	* libnautilus-private/nautilus-file.c: (rename_callback),
	* libnautilus-private/nautilus-file.h:
	* libnautilus-private/nautilus-icon-factory.c:
	* libnautilus-private/nautilus-icon-factory.h:
	* libnautilus-private/nautilus-link.c:
	* libnautilus-private/nautilus-merged-directory.c:
	* libnautilus-private/nautilus-mime-actions.c:
	* libnautilus-private/nautilus-mime-actions.h:
	* libnautilus-private/nautilus-program-choosing.c:
	* libnautilus-private/nautilus-trash-file.c:
	* libnautilus-private/nautilus-trash-monitor.c:
	* libnautilus-private/nautilus-vfs-directory.c:
	* libnautilus-private/nautilus-vfs-file.c:
	* src/file-manager/fm-directory-view.c:
	* src/file-manager/fm-icon-container.c:
	* src/file-manager/fm-properties-window.c:
	* src/nautilus-applicable-views.c:
	* src/nautilus-information-panel.c:
	* src/nautilus-sidebar-title.c:
	* src/nautilus-window-manage-views.c:
	* src/nautilus-window.c:
	* test/test-nautilus-mime-actions-set.c:
	* test/test-nautilus-mime-actions.c:

	Convert file attributes from list of strings to a bitmask.
	Patch from andersca@codefactory.se.
2003-04-02 11:51:14 +00:00
Dave Camp
f8b8fe558a Removed property widget tests.
2002-11-05  Dave Camp  <dave@ximian.com>

	* test/Makefile.am:
	* test/test.c:
	* test/test.h: Removed property widget tests.
2002-11-06 01:32:10 +00:00
Damon Chaplin
4bef8eb8b6 use $(prefix)/${DATADIRNAME}/locale rather than $(datadir)/locale so it
2002-06-12  Damon Chaplin  <damon@ximian.com>

	* test/Makefile.am (INCLUDES):
	* src/Makefile.am (INCLUDES):
	* components/tree/Makefile.am (INCLUDES):
	* components/throbber/Makefile.am (INCLUDES):
	* components/text/Makefile.am (INCLUDES):
	* components/notes/Makefile.am (INCLUDES):
	* components/news/Makefile.am (INCLUDES):
	* components/music/Makefile.am (INCLUDES):
	* components/history/Makefile.am (INCLUDES):
	* components/hardware/Makefile.am (INCLUDES): use
	$(prefix)/${DATADIRNAME}/locale rather than $(datadir)/locale so
	it works on Solaris. Fixes bug #83636.
2002-06-12 18:18:40 +00:00
Darin Adler
136742e4ef Because lots of recent bugs were due to "signal handler called after
* Tons of files:
	Because lots of recent bugs were due to "signal handler called after
	object gone" problems, switched many calls of g_signal_connect and
	g_signal_connect_swapped to use g_signal_connect_object instead.
	Also did other signal-related cleanup and changed some destroys to
	finalizes.

	* libnautilus/nautilus-view-standard-main.h:
	We no longer need to include nautilus-view.h in here. So include it
	in the files that use this instead.

	Did merges from stable branch:

	2001-10-25  Darin Adler  <darin@bentspoon.com>

        * libnautilus-private/nautilus-directory.c:
        (call_files_changed_common), (call_files_changed_free_list),
        (call_files_changed_unref_free_list),
        (nautilus_directory_notify_files_changed): Move call to
        nautilus_directory_add_file_to_work_queue into a better
        bottleneck; now it catches all the notify cases, not just changed.
        Also tell it to re-get top-left text and link info too when we get
        a changed notice.

        * src/file-manager/fm-directory-view.c: (queue_pending_files):
        Don't use the timeout (and the hysteresis) when queuing files once
        the initial directory load is complete. Doing this was causing
        delays processing changes that came in later, which we don't want.

        * src/nautilus-sidebar-title.c: (item_count_ready), (monitor_add),
	(update_all), (nautilus_sidebar_title_set_file): Monitor the
	directory count once we get it the first time. This makes sure
	that changes in the directory count get reflected in the sidebar
	without creating a race with the main view to see who calculates
	it first.

	2001-10-25  Alex Larsson  <alexl@redhat.com>

        * libnautilus-private/nautilus-directory.c
	(nautilus_directory_notify_files_changed): Call
	nautilus_directory_add_file_to_work_queue() when file_info is
	invalidated.  Otherwise it will not be read again.
2002-03-07 19:36:18 +00:00
Darin Adler
3035a35267 Just release, don't unref. (get_metafile): Don't keep a ref. Also fix
* libnautilus-private/nautilus-directory-metafile.c:
        (free_factory): Just release, don't unref.
        (get_metafile): Don't keep a ref. Also fix CORBA objref leak.

        * libnautilus-private/nautilus-icon-factory.c:
        (get_icon_from_cache):

        * libnautilus-private/nautilus-metafile-factory.c:
        (nautilus_metafile_factory_get_instance): Return the same
        instance each time, don't ref, since lifetime is not managed
        by ref counting.

        * libnautilus/nautilus-clipboard.c:
        (initialize_clipboard_component_with_callback_data):
        Get rid of BonoboUIComponent leak.

        * src/nautilus-application.c: Formatting tweaks.
        * libnautilus-private/nautilus-bookmark.c: Minor cleanup.

        * test/Makefile.am:
        * test/test-nautilus-async-activation.c: Remove.
2002-02-27 18:05:45 +00:00
Darin Adler
0ba9c077fd Remove smooth mode and unused font and font size machinery.
* components/tree/nautilus-tree-view.c: (create_tree),
	(nautilus_tree_view_destroy):
	* libnautilus-private/nautilus-directory.c:
	(add_preferences_callbacks):
	* libnautilus-private/nautilus-global-preferences.c:
	* libnautilus-private/nautilus-global-preferences.h:
	* libnautilus-private/nautilus-icon-canvas-item.c:
	(measure_label_text), (nautilus_icon_canvas_item_render),
	(nautilus_icon_canvas_item_set_show_stretch_handles):
	* libnautilus-private/nautilus-icon-container.c:
	(start_rubberbanding), (finalize), (nautilus_icon_container_init),
	(nautilus_icon_container_update_icon),
	(nautilus_icon_container_theme_changed):
	* libnautilus-private/nautilus-icon-container.h:
	* libnautilus-private/nautilus-icon-private.h:
	* src/file-manager/fm-directory-view.c: (fm_directory_view_init),
	(fm_directory_view_finalize):
	* src/file-manager/fm-directory-view.h:
	* src/file-manager/fm-icon-view.c:
	(fm_icon_view_update_icon_container_font_size_table),
	(create_icon_container), (fm_icon_view_class_init):
	Remove smooth mode and unused font and font size machinery.

	* test/.cvsignore: Remove test-nautilus-smooth-graphics.
	* test/Makefile.am: Remove test-nautilus-smooth-graphics.
	* test/test-nautilus-smooth-graphics.c: Remove.

	* src/nautilus-preferences-dialog.c:
	(dialog_delete_event_callback), (dialog_button_response_callback),
	(preferences_dialog_create): Fix bug where we'd lose the
	preferences dialog if you closed it with a delete_event.
2002-01-29 19:21:59 +00:00
Darin Adler
c66ad8c74e Remove. Remove. Remove. Remove. Remove.
* check-signals.pl: Remove.
	* components/adapter/bonobo-stream-vfs.c: Remove.
	* components/adapter/bonobo-stream-vfs.h: Remove.
	* components/adapter/nautilus-adapter-progressive-load-strategy.c: Remove.
	* components/adapter/nautilus-adapter-progressive-load-strategy.h: Remove.

	* components/adapter/Makefile.am:
	* components/hardware/Makefile.am:
	* components/history/Makefile.am:
	* components/image-viewer/Makefile.am:
	* components/music/Makefile.am:
	* components/news/Makefile.am:
	* components/notes/Makefile.am:
	* components/text/Makefile.am:
	* components/throbber/Makefile.am:
	* components/tree/Makefile.am:
	* libnautilus-private/Makefile.am:
	* test/Makefile.am:
	General cleanups, mostly formatting.

	* configure.in: Remove libiconv stuff, since we don't use it
	any more. Do esound stuff in the main call to pkg-config, not
	a separate set of variables.

	* components/image-viewer/nautilus-image-view.c: Remove unused
	libart includes.

	* cut-n-paste-code/widgets/gimphwrapbox/gtkwrapbox.h: Remove
	the use of "decrement" as a synonym for "remove".

	* test/test.c: Remove unused libart include.
2002-01-21 20:21:31 +00:00
Darin Adler
074ed7a01a Remove nautilus-launch-icon.png.
* Makefile.am: Remove nautilus-launch-icon.png.

	* components/hardware/nautilus-hardware-view.c: (setup_form_title),
	(setup_overview_form): Port from EelImage to GtkImage.

	* components/music/nautilus-music-view.c: Remove unused include.
	* src/nautilus-theme-selector.c: Remove unused includes.

	* libnautilus-private/nautilus-bonobo-extensions.c:
	(bonobo_activation_activation_callback): Add warning message so we
	get to see the error from bonobo-activation.

	* libnautilus-private/nautilus-directory-metafile.c: (get_factory):
	* libnautilus-private/nautilus-icon-factory.c: (get_icon_factory),
	(load_icon_for_scaling), (embed_text):
	* libnautilus-private/nautilus-metafile-factory.c:
	(nautilus_metafile_factory_get_instance):
	* libnautilus-private/nautilus-theme.c:
	(nautilus_theme_get_theme_data_from_theme):
	* libnautilus-private/nautilus-trash-monitor.c:
	(nautilus_trash_monitor_get):
	* libnautilus-private/nautilus-volume-monitor.c:
	(nautilus_volume_monitor_get):
	* src/file-manager/nautilus-indexing-info.c:
	(show_indexing_info_dialog):
	* src/nautilus-preferences-dialog.c:
	(global_preferences_get_dialog):
	* src/nautilus-window.c: (nautilus_window_class_init),
	(add_to_history_list):
	Use eel_debug_call_at_shutdown instead of g_atexit.

	* libnautilus-private/nautilus-file.c:
	(nautilus_file_get_display_name): Add G_BROKEN_FILENAMES support.

	* libnautilus-private/nautilus-global-preferences.c:
	(nautilus_global_preferences_init): Remove eel_smooth_widget code.

	* libnautilus/Makefile.am: Add missing ORBIT_IDL dependency.

	* libnautilus/nautilus-view-standard-main.c:
	(nautilus_view_standard_main_multi): Remove
	bonobo_ui_debug_shutdown for now. It does us no good unless we
	also do eel_debug_shut_down, but libnautilus can't depend on eel.

	* nautilus-launch-icon.png: Remove.

	* src/file-manager/fm-properties-window.c:
	(update_properties_window_icon),
	(fm_properties_window_drag_data_received),
	(create_image_widget_for_file): Port from EelImage to GtkImage.

	* src/nautilus-component-adapter-factory.c:
	(nautilus_component_adapter_factory_get): Use
	eel_debug_call_at_shutdown instead of g_atexit.
	(nautilus_component_adapter_factory_create_adapter): Look at
	exceptions before looking at return values from CORBA calls.

	* src/nautilus-main.c: (main): Add a call to eel_debug_shut_down.

	* src/nautilus-property-browser.c:
	(nautilus_property_browser_init), (element_clicked_callback),
	(nautilus_property_browser_update_contents): Port from EelViewport
	to GtkViewport.

	* src/nautilus-search-bar-criterion.c:
	(nautilus_search_bar_criterion_destroy),
	(nautilus_search_bar_criterion_new_from_values): Fix for change
	that made NautilusSignaller no longer a GtkObject.

	* src/nautilus-sidebar-title.c: (nautilus_sidebar_title_init),
	(update_icon), (add_emblem): Port from EelImage to GtkImage.

	* src/nautilus-signaller.h:
	* src/nautilus-signaller.c: (nautilus_signaller_get_current): Use
	eel_debug_call_at_shutdown instead of g_atexit.
	(nautilus_signaller_instance_init),
	(nautilus_signaller_class_init): Change to GObject, not GtkObject.

	* src/nautilus-window-menus.c: (get_bookmark_list): Use
	eel_debug_call_at_shutdown instead of g_atexit.
	(nautilus_window_initialize_go_menu): Fix for change that made
	NautilusSignaller no longer a GtkObject.

	* test/test-nautilus-preferences-change.c: Remove unused include.
	* test/test-nautilus-preferences-display.c: Remove unused includes.
	* test/test-nautilus-wrap-table.c: Remove unused includes.
	* test/test.c: Remove unused function.
	* test/test.h: Remove unused function.
2002-01-19 00:06:14 +00:00
Havoc Pennington
e60f2abe9f add preload of the gconf cache, to hopefully avoid a zillion round trips
2002-01-04  Havoc Pennington  <hp@pobox.com>

	* libnautilus-private/nautilus-global-preferences.c
	(nautilus_global_preferences_init): add preload of the gconf
	cache, to hopefully avoid a zillion round trips to gconfd on
	startup.

	* test/test.c (test_window_new): remove weird gtk_window_set_policy

	* test/test-nautilus-preferences-display.c: remove user level
	stuff

	* test/test-nautilus-preferences-change.c: remove user level stuff

	* libnautilus-private/nautilus-global-preferences.c: the default
	click policy was SPEED_TRADEOFF_LOCAL_ONLY, fix

	* libnautilus-private/nautilus.schemas: add schemas file,
	incomplete, needs to be finished and installed

	* libnautilus-private/nautilus-global-preferences.c: strip out
	user levels

	* src/nautilus-shell-ui.xml: strip out user level menu

	* src/nautilus-window-menus.c: strip out user level menu
2002-01-05 04:05:26 +00:00
Darin Adler
1cb7f70f8f Don't use the eel_eat function.
* test/test.c: (test_text_caption_get_text_as_int):
	Don't use the eel_eat function.
2002-01-03 23:21:01 +00:00
Darin Adler
3eec4d53e1 Turn on test subdirectory.
* Makefile.am: Turn on test subdirectory.
	* test/test.c: (test_init), (test_label_new):
	* test/test.h:
	Build without using EelLabel.

	* src/nautilus-sidebar-title.c: Remove unused header include.
2002-01-03 23:18:38 +00:00
Darin Adler
fa2a9d0085 Port from EelLabel to GtkLabel.
* 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.
2002-01-03 00:11:12 +00:00
Darin Adler
5a749ac982 lots of files Get rid of casts in callers to g_object_ref/g_object_unref.
* lots of files
	Get rid of casts in callers to g_object_ref/g_object_unref.
	Remove parameters to eel_make_warnings_and_criticals_stop_in_debugger.
2001-12-07 00:55:34 +00:00
Michael Meeks
7a030297d9 fix.
2001-11-21  Michael Meeks  <michael@ximian.com>

	* test/test-nautilus-wrap-table.c (main): fix.

	* test/test-nautilus-mime-actions.c (main): upd. init.

	* test/test.c (test_init): upd.
	(test_label_new): kill tile_pixbuf support.
	(test_image_new): ditto.

	* test/test-nautilus-async-activation.c (main): upd.

	* test/Makefile.am: add CORE_CFLAGS, update LDADD.

	* libnautilus-private/nautilus-directory.c
	(nautilus_directory_destroy): rename to
	(nautilus_directory_dispose): this, but leave as a
	gtk object for now, double emission protect, move
	removal from directories list to head & split into:
	(nautilus_directory_finalize): here.

	* libnautilus-private/nautilus-directory-async.c
	(nautilus_directory_async_state_changed): fully remove
	GTK_OBJECT_DESTROYED check.
2001-11-21 08:34:57 +00:00
Darin Adler
4a2255079a Lots of files. Get rid a lot of unneeded casts.
* Lots of files.
	Get rid a lot of unneeded casts.
2001-11-09 02:05:53 +00:00
Darin Adler
f6cff97ccd Switch to glib's gettext.
* acconfig.h:
	* configure.in:
	Switch to glib's gettext.

	* components/help/converters/*:
	Remove, since these were moved to libgnome.

	* Many files:
	Get rid of incorrect uses of many locale-specific functions like
	g_strcasecmp and isspace.
2001-11-07 21:43:57 +00:00
Darin Adler
52b329b137 Lots of files. Another GtkObject -> GObject pass.
* Lots of files.
	Another GtkObject -> GObject pass.
2001-11-06 19:14:33 +00:00
Darin Adler
bdcd47873f Tons of files. More GtkObject -> GObject stuff.
* Tons of files.
	More GtkObject -> GObject stuff.
2001-11-04 21:41:24 +00:00
Darin Adler
5abcc19954 More GNOME 2 work. We now compile up to libnautilus-private and I'm
* Lots of files:
	More GNOME 2 work. We now compile up to libnautilus-private and
	I'm working my way through the files in there. Also changed all
	the initialize_class and initialize to class_init and init.
2001-10-28 20:21:52 +00:00
Darin Adler
800e4fc159 Fix code that was using <ctype.h> functions and passing char's rather than
* components/help/converters/gnome-info2html2/html.c:
	(write_menu_entry_html):
	* components/help/converters/gnome-man2html2/gnome-man2html.c:
	(add_links), (scan_escape), (scan_format), (scan_table),
	(scan_expression), (scan_request), (scan_troff),
	(scan_troff_mandoc), (main):
	* src/nautilus-first-time-druid.c: (load_netscape_proxy_settings):
	* src/nautilus-property-browser.c: (emblem_keyword_valid):
	Fix code that was using <ctype.h> functions and passing char's
	rather than int's (using the standard "cast to unsigned char"
	trick).

	* libnautilus-private/nautilus-file.c:
	(nautilus_file_denies_access_permission),
	(nautilus_file_can_set_permissions), (nautilus_file_set_owner),
	(nautilus_file_get_group_name), (nautilus_file_can_set_group),
	(nautilus_file_get_settable_group_names),
	(nautilus_file_set_group):
	Get rid of the assumption that GnomeVFSFileInfo field types match
	the platform-specific uid_t and gid_t. This involves doing a few
	more type casts.
	(nautilus_extract_top_left_text): Fix a use of isprint on a char
	rather than an int.

	* libnautilus-private/nautilus-volume-monitor.c: Added ifdefs so
	this file can compile for Solaris without warnings.

	* test/test.c: (test_window_set_title_with_pid): Don't assume that
	getpid() returns an int. Instead cast it to unsigned long for
	printing.
2001-07-11 21:31:55 +00:00
Ramiro Estrugo
430f6bd8cc Update for latest round of stuff moving into Eel. 2001-05-04 10:19:35 +00:00
Ramiro Estrugo
90d404095e nautilus-extensions -> nautilus-private renaming. 2001-05-04 03:14:43 +00:00
Ramiro Estrugo
60b832fdfb Lots of improvement. Make dealing with dependency libs/cflags simpler.
* configure.in:
	Lots of improvement.  Make dealing with dependency libs/cflags simpler.

	* applets/launcher/Makefile.am:
	* applets/preferences-applet/Makefile.am:
	* components/adapter/Makefile.am:
	* components/hardware/Makefile.am:
	* components/help/Makefile.am:
	* components/history/Makefile.am:
	* components/image-viewer/Makefile.am:
	* components/loser/content/Makefile.am:
	* components/loser/sidebar/Makefile.am:
	* components/mozilla/Makefile.am:
	* components/music/Makefile.am:
	* components/news/Makefile.am:
	* components/notes/Makefile.am:
	* components/sample/Makefile.am:
	* components/text/Makefile.am:
	* components/throbber/Makefile.am:
	* components/tree/Makefile.am:
	* helper-utilities/error-dialog/Makefile.am:
	* icons/arlo/throbber/Makefile.am:
	* icons/crux_eggplant/backgrounds/Makefile.am:
	* icons/crux_eggplant/sidebar_tab_pieces/Makefile.am:
	* icons/crux_eggplant/throbber/Makefile.am:
	* icons/gnome/throbber/Makefile.am:
	* icons/sidebar_tab_pieces/Makefile.am:
	* libnautilus-adapter/Makefile.am:
	* libnautilus-extensions/Makefile.am:
	* libnautilus/Makefile.am:
	* src/Makefile.am:
	* src/file-manager/Makefile.am:
	* test/Makefile.am:
	Eliminate cut-n-paste disease by using dependency macros defined
	in configure.in.
2001-05-02 12:18:48 +00:00
Ramiro Estrugo
6e7d921ce8 Use NAUTILUS_VERSION_INSIST from hack-macros instead of
2001-05-01  Ramiro Estrugo  <ramiro@eazel.com>

	    * configure.in:
	    Use NAUTILUS_VERSION_INSIST from hack-macros instead of
	    EAZEL_VERSION_INSIST.

2001-05-01  Ramiro Estrugo  <ramiro@eazel.com>

	    * applets/launcher/Makefile.am:
	    * applets/preferences-applet/Makefile.am:
	    * components/adapter/Makefile.am:
	    * components/hardware/Makefile.am:
	    * components/help/Makefile.am:
	    * components/history/Makefile.am:
	    * components/image-viewer/Makefile.am:
	    * components/loser/content/Makefile.am:
	    * components/loser/sidebar/Makefile.am:
	    * components/mozilla/Makefile.am:
	    * components/music/Makefile.am:
	    * components/notes/Makefile.am:
	    * components/sample/Makefile.am:
	    * components/text/Makefile.am:
	    * components/throbber/Makefile.am:
	    * components/tree/Makefile.am:
	    * configure.in:
	    * libnautilus-extensions/Makefile.am:
	    * libnautilus/Makefile.am:
	    * src/Makefile.am:
	    * src/file-manager/Makefile.am:
	    * test/Makefile.am:
	    Patch from Christopher Lahey <clahey@ximian.com>.
	    Use EEL_CFLAGS, LIBRSVG_CFLAGS instead of EEL_INCLUDEDIR, and
	    EEL_CFLAGS.  Thanks Chris.
2001-05-02 07:07:27 +00:00
Ramiro Estrugo
1260bbb9a4 Change parameters for functions that accept and return ArtIRect,
* 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.
2001-04-30 11:39:30 +00:00
Ramiro Estrugo
d9ceae6f02 Need to initialize preferences.
* test/test-nautilus-preferences-display.c: (main):
	Need to initialize preferences.
2001-04-23 17:29:18 +00:00
Ramiro Estrugo
fbbaf80362 Remove librsvg.
* 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.
2001-04-04 00:07:15 +00:00
Ramiro Estrugo
f7170ace27 Fix bugs:
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.
2001-03-28 10:10:29 +00:00
Ramiro Estrugo
88b3ea09ab reviewed by: Pavel Cisler <pavel@eazel.com>
Fix a bunch of font bugs that dropped of the 1.0 plate.

	7371 - Fonts in font pickers are in no particular order
	7387 - Font selection defaults to bold for some fonts
	7421 - Font option menu in "Appearances" too long for screen
	7473 - Switching off "smooth graphics" leaves font family grouping
	7486 - Font style menu disabled when it shouldn't be
	7487 - Would be nice if font styles were submenus
	7718 - 'cursor' font doesn't display

	* libnautilus-extensions/nautilus-art-gtk-extensions.h:
	* libnautilus-extensions/nautilus-art-gtk-extensions.c:
	(nautilus_screen_get_dimensions): Fix a really silly typo.
	(nautilus_gtk_widget_get_dimensions): Make the documentation a
	little better.
	(nautilus_gtk_widget_get_preferred_dimensions): New function to
	get a widget's preferred dimensions.

	* libnautilus-extensions/nautilus-font-manager.c:
	(font_description_new): Use consistent variable names.  Set a
	'is_ignored' flag if the font is ignored.
	(font_description_free): Use consistent variable names.
	(font_description_table_find): Ignore black listed fonts.
	(font_description_table_for_each): Ignore black listed fonts.
	(font_directory_is_ignored): Put constants on top of file.
	(font_foundry_is_ignored), (font_family_is_ignored): New functions
	to check for specific black listed font foundries and/or families.
	(ensure_local_font_table): Rename to 'local' from 'global' - this
	is something i need for a future change where the font manager
	will be able to handle both 'local' and 'server' fonts.
	Move the font ignoring code from nautilus-font-picker.c here so
	that it is in one place.

	* libnautilus-extensions/nautilus-font-picker.h:
	Subclass it from GtkHBox instead of GtkVBox now that it is not as
	wide.
	* libnautilus-extensions/nautilus-font-picker.c:
	(option_menu_button_press_event), (menu_deactivate),
	(nautilus_font_picker_initialize), (nautilus_font_picker_destroy),
	(style_menu_item_activate_callback),
	(style_menu_item_button_release_event), (font_picker_add_item),
	(font_picker_populate), (font_make_name), (font_make_style_name),
	(font_slant_string_to_enum), (font_set_width_string_to_enum),
	(font_style_entry_new), (font_style_entry_free),
	(compare_font_entry), (global_font_list_get), (compare_int),
	(compare_style), (global_font_list_populate_callback),
	(nautilus_gtk_menu_shell_get_num_items),
	(font_picker_get_selected_style_entry),
	(font_picker_find_entries_for_font),
	(font_picker_get_index_for_entry), (nautilus_font_picker_new),
	(nautilus_font_picker_get_selected_font),
	(nautilus_font_picker_set_selected_font):
	Move the black listed font code into the font manager.  Use option
	menus directly instead of NautilusStringPickers.  Put the style
	choices in cascading submenus.  Deal with the case when too many
	choices dont fit on the screen.

	* test/test-nautilus-font-manager.c:
	* test/test-nautilus-font-picker.c:
	Update for font picker changes.
2001-03-21 04:39:26 +00:00
Ramiro Estrugo
24faaf9219 reviewed by: Pavel Cisler <pavel@eazel.com>
Maciej Stachowiak  <mjs@eazel.com>

		      Bugs:

		      6368 - Multibyte font handling in non smooth mode.
		      2673 - Need to hook up the new font picker to nautilus
		      1274 - Add support for picking a custom font

		      * components/history/Makefile.am:
		      * components/history/nautilus-history-view.c: (main):
		      Initialize gettext for the history component so it can display
		      localized strings.

		      * components/notes/nautilus-notes.c: (make_notes_view):
		      Set the notes widget font from preferences so it can be properly
		      localized.

		      * components/text/nautilus-text-view.c:
		      (nautilus_text_view_set_font):
		      Use the localized font name to make this work in locales other
		      than the default.

		      * libnautilus-extensions/Makefile.am:
		      Add a macro for finding data on the source tree for the situation
		      when 'make install' has not be run.

		      * libnautilus-extensions/nautilus-font-factory.c:
		      (nautilus_font_factory_get_font_by_family): Workaround the problem
		      that fully qualified localized fonts were being processed
		      incorrectly.  We simply leave them alone now.
		      (nautilus_font_factory_get_font_from_preferences): Use the
		      localized font string to make this work on more locales.

		      * libnautilus-extensions/nautilus-font-manager.h:
		      * libnautilus-extensions/nautilus-font-manager.c:
		      (font_description_table_find): New function to find a description
		      in a table.
		      (font_description_table_for_each): Change the return value to a
		      boolean to indicate whether to stop the iteration or not.  Switch
		      the order of an assert and assigned.
		      (collect_fonts_from_directory): Use macros for the mime type
		      strings.
		      (font_ignore_directory): Add more directories to ignore.
		      (font_manager_collect_font_tables): Change prepend to append to
		      get fonts in a better order (fallback and user fonts first)
		      , (font_table_list_find),
		      (free_font_tables), (ensure_global_font_table),
		      (nautilus_font_manager_for_each_font): Use just one global table
		      for all fonts instead of 3.
		      (nautilus_font_manager_get_default_font): Compute the default
		      dynamically to take user choices into account.  Make it work on
		      non installed nautilus builds.
		      (nautilus_font_manager_get_default_bold_font): Same as above for a
		      bold font.
		      (nautilus_font_manager_file_is_scalable_font): New function to
		      check that a file is really a scalable font:
		      (font_list_find_bold_callback), (nautilus_font_manager_get_bold),
		      (nautilus_font_manager_weight_is_bold): New functions to find a
		      bold font in the global tables.
		      (nautilus_self_check_font_manager): Make it work on not installed
		      nautilus builds and remove the hack where checks would on run for
		      the "ramiro" user.

		      * libnautilus-extensions/nautilus-font-picker.c:
		      (nautilus_font_picker_initialize), (font_list_find),
		      (font_picker_update_styles), (font_picker_populate),
		      (font_picker_font_changed_callback),
		      (font_picker_style_changed_callback), (font_find_style),
		      (ignore_font), (font_make_name), (font_make_style),
		      (global_font_list_free), (font_list_count_families),
		      (global_font_list_get), (global_font_list_populate_callback),
		      (nautilus_font_picker_get_selected_font),
		      (nautilus_font_picker_set_selected_font):
		      Make the font list global and not per widget instance.  Use better
		      labels for the font styles.  Use better labels for font names
		      (foundry and family vs just family depending on how many families
		      of the same font are found)

		      * libnautilus-extensions/nautilus-global-preferences.h:
		      * libnautilus-extensions/nautilus-global-preferences.c:
		      (global_preferences_install_font_defaults): Add new smooth font
		      preference for the icon container.
		      (nautilus_global_preferences_get_smooth_font): New function to
		      safely get a smooth font out of preferences.

		      * libnautilus-extensions/nautilus-icon-container.c:
		      (nautilus_icon_container_initialize): Use the localized version of
		      the font strings and add a FIXME for the problem of checking these
		      in many disparate places in nautilus.

		      * libnautilus-extensions/nautilus-program-chooser.c:
		      (program_file_pair_get_program_name_for_display): Use the
		      localized version of the application name strings.

		      * libnautilus-extensions/nautilus-scalable-font.h:
		      * libnautilus-extensions/nautilus-scalable-font.c:
		      (nautilus_scalable_font_initialize_class),
		      (nautilus_scalable_font_initialize),
		      (nautilus_scalable_font_destroy), (nautilus_scalable_font_new),
		      (nautilus_scalable_font_make_bold),
		      (nautilus_scalable_font_get_default_font),
		      (nautilus_scalable_font_get_default_bold_font),
		      (free_global_font_handle_table),
		      (initialize_global_stuff_if_needed),
		      (nautilus_scalable_font_get_rsvg_handle):
		      Simplify this class a lot by using the font manager.  No longer
		      need to manage font lookup and queries.

		      * libnautilus-extensions/nautilus-smooth-text-layout-cache.c:
		      (nautilus_self_check_smooth_text_layout_cache): Fix a comment.
		      Dont hardcode the font family.  Use the default font.  Remove the
		      #ifdef hacker for "before make install fonts broken" problem which
		      is now fixed.

		      * src/file-manager/fm-directory-view.h:
		      * src/file-manager/fm-directory-view.c:
		      (directory_view_smooth_font_changed_callback),
		      (fm_directory_view_initialize), (fm_directory_view_destroy):
		      Add method for responding to changes in the smooth font for AA
		      mode of the icon container.

		      * src/file-manager/fm-icon-view.c:
		      (fm_icon_view_smooth_font_changed),
		      (fm_icon_view_initialize_class),
		      (fm_icon_view_update_icon_container_smooth_font),
		      (create_icon_container):
		      Add support for responding to change in the smooth font.  Update
		      the icon container's smooth font on such changes.

		      * src/nautilus-about.c: (nautilus_about_draw_info):
		      Change the offset of the "Nautilus" title which broken when jsh
		      make glyphs render properly taking the baseline into account.

		      * src/nautilus-sidebar-title.c: (update_font):
		      Use the localized font name.

		      * src/nautilus-sidebar.c: (nautilus_sidebar_add_panel),
		      (nautilus_sidebar_remove_panel):
		      Use the localized sidebar tabs descriptions.

		      * src/nautilus-window.c: (create_view_as_menu_item):
		      Use the localized "View as" labels.

		      * test/test-nautilus-font-manager.c: (font_iterator_callback):
		      * test/test-nautilus-font-picker.c: (update_font),
		      (font_changed_update_label_callback),
		      (font_changed_update_file_name_callback),
		      (use_defalt_font_callback), (use_defalt_bold_font_callback),
		      (use_defalt_font_update_picker_callback),
		      (use_defalt_bold_font_update_picker_callback), (main):
		      * test/test.c: (test_quit):
		      Updates for changes in font manager and font picker.
2001-03-05 08:15:06 +00:00
Ramiro Estrugo
a5eedddc21 reviewed by: <delete if not using a buddy>
2001-03-02  Ramiro Estrugo  <ramiro@eazel.com>

	    reviewed by: <delete if not using a buddy>

	    Bug 2673 - Need to hook up the new font picker to nautilus .

	    * configure.in:
	    Remove an old font setup hack that never really worked.

	    * data/fonts/urw/fonts.dir:
	    Rename the fonts to "Helvetica Default" in order not to clash with
	    system fonts.

	    * libnautilus-extensions/nautilus-font-manager.h:
	    * libnautilus-extensions/nautilus-font-manager.c:
	    (font_description_new): Add a font type parameter.
	    (font_lists_total_num_fonts): New function to count the total
	    number of scalable fonts detetected.
	    (font_description_table_add): Pass in the detected font lists to
	    do reality checks.
	    (font_get_font_type): New function.
	    (font_description_table_get_length),
	    (font_description_table_peek_nth),
	    (font_description_table_get_nth_file_name): Name the parameters
	    more consistently.
	    (font_description_table_for_each): Add font type parameter
	    (font_description_table_new): Rework to not require storing the
	    detected font list.  We now use that only for the duration of the
	    constructor.  Lost the install_font_lists dumbness.
	    (font_server_for_each_font_directory_internal): Use g_warning
	    instead of g_print.
	    (font_ignore_directory): New function to determine whether we
	    should ignore a directory - makes things much faster.
	    (font_manager_collect_font_tables): New function to handle all the
	    work of collecting font directories into tables.
	    (font_server_for_each_callback), (font_table_list_free),
	    (font_table_list_for_each), (free_font_tables),
	    (ensure_at_exit_handler), (ensure_fallback_font_table),
	    (ensure_user_font_table), (ensure_system_font_tables): Add 3
	    tables for fallback, system and users fonts.  These are populated
	    as needed.
	    (nautilus_font_manager_for_each_font): Iterate the 3 font talbles.
	    (nautilus_font_manager_get_fallback_font) : New function to obtain
	    a fallback font quickly without having to check the system.
	    (call_chop_off_comments), (nautilus_self_check_font_manager):
	    Rework the checks to not create a temp directory.  Unfortunately
	    they now only run for me.

	    * libnautilus-extensions/nautilus-font-picker.h:
	    * libnautilus-extensions/nautilus-font-picker.c:
	    (nautilus_font_picker_initialize_class),
	    (nautilus_font_picker_initialize), (nautilus_font_picker_destroy),
	    (font_entry_list_find), (font_picker_update),
	    (font_name_picker_changed_callback),
	    (style_picker_changed_callback), (ignore_font),
	    (font_manager_callback), (style_list_for_each_callback),
	    (font_entry_list_for_each_callback),
	    (nautilus_font_picker_get_selected_font),
	    (nautilus_font_picker_set_selected_font),
	    (nautilus_font_picker_set_title_label):
	    Use the new font manager.

	    * libnautilus-extensions/nautilus-global-preferences.h:
	    * libnautilus-extensions/nautilus-global-preferences.c:
	    (global_preferences_install_descriptions),
	    (global_preferences_install_defaults),
	    (global_preferences_create_dialog), (appearnace_pane_update),
	    (global_preferences_create_font_group),
	    (global_preferences_install_home_location_defaults),
	    (global_preferences_install_font_defaults):
	    Add a new preference for the smooth font.
	    Factor our the default font code to its own function.  Setup the
	    font pickers items to be mutually exclusive according to the
	    smooth graphics mode preference value.

	    * libnautilus-extensions/nautilus-gtk-extensions.h:
	    * libnautilus-extensions/nautilus-gtk-extensions.c:
	    (nautilus_gtk_widget_set_shown):
	    New function to show or hide a widget in one go.

	    * libnautilus-extensions/nautilus-preferences-group.c:
	    (nautilus_preferences_group_update):
	    Dont show the widget if a controlling preference prevents it.

	    * libnautilus-extensions/nautilus-preferences-item.h:
	    * libnautilus-extensions/nautilus-preferences-item.c:
	    (preferences_item_update_smooth_font),
	    (preferences_smooth_font_changed_callback),
	    (preferences_item_create_smooth_font): Add support for a smooth
	    font picker.
	    (preferences_item_destroy), (preferences_item_construct),
	    (nautilus_preferences_item_set_control_preference),
	    (nautilus_preferences_item_set_control_action),
	    (nautilus_preferences_item_get_control_showing): Add support for
	    using a controlling preference which can force the widget to be
	    shown or hidden depending on its value.

	    * libnautilus-extensions/nautilus-preferences-pane.c:
	    (nautilus_preferences_pane_update):
	    Use new gtk extension to show or hide the widget in one go.

	    * libnautilus-extensions/nautilus-scalable-font.h:
	    * libnautilus-extensions/nautilus-scalable-font.c:
	    (font_family_string_map_new): Update fallback font name.
	    (nautilus_scalable_font_new_from_file_name): New function to
	    create a font directly from a font file name.
	    (nautilus_scalable_font_get_default_font): Update fallback font name.
	    (nautilus_scalable_font_get_default_bold_font): New function to
	    get a fallback bold font.
	    Remove some unsed functions.  Remove the font setup hack, the font
	    manager takes care of that now.

	    * libnautilus-extensions/nautilus-string-picker.h:
	    * libnautilus-extensions/nautilus-string-picker.c:
	    (nautilus_string_picker_clear):
	    New function to clear the string picker.

	    * libnautilus-extensions/nautilus-tabs.c:
	    (nautilus_tabs_initialize):
	    Fix the hard coded font name.

	    * src/nautilus-first-time-druid.c: (new_title_label):
	    Fix the hard coded font name.

	    * src/nautilus-sidebar-tabs.c:
	    (nautilus_sidebar_tabs_load_theme_data):
	    Fix the hard coded font name.

	    * test/Makefile.am:
	    * test/test-nautilus-font-manager.c: (font_type_to_string),
	    (font_iterator_callback), (font_table_for_each_callback), (main):
	    * test/test-nautilus-font-picker.c: (font_picker_changed_callback),
	    (main):
	    * test/test-nautilus-glyph-simple.c: (main):
	    * test/test-nautilus-label.c: (main):
	    Update for new font picker and font manager changes.
2001-03-03 03:49:25 +00:00
Ramiro Estrugo
c82b82179b reviewed by: Eskil Heinous Olsen <eskil@eazel.com>
* libnautilus-extensions/nautilus-string-list.h:
	* libnautilus-extensions/nautilus-string-list.c:
	(nautilus_string_list_nth_as_integer),
	(nautilus_self_check_string_list):
	New function to get the nth string as an integer - and checks.

	* libnautilus-extensions/Makefile.am:
	* libnautilus-extensions/nautilus-font-manager.h:
	* libnautilus-extensions/nautilus-font-manager.c:
	* libnautilus-extensions/nautilus-lib-self-check-functions.h:
	New files.  Support for collecting information about the scalable
	fonts installed on the system.  Parts written by Pavel Cisler.

	* components/text/nautilus-text-view.c:
	(nautilus_text_view_initialize):
	Mark a string for translation.

	* libnautilus-extensions/nautilus-font-factory.c:
	(nautilus_font_factory_get_font_by_family):
	Take fontsets into account.  Patch submitted by
	eungkyu@sparcs.kaist.ac.kr.

	* libnautilus-extensions/nautilus-preferences-item.h:
	* libnautilus-extensions/nautilus-preferences-item.c:
	(nautilus_preferences_item_initialize_class),
	(nautilus_preferences_item_initialize), (preferences_item_destroy),
	(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_integer),
	(preferences_item_create_integer),
	(preferences_item_update_font_family),
	(preferences_item_create_font_family),
	(nautilus_preferences_item_new),
	(enum_radio_group_changed_callback),
	(nautilus_preferences_item_update_displayed_value),
	(update_text_settings_at_idle):
	Clean this up a bit.  Follow nautilus coding conventions more.
	Remove long unused theme picker.
	Remove unused GtkArg stuff.

	* libnautilus-extensions/nautilus-preferences-pane.c:
	(nautilus_preferences_pane_new):
	* libnautilus-extensions/nautilus-preferences-pane.h:
	Remove unused pane description.

	* libnautilus-extensions/nautilus-preferences-box.c:
	(nautilus_preferences_box_add_pane):
	* libnautilus-extensions/nautilus-preferences-box.h:
	Remove unused pane description.

	* libnautilus-extensions/nautilus-global-preferences.c:
	(global_preferences_install_defaults): Mark font name for
	translation.
	(global_preferences_create_dialog),
	(global_preferences_create_search_pane): Remove unused pane
	description.

	* test/.cvsignore:
	* test/Makefile.am:
	* test/test-nautilus-glyph-simple.c: (main):
	* test/test-nautilus-glyph.c: (main):
	* test/test-nautilus-labeled-image.c: (main):
	* test/test-nautilus-smooth-text-layout.c: (main):
	* test/test-nautilus-font-manager.c: (main):
	* test/test.c: (test_quit):
	* test/test.h:
	Some minor changes.  New test for font manager.
2001-03-02 09:48:29 +00:00
Ramiro Estrugo
8123705a6c Fix this so I can debug a font problem somewhere else.
* test/test-nautilus-label-flavorful.c:
	(increasing_label_window_new), (decreasing_label_window_new):
	Fix this so I can debug a font problem somewhere else.
2001-02-28 00:54:54 +00:00
Darin Adler
2f9d6bc25f reviewed by: John Sullivan <sullivan@eazel.com>
Fixed bug 6725 (Crash on Refresh if viewed file/folder is deleted
	outside of Nautilus):

	* src/nautilus-window-manage-views.c: (free_location_change):
	Reorder so we cancel the callbacks before more I/O has the chance
	to happen.
	* libnautilus-extensions/nautilus-directory-async.c:
	(nautilus_directory_async_state_changed): Don't do any I/O for a
	NautilusDirectory object once it's destroyed. Unfortunately, it's
	still possible for destroying one NautilusDirectory object to
	cause I/O to happen on another, so this doesn't fix the bug (which
	is why we also need the change above).

	Fixed bug 7080 (Nautilus build failure on Red Hat 7.)

	* libnautilus-extensions/nautilus-medusa-support.c: Fixed the bad
	#endif with non-comment text after it.

	Worked on bug 6928 (create fallback mechanism so eazel-logos
	version of each graphic is found if present). We still need a
	separate fallback mechanism for the theme XML file, since the
	throbber has a different number of frames.

	* libnautilus-extensions/nautilus-file-utilities.c:
	(nautilus_get_pixmap_directory): Simplify.
	(nautilus_pixmap_file): Look in eazel-logos directory first, so we
	will pick up logo graphics if there, and non-logo graphics otherwise.
	* test/test-nautilus-image-simple.c: (main): Remove a reference to
	a logo graphic.

	* eazel-logos/.cvsignore:
	* eazel-logos/About_Image.png:
	* eazel-logos/about_background.png:
	* eazel-logos/druid_header.png:
	* eazel-logos/eazel-logo-right-side-logo.png:
	* eazel-logos/throbber/.cvsignore:
	* eazel-logos/throbber/001.png:
	* eazel-logos/throbber/002.png:
	* eazel-logos/throbber/003.png:
	* eazel-logos/throbber/004.png:
	* eazel-logos/throbber/005.png:
	* eazel-logos/throbber/006.png:
	* eazel-logos/throbber/007.png:
	* eazel-logos/throbber/008.png:
	* eazel-logos/throbber/009.png:
	* eazel-logos/throbber/010.png:
	* eazel-logos/throbber/011.png:
	* eazel-logos/throbber/012.png:
	* eazel-logos/throbber/013.png:
	* eazel-logos/throbber/014.png:
	* eazel-logos/throbber/015.png:
	* eazel-logos/throbber/rest.png:
	* eazel-logos/default.xml:
	Added a new directory with copies of all graphics with the Eazel
	logo in them. Next we have to make this directory actually build
	and install these logos. Then Non-Eazel-logo'd graphics suitable
	for GPL will replace the original copies and these will keep the
	Eazel logo versions. The directory also contains the XML file for
	the default theme, since we need to change the throbber frames for
	the logo vs. non-logo version of the throbber.

	* components/services/nautilus-dependent-shared/icons/Makefile.am:
	* components/services/nautilus-dependent-shared/icons/eazel-cloud-logo.png:
	* components/services/nautilus-dependent-shared/icons/eazel-services-logo.png:
	* components/services/nautilus-dependent-shared/icons/service-summary-logo-top.png:
	* components/services/nautilus-dependent-shared/icons/startup-logo.png:
	* icons/Makefile.am:
	* icons/eazel-logo.gif:
	* icons/nautilus-logo.png:
	Removed unused graphics with the Eazel logo in them. There are a
	lot more unused graphics and someone should go through and remove
	them. I'm thinking of writing a script to do it.

	Other changes.

	* components/services/install/nautilus-view/.cvsignore:
	* components/services/vault/.cvsignore:
	* components/services/vault/command-line/.cvsignore:
	* data/top/.cvsignore:
	Re-removed .cvsignore files for empty directories.

	* THANKS: Corrected one email address.
	* check-THANKS.pl: Updated for the latest ChangeLog typos.
2001-02-27 18:47:19 +00:00
Ramiro Estrugo
e6525d2601 Ignore generated files.
* .cvsignore:
	* help/nautilus-user-manual/es/.cvsignore:
	* omf-install/.cvsignore:
	* test/.cvsignore:
	* user-guide/C/.cvsignore:
	Ignore generated files.
2001-02-26 19:21:04 +00:00
Ramiro Estrugo
2db06b9173 reviewed by: Gene Z. Ragan <gzr@eazel.com>
Fix bugs:

	2784 - NautilusScalableFont text clipping is broken.
	2831 - Icon container redraw performance is poor in smooth mode.
	Optimized this case some.  Its still not as good as we
	would like it to be.  Thanks to the following changes, it
	is possible to optimize it even more - by caching the
	layouts of icons for example.  We need to profile with the
	new changes.

	* libnautilus-extensions/Makefile.am:
	* libnautilus-extensions/nautilus-icon-canvas-item.c:
	(measure_label_text), (draw_or_measure_label_text_aa),
	(draw_label_text_aa):
	* libnautilus-extensions/nautilus-icon-factory.c: (embed_text):
	Use NautilusSmoothTextLayout instead of NautilusTextLayout.

	* 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_allocate),
	(label_composite_pixbuf_callback), (label_get_text_dimensions),
	(label_smooth_text_ensure), (label_smooth_text_clear),
	(nautilus_label_set_smooth_font),
	(nautilus_label_set_smooth_font_size),
	(nautilus_label_set_is_smooth),
	(nautilus_label_set_smooth_line_wrap_width),
	(nautilus_label_set_smooth_drop_shadow_offset),
	(nautilus_label_set_text), (nautilus_label_set_wrap),
	(nautilus_label_new_solid), (nautilus_label_make_bold),
	(nautilus_label_make_larger), (nautilus_label_make_smaller),
	(nautilus_label_set_never_smooth):
	Simplified.  Use NautilusSmoothTextLayout to handle laying
	out the text.

	* libnautilus-extensions/nautilus-scalable-font.h:
	* libnautilus-extensions/nautilus-scalable-font.c:
	(nautilus_scalable_font_new),
	(nautilus_scalable_font_measure_text),
	(nautilus_scalable_font_draw_text),
	(initialize_global_stuff_if_needed),
	(nautilus_scalable_font_get_underline_height),
	(nautilus_scalable_font_get_baseline):
	Simplified.  Use NautilusSmoothTextLayout.  Remove no longer
	needed functions.

	* libnautilus-extensions/nautilus-smooth-text-layout.h:
	* libnautilus-extensions/nautilus-smooth-text-layout.c:
	New class to handle smooth text layout needs.  Layout details are
	private to make it easirt to fix bugs in the future.

	* libnautilus-extensions/nautilus-text-layout.c:
	* libnautilus-extensions/nautilus-text-layout.h:
	Retire.

	* test/.cvsignore:
	* test/Makefile.am:
	* test/test-nautilus-font-simple.c: (main):
	* test/test-nautilus-font.c: (main):
	* test/test-nautilus-glyph-simple.c: (glyph_new), (main):
	* test/test-nautilus-label-simple.c: (main):
	* test/test-nautilus-label-wrapped.c: (create_nautilus_label),
	(main):
	* test/test-nautilus-smooth-text-layout.c: (main):
	New smooth text layout test.  Update test for smooth layout changes.
2001-02-23 08:35:08 +00:00
Arik Devens
39ae67fe63 Updated so it uses two vbox's to test each of the constrain functions. 2001-02-23 07:48:30 +00:00
Arik Devens
f32598d061 New test for nautilus_viewport_constrain_width function. Eventually i will generalize it into a more usefull test of the constrain functions. 2001-02-23 05:59:04 +00:00
Arik Devens
9840842c1e Added constrain functions to the nautilus-viewport widget so you can constrain the size of the children in either direction to the size of the viewport. 2001-02-23 05:58:08 +00:00
Ramiro Estrugo
f2453a7d8b reviewed by: Maciej Stachowiak <mjs@eazel.com>
* components/mozilla/nautilus-mozilla-encoding-tables.c:
	No need to have 2 strings.  Use an array of just one string.

	* components/mozilla/nautilus-mozilla-content-view.c:
	(mozilla_view_create_charset_encoding_submenu):
	Replace assertion with a more robust check for NULL.


	reviewed by: Seth Nickell <seth@eazel.com>

	* applets/preferences-applet/nautilus-preferences-applet.c:
	(quit_nautilus_button_clicked_callback),
	(start_nautilus_button_clicked_callback),
	(restart_nautilus_button_clicked_callback),
	(exit_button_clicked_callback), (main):
	Add a exit button for the applet itself.  Renamed nautilus remote
	callbacks to be clearer.

	* libnautilus-extensions/nautilus-art-extensions.h:
	* libnautilus-extensions/nautilus-art-extensions.c:
	(nautilus_art_irect_is_valid),
	(nautilus_self_check_art_extensions): New functions and tests for
	checking whether a rectangle is valid.

	* libnautilus-extensions/nautilus-glyph.h: Use int instead
	of guint everywhere.
	* libnautilus-extensions/nautilus-glyph.c: (nautilus_glyph_new),
	(nautilus_glyph_free), (glyph_get_width_space_safe): New functions
	to get dimensions that work with glyphs that are just empty space.
	(glyph_get_height_space_safe), (nautilus_glyph_get_width),
	(nautilus_glyph_get_height), (nautilus_glyph_get_dimensions): Make
	these work with empty spaces.
	(glyph_is_valid), (nautilus_glyph_draw_to_pixbuf): Use libart rgba
	functions instead of doing our own alpha blending.  Allow for
	rendering glyphs with just blank spaces (noop).  Remove debug code.
	(nautilus_glyph_intersect): New function to intersect a glyph at
	some coordinates with a rectangle.

	* test/test-nautilus-glyph-simple.c: (main):
	* test/test-nautilus-glyph.c: (glyph_new), (main):
	* test/test.c: (test_pixbuf_draw_rectangle_tiled):
	More glyph tests.
2001-02-22 14:33:58 +00:00
Ramiro Estrugo
88ebb708e8 reviewed by: Darin Adler <darin@eazel.com>
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.
2001-02-15 15:45:43 +00:00