1. 07 Jun, 2000 8 commits
    • Darin Adler's avatar
      The main change here is revamping the undo manager. · 62ae0377
      Darin Adler authored
      	To get a complete check-out you might have to delete
      	the file named libnautilus/nautilus-undo.h that used
      	to be a generated file and is now checked-in.
      
      	* components/help/help-method.c: (vfs_module_transform):
      	Removed a bogus extraneous FIXME.
      
      	* libnautilus-extensions/Makefile.am:
      	Moved the undo manager into libnautilus-extensions
      	since it's not needed by Nautilus components.
      
      	* libnautilus-extensions/nautilus-entry.c:
      	* libnautilus-extensions/nautilus-icon-text-item.c:
      	* libnautilus/nautilus-view.c:
      	* src/nautilus-application.c:
      	* src/nautilus-bookmarks-window.c: (create_bookmarks_window):
      	* src/nautilus-view-frame.c:
      	* src/nautilus-window-private.h:
      	* src/nautilus-window.c:
      	Updated includes and a few small function name changes.
      
      	* libnautilus-extensions/nautilus-gtk-extensions.h:
      	* libnautilus-extensions/nautilus-gtk-extensions.c:
      	(alive_disconnecter),
      	(nautilus_gtk_signal_connect_full_while_alive):
      	Added a new function that combines the features of
      	gtk_signal_connect_full with gtk_signal_connect_while_alive.
      
      	* libnautilus/nautilus-undo-context.h: [removed]
      	* libnautilus/nautilus-undo-context.c: [removed]
      	* libnautilus-extensions/nautilus-undo-context.h:
      	* libnautilus-extensions/nautilus-undo-context.c:
      	(impl_Nautilus_Undo_Context__destroy),
      	(impl_Nautilus_Undo_Context__create),
      	(impl_Nautilus_Undo_Context__get_undo_manager),
      	(nautilus_undo_context_new), (destroy),
      	(nautilus_undo_context_initialize_class):
      	Rewrote this class to simplify it (after moving it here).
      
      	* libnautilus/nautilus-undo-manager.h: [removed]
      	* libnautilus/nautilus-undo-manager.c: [removed]
      	* libnautilus/nautilus-undo-manager-private.h: [removed]
      	* libnautilus-extensions/nautilus-undo-manager.h:
      	* libnautilus-extensions/nautilus-undo-manager.c:
      	(impl_Nautilus_Undo_Manager__destroy),
      	(impl_Nautilus_Undo_Manager__create),
      	(impl_Nautilus_Undo_Manager__append),
      	(impl_Nautilus_Undo_Manager__forget),
      	(nautilus_undo_manager_initialize),
      	(nautilus_undo_manager_initialize_class),
      	(nautilus_undo_manager_undo),
      	(nautilus_undo_manager_add_transaction),
      	(nautilus_undo_manager_forget_transaction),
      	(nautilus_undo_manager_set_queue_depth),
      	(nautilus_undo_manager_attach),
      	(nautilus_undo_manager_add_interface), (update_undo_menu_item),
      	(undo_menu_handler_connection_free),
      	(undo_menu_handler_connection_free_cover),
      	(nautilus_undo_manager_set_up_bonobo_ui_handler_undo_item):
      	Rewrote this class to simplify it. Got rid of many old
      	interfaces and added some new ones.
      
      	* libnautilus/.cvsignore:
      	* libnautilus/Makefile.am:
      	Renamed the old nautilus-undo.idl to
      	nautilus-distributed-undo.idl.  The IDL is only about the internal
      	part of the undo framework.  Clients use calls that are in
      	nautilus-undo.h. The part that's public needs the prettier name.
      
      	* libnautilus/nautilus-undo.idl: [removed]
      	* libnautilus/nautilus-distributed-undo.idl:
      	Updated the names of menu-item-related things to better match the
      	standard terminology.
      
      	* libnautilus/nautilus-undo-private.h:
      	Added this new header for things needed by the undo manager that
      	are in libnautilus. Maybe we can eliminate this later.
      
      	* libnautilus/nautilus-undo-transaction.h:
      	* libnautilus/nautilus-undo-transaction.c:
      	(impl_Nautilus_Undo_Transaction__destroy),
      	(impl_Nautilus_Undo_Transaction__create),
      	(impl_Nautilus_Undo_Transaction__get_undo_menu_item),
      	(impl_Nautilus_Undo_Transaction__get_redo_menu_item),
      	(impl_Nautilus_Undo_Transaction__get_operation_name),
      	(impl_Nautilus_Undo_Transaction__undo),
      	(nautilus_undo_transaction_new),
      	(nautilus_undo_transaction_initialize),
      	(remove_transaction_from_object),
      	(nautilus_undo_transaction_destroy),
      	(nautilus_undo_transaction_initialize_class),
      	(nautilus_undo_transaction_add_atom),
      	(nautilus_undo_transaction_undo),
      	(nautilus_undo_transaction_add_to_undo_manager), (remove_atoms),
      	(remove_atoms_cover),
      	(nautilus_undo_transaction_unregister_object), (undo_atom_free),
      	(undo_atom_undo_and_free), (undo_atom_free_cover),
      	(undo_atom_undo_and_free_cover), (undo_atom_list_free),
      	(undo_atom_list_undo_and_free):
      	Rewrote and simplified this class and got rid of all uses of
      	NautilusUndoable.
      
      	* libnautilus/nautilus-undoable.h: [removed]
      	* libnautilus/nautilus-undoable.c: [removed]
      	* libnautilus/nautilus-undo.h:
      	* libnautilus/nautilus-undo.c: (nautilus_undo_register),
      	(nautilus_undo_register_full), (nautilus_undo_unregister),
      	(nautilus_undo), (nautilus_undo_get_undo_manager),
      	(undo_manager_ref), (undo_manager_unref),
      	(undo_manager_unref_cover), (nautilus_undo_attach_undo_manager),
      	(nautilus_undo_share_undo_manager), (set_up_bonobo_control),
      	(nautilus_undo_set_up_bonobo_control):
      	Added this new file with the public interface of the undo code and
      	most of the basic implementation. Most of this was previously in
      	nautilus-undoable.c.
      
      	* nautilus-widgets/nautilus-preferences.c:
      	(preferences_hash_node_free), (preferences_hash_node_add_callback),
      	(preferences_hash_node_remove_callback),
      	(preferences_hash_node_check_changes_func),
      	(preferences_callback_node_alloc),
      	(preferences_callback_node_free),
      	(preferences_callback_node_free_func),
      	(preferences_callback_node_invoke_func),
      	(preferences_gconf_callback):
      	Fixed a repeated spelling error in this file.
      
      	* src/nautilus-application.c: (nautilus_app_init):
      	* src/nautilus-view-frame.c: (nautilus_view_frame_load_client):
      	* src/nautilus-window-menus.c: (edit_menu_undo_callback),
      	(nautilus_window_initialize_menus):
      	* src/nautilus-window.c: (nautilus_window_constructed):
      	Changed to use public parts of the undo API instead of the old
      	stuff that used private secret stuff. Many places use nice new
      	convenient calls that do a lot of the work for you.
      62ae0377
    • Pavel Cisler's avatar
      Fix leaks. · aac364ac
      Pavel Cisler authored
      2000-06-06  Pavel Cisler  <pavel@eazel.com>
      
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(get_themed_icon_file_path),
      	(nautilus_icon_factory_get_icon_for_file):
      	Fix leaks.
      
      	* libnautilus-extensions/nautilus-mime-actions.c:
      	(nautilus_mime_get_default_component_for_uri_internal):
      	Add an assert to augument a funny if statement and trap
      	a potential leak case.
      
      	* src/file-manager/fm-icon-view.c: (get_icon_text_callback):
      	Fix a leak
      aac364ac
    • Andy Hertzfeld's avatar
      implemented gradient backgrounds for the anti-aliased canvas. This isn't · 116d27f9
      Andy Hertzfeld authored
      
              implemented gradient backgrounds for the anti-aliased canvas.  This
      	isn't finished yet, so don't try to play around with it yet
      116d27f9
    • Ramiro Estrugo's avatar
      Use "/apps/nautilus" instead of "/nautilus" to conform to the · e5140a5a
      Ramiro Estrugo authored
      gconf "standard"
      
      Thanks to andersca@gnu.org for pointing this out.
      e5140a5a
    • Maciej Stachowiak's avatar
      Removed FIXME comments for 1277. · a178b638
      Maciej Stachowiak authored
      	* libnautilus-extensions/nautilus-glib-extensions.c: Removed FIXME
      	comments for 1277.
      a178b638
    • Maciej Stachowiak's avatar
      Un #if-0'd out, and replaced the free that was killing things with a · bfe3d851
      Maciej Stachowiak authored
      	* libnautilus-extensions/nautilus-glib-extensions.c:
      	(nautilus_test_predicate), (nautilus_self_check_glib_extensions):
      	Un #if-0'd out, and replaced the free that was killing things with
      	a comment explaining why it is not necessary.
      bfe3d851
    • Ramiro Estrugo's avatar
      Add missing g_free. · 1b1159ad
      Ramiro Estrugo authored
      * nautilus-widgets/nautilus-preferences.c:
      (nautilus_preferences_get_enum):
      Add missing g_free.
      1b1159ad
    • Ramiro Estrugo's avatar
      Comment out broken nautilus_g_list_paritition tests and adeed FIXME blurb · 36582d3a
      Ramiro Estrugo authored
      * libnautilus-extensions/nautilus-glib-extensions.c:
      (nautilus_self_check_glib_extensions):
      Comment out broken nautilus_g_list_paritition tests and adeed
      FIXME blurb with bug number.
      36582d3a
  2. 06 Jun, 2000 8 commits
    • John Sullivan's avatar
      Added bug numbers to FIXMEs. · 9012c14f
      John Sullivan authored
      	* components/services/install/lib/eazel-install-object.c:
      	(eazel_install_new_with_config):
      	* components/services/install/lib/eazel-install-rpm-glue.c:
      	(do_rpm_install):
      	* components/services/time/service/trilobite-eazel-time-service.c:
      	(impl_Trilobite_Eazel_Time_Service_update_time):
      	* libnautilus-extensions/nautilus-global-preferences.c:
      	(global_preferences_get_sidebar_panel_view_identifiers),
      	(global_preferences_register_sidebar_panels_preferences_for_ui):
      	* libnautilus/nautilus-clipboard.c: (add_menu_items_callback):
      	* nautilus-widgets/nautilus-preferences-item.c:
      	(preferences_item_create_font_family):
      	* nautilus-widgets/nautilus-preferences.c:
      	(preferences_hash_node_check_changes_func),
      	(preferences_gconf_callback):
      	Added bug numbers to FIXMEs.
      9012c14f
    • John Sullivan's avatar
      Added bug numbers to FIXMEs. · 21065d51
      John Sullivan authored
      	* libnautilus-extensions/nautilus-mime-actions.c:
      	(nautilus_mime_get_default_action_type_for_uri),
      	(nautilus_mime_get_default_application_for_uri),
      	(nautilus_mime_get_default_component_for_uri_internal),
      	(nautilus_mime_get_short_list_applications_for_uri),
      	(nautilus_mime_get_short_list_components_for_uri),
      	(nautilus_mime_get_all_applications_for_uri),
      	(nautilus_mime_set_short_list_applications_for_uri),
      	(nautilus_mime_set_short_list_components_for_uri),
      	(nautilus_do_component_query), (get_mime_type_from_uri):
      	Added bug numbers to FIXMEs.
      21065d51
    • John Sullivan's avatar
      Added bug numbers to FIXMEs. · 4d83a5d8
      John Sullivan authored
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_get_type_as_string):
      	* src/file-manager/fm-directory-view.c:
      	(bonobo_control_activate_callback), (new_folder_done),
      	(fm_directory_view_real_create_background_context_menu_items):
      	* src/file-manager/fm-icon-view.c:
      	* src/file-manager/fm-list-view.c: (fm_list_handle_dropped_icons):
      	* src/nautilus-application.c: (nautilus_app_startup):
      	* src/nautilus-desktop-window.c:
      	(nautilus_desktop_window_initialize),
      	(nautilus_desktop_window_new), (realize):
      	* src/nautilus-property-browser.c: (remove_background),
      	(remove_emblem), (add_background_to_browser):
      	* src/nautilus-sidebar.c:
      	* src/nautilus-view-frame-bonobo-embeddable.c:
      	(bonobo_subdoc_notify_location_change):
      	* src/nautilus-window-manage-views.c:
      	(nautilus_window_request_location_change):
      	Added bug numbers to FIXMEs.
      4d83a5d8
    • John Sullivan's avatar
      Made all the metadata keys in this file be #defines instead of in-line · b123f298
      John Sullivan authored
      	* libnautilus-extensions/nautilus-metadata.h:
      	* libnautilus-extensions/nautilus-mime-actions.c:
      	(nautilus_mime_get_default_action_type_for_uri),
      	(nautilus_mime_get_default_application_for_uri),
      	(nautilus_mime_get_default_component_for_uri_internal),
      	(nautilus_mime_get_short_list_applications_for_uri),
      	(nautilus_mime_get_short_list_components_for_uri),
      	(nautilus_mime_get_all_applications_for_uri),
      	(nautilus_mime_set_default_action_type_for_uri),
      	(nautilus_mime_set_default_application_for_uri),
      	(nautilus_mime_set_default_component_for_uri),
      	(nautilus_mime_set_short_list_applications_for_uri),
      	(nautilus_mime_set_short_list_components_for_uri),
      	(nautilus_mime_extend_all_applications_for_uri),
      	(nautilus_mime_remove_from_all_applications_for_uri),
      	(get_explicit_content_view_iids_from_metafile):
      	Made all the metadata keys in this file be #defines
      	instead of in-line strings.
      b123f298
    • John Sullivan's avatar
      Fixed bug 1219 (saved viewer not used if not in preferred list) · 0b49bb86
      John Sullivan authored
      	* libnautilus-extensions/nautilus-metadata.h:
      	Removed NAUTILUS_METADATA_KEY_INITIAL_VIEW 'cuz it's not needed
      	anymore.
      
      	* libnautilus-extensions/nautilus-mime-actions.h:
      	* libnautilus-extensions/nautilus-mime-actions.c:
      	(nautilus_mime_get_default_component_for_uri_internal):
      	New private function, returns both the default component
      	and whether it was user-chosen (as opposed to just inherited
      	from the value for this MIME type).
      	(nautilus_mime_get_default_component_for_uri): Now calls
      	this new function. Also fixed a bug where it was using a
      	different metadata string than _set_default_, and thus
      	never retrieving the stored value.
      	(nautilus_mime_is_default_component_for_uri_user_chosen):
      	New public function, reports whether the default component
      	was chosen by the user or just inherited.
      
      	* src/nautilus-window.c: (nautilus_window_switch_views):
      	Call nautilus_mime_set_default_component_for_uri when the
      	user explicitly chooses a view, rather than setting the
      	now-obsolete "INITIAL_VIEW" metadata.
      
      	* src/nautilus-applicable-views.c:
      	(got_file_info_callback): Rename "fallback_id" to "default_id"
      	and eliminate code that adds default component to menu here.
      	The current view is always added to the menu in a special way
      	if required later.
      	(set_initial_content_id): Don't get remembered value, instead
      	use nautilus_mime_is_default_component_for_uri_user_chosen to
      	choose priority between default component and referring component.
      	And don't require that the initial component is in the preferred
      	list.
      0b49bb86
    • Andy Hertzfeld's avatar
      made tiled image backgrounds draw properly on the anti-aliased canvas · 78132c91
      Andy Hertzfeld authored
      
             made tiled image backgrounds draw properly on the anti-aliased
             canvas
      78132c91
    • Ramiro Estrugo's avatar
      New type of preference, EDITABLE_STRING. · a52bf479
      Ramiro Estrugo authored
      * nautilus-widgets/nautilus-preferences-item.c:
      (preferences_item_construct),
      (preferences_item_create_editable_string),
      (preferences_item_create_font_family),
      (preferences_item_create_icon_theme),
      (preferences_item_create_toolbar_icon_theme),
      (text_item_changed_callback), (editable_string_changed_callback):
      * nautilus-widgets/nautilus-preferences-item.h:
      New type of preference, EDITABLE_STRING.
      
      * libnautilus-extensions/nautilus-global-preferences.c:
      (global_preferences_create_dialog):
      Add a new pane, navigation pane.
      
      Add support for manually keying in a home page.  Needs some more
      work to work better.
      
      * nautilus-widgets/Makefile.am:
      * nautilus-widgets/nautilus-caption.c:
      (nautilus_caption_initialize_class), (nautilus_caption_initialize),
      (nautilus_caption_destroy), (nautilus_caption_new),
      (nautilus_caption_set_title_label),
      (nautilus_caption_get_title_label), (nautilus_caption_set_child):
      * nautilus-widgets/nautilus-caption.h:
      New class.  Common stuff for caption widgets.
      
      * nautilus-widgets/nautilus-string-picker.c:
      (nautilus_string_picker_initialize_class),
      (nautilus_string_picker_initialize), (entry_changed_callback),
      (nautilus_string_picker_set_string_list):
      * nautilus-widgets/nautilus-string-picker.h:
      Subclass from caption class.
      
      * nautilus-widgets/nautilus-text-caption.h:
      * nautilus-widgets/nautilus-text-caption.c:
      (nautilus_text_caption_initialize_class),
      (nautilus_text_caption_initialize),
      (nautilus_text_caption_destroy), (entry_changed_callback),
      (nautilus_text_caption_new), (nautilus_text_caption_get_text),
      (nautilus_text_caption_set_text):
      New caption sublcass that manages an text widget.
      
      * nautilus-widgets/test-nautilus-widgets.c: (main),
      (test_string_picker), (test_text_caption),
      (string_picker_changed_callback), (text_caption_changed_callback):
      Update for new class and caption changes.
      a52bf479
    • Ramiro Estrugo's avatar
  3. 05 Jun, 2000 8 commits
    • John Sullivan's avatar
      Used newly-publicized functions from gnome-vfs-mime-handlers.c · 64265335
      John Sullivan authored
      	to avoid replicating a bunch of code.
      
      	* libnautilus-extensions/nautilus-mime-actions.c:
      	(gnome_vfs_mime_application_matches_id),
      	(gnome_vfs_mime_component_matches_id),
      	(gnome_vfs_mime_id_in_application_list),
      	(gnome_vfs_mime_id_in_component_list),
      	(id_list_from_application_list),
      	(id_list_from_component_list):
      	Removed these functions.
      
      	(nautilus_mime_add_application_to_short_list_for_uri),
      	(nautilus_mime_remove_application_from_short_list_for_uri),
      	(nautilus_mime_add_component_to_short_list_for_uri),
      	(nautilus_mime_remove_component_from_short_list_for_uri):
      	Rewrote to call newly-publicized gnome-vfs-mime functions.
      64265335
    • John Sullivan's avatar
      Cleaned up the directory view code that launches applications · 715b2e71
      John Sullivan authored
      	or switches to viewers so that when bugs 1053 and 1072 are
      	fixed it will be trivial to finish this code.
      
      	* libnautilus-extensions/nautilus-gtk-extensions.h,
      	* libnautilus-extensions/nautilus-gtk-extensions.c:
      	(nautilus_gtk_signal_connect_free_data_custom): New function
      	to specify a GtkDestroyNotify function when connecting to a
      	signal, without having to specify everything else in
      	gtk_signal_connect_full.
      	(nautilus_gtk_signal_connect_free_data): Changed to call
      	nautilus_gtk_signal_connect_free_data_custom.
      
      	* libnautilus-extensions/nautilus-view-identifier.c:
      	(nautilus_view_identifier_copy): Made it handle NULL parameter.
      
      	* src/file-manager/fm-directory-view.c:
      	(application_launch_parameters_new),
      	(application_launch_parameters_free),
      	(viewer_launch_parameters_new),
      	(viewer_launch_parameters_free): New helper functions for
      	dealing with the structs needed to launch an app or viewer.
      
      	(fm_directory_view_launch_application): New wrapper for
      	nautilus_launch_application that will let us handle
      	errors in a single place.
      
      	(switch_location_and_view): New bottleneck function or going
      	to a particular location with a particular viewer. This
      	doesn't work yet (bug 1053) and it currently puts up a
      	message box telling the user so.
      
      	(fm_directory_view_chose_application_callback),
      	(fm_directory_view_chose_component_callback), (choose_program),
      	(choose_application), (choose_component),
      	(launch_application_from_menu_item), (view_uri_from_menu_item),
      	(add_application_to_gtk_menu), (add_component_to_gtk_menu),
      	(create_open_with_gtk_menu), (bonobo_launch_application_callback),
      	(add_application_to_bonobo_menu),
      	(bonobo_open_location_with_viewer_callback),
      	(add_component_to_bonobo_menu):
      	Reworked to pass around launch_parameters structs instead of other
      	bits and pieces of info. Darin will be happy to know that info
      	needed for menu item callbacks is now bundled up and passed as
      	the callback data instead of sneaking in as gtk_object_data.
      715b2e71
    • Ramiro Estrugo's avatar
      Bug 647. Should report missing special directories to user. · 5aef445a
      Ramiro Estrugo authored
      * libnautilus-extensions/nautilus-file-utilities.c:
      (nautilus_get_user_directory), (nautilus_get_desktop_directory),
      (nautilus_get_user_main_directory):
      Fixed uninitialized static pointers.  Remove FIXME blurbs are
      error checking happens "above" in nautilus-application now.
      
      * src/nautilus-application.c:
      (nautilus_app_check_user_directories), (nautilus_app_startup):
      Add error checking for missing user directories with appropiate
      FIXME for current bad names for these dirs.
      5aef445a
    • Ramiro Estrugo's avatar
      Added FIXME note for bug 1117. · 56f04f29
      Ramiro Estrugo authored
      * libnautilus-extensions/nautilus-file-utilities.c:
      Added FIXME note for bug 1117.
      56f04f29
    • Ramiro Estrugo's avatar
      New function. Return the string list items concatenated into a single · c64e1a28
      Ramiro Estrugo authored
      * libnautilus-extensions/nautilus-string-list.c:
      (nautilus_string_list_as_concatenated_string),
      (nautilus_self_check_string_list):
      * libnautilus-extensions/nautilus-string-list.h:
      New function.  Return the string list items concatenated into a
      single string delimited by a given delimeter.
      c64e1a28
    • Andy Hertzfeld's avatar
      dont install any web-based linksets by default · 012025c7
      Andy Hertzfeld authored
      
              dont install any web-based linksets by default
      012025c7
    • Andy Hertzfeld's avatar
      added some web linksets and made nautilus-link support remote images by · e7d66062
      Andy Hertzfeld authored
      
             added some web linksets and made nautilus-link support remote images by
             fetching them through http and caching them locally.
      e7d66062
    • Andy Hertzfeld's avatar
      generalized toolbar icon themes to support any number, and reorganized · 68eeed5c
      Andy Hertzfeld authored
      
              generalized toolbar icon themes to support any number, and
      	reorganized appearance preference panel to group the icon theme
      	selectors together.  Also, added a cleaner version of the zoom icon.
      68eeed5c
  4. 03 Jun, 2000 5 commits
    • Ian McKellar's avatar
    • Darin Adler's avatar
      Fixed a component/application typo. · 7cc83c94
      Darin Adler authored
      	* libnautilus-extensions/nautilus-mime-actions.c:
      	(nautilus_mime_remove_component_from_short_list_for_uri):
      	Fixed a component/application typo.
      7cc83c94
    • Darin Adler's avatar
      Tiny tweak. (nautilus_mime_get_short_list_components_for_uri): Fixed a · ebb487ef
      Darin Adler authored
      	* libnautilus-extensions/nautilus-mime-actions.c:
      	(nautilus_mime_get_default_action_type_for_uri):
      	Tiny tweak.
      	(nautilus_mime_get_short_list_components_for_uri):
      	Fixed a double destroy and a storage leak.
      ebb487ef
    • John Sullivan's avatar
      Provided implementations for these functions (formerly empty). · fd6f85b6
      John Sullivan authored
      	* libnautilus-extensions/nautilus-mime-actions.c:
      	(nautilus_mime_add_application_to_short_list_for_uri),
      	(nautilus_mime_remove_application_from_short_list_for_uri),
      	(nautilus_mime_add_component_to_short_list_for_uri),
      	(nautilus_mime_remove_component_from_short_list_for_uri):
      	Provided implementations for these functions (formerly empty).
      	Unfortunately bad things happen when I invoke them. Will
      	debug now.
      	(id_list_from_application_list), (id_list_from_component_list),
      	(gnome_vfs_mime_application_matches_id),
      	(gnome_vfs_mime_component_matches_id), (component_has_id_in_list),
      	(gnome_vfs_mime_id_in_application_list),
      	(gnome_vfs_mime_id_in_component_list): New helper functions all
      	used to implement the add/remove functions.
      fd6f85b6
    • Ramiro Estrugo's avatar
      Add a boolean preference for toggling the display of hidden files. · 6eedbb72
      Ramiro Estrugo authored
      * libnautilus-extensions/nautilus-global-preferences.c:
      (global_preferences_create_dialog):
      Add a boolean preference for toggling the display of hidden files.
      
      In order to make space for this one, i moved the remote views one
      to a new tradeoffs pane, which was commandeered by sullivan.
      6eedbb72
  5. 02 Jun, 2000 11 commits
    • Andy Hertzfeld's avatar
      added a new theme for vector based icons, and a generalized theme selector · fe8d6ede
      Andy Hertzfeld authored
      
                added a new theme for vector based icons, and a generalized
      	  theme selector to the preferences dialog
      fe8d6ede
    • Darin Adler's avatar
      Need to unencode the name here because it's used to compare with file · 58b235f0
      Darin Adler authored
      	* libnautilus-extensions/nautilus-directory.c: (uri_get_basename):
      	Need to unencode the name here because it's used to compare with
      	file names that come from get_file_info.
      
      	* src/file-manager/dfos-xfer.c: (get_parent_make_name_list):
      	Unescape the result of get_basename to convert it to a plain old
      	file name, since that's why gnome_vfs_xfer wants in its file name
      	lists (for now, see bug 1107).
      
      	* libnautilus-extensions/Makefile.am:
      	* libnautilus-extensions/nautilus-file-changes-queue-private.h:
      	Removed the private header since it's so private it can be in the
      	.c file :-)
      
      	* libnautilus-extensions/nautilus-file-changes-queue.h:
      	* libnautilus-extensions/nautilus-file-changes-queue.c:
      	(nautilus_file_changes_queue_new),
      	(nautilus_file_changes_queue_get), (nautilus_file_change_free),
      	(nautilus_file_changes_queue_free),
      	(nautilus_file_changes_queue_add_common),
      	(nautilus_file_changes_queue_get_change):
      	A little simplification and reformatting. Got rid of the details
      	indirection since the entire data structure is private.
      58b235f0
    • John Sullivan's avatar
      libnautilus-extensions/nautilus-mime-actions.h, New prototypes and empty · c846f982
      John Sullivan authored
      	* libnautilus-extensions/nautilus-mime-actions.h,
      	* libnautilus-extensions/nautilus-mime-actions.c:
      	(nautilus_mime_add_application_to_short_list_for_uri),
      	(nautilus_mime_remove_application_from_short_list_for_uri),
      	(nautilus_mime_add_component_to_short_list_for_uri),
      	(nautilus_mime_remove_component_from_short_list_for_uri):
      	New prototypes and empty function bodies, convenience
      	covers for modifying the short lists. Not yet implemented,
      	but callable.
      
      	* libnautilus-extensions/nautilus-program-chooser.c:
      	(add_to_short_list_for_file), (remove_from_short_list_for_file),
      	(add_to_short_list_for_type), (remove_from_short_list_for_type),
      	(run_program_configurator_callback): Wired up things so if
      	the user switches radio buttons in the "Modify details" dialog,
      	the right code is called when they hit OK. But this right code
      	doesn't yet do anything.
      c846f982
    • Anders Carlsson's avatar
      Reduce flicker by setting the back pixmap to NULL on realize. · 52c63f19
      Anders Carlsson authored
      2000-06-02  Anders Carlsson  <andersca@gnu.org>
      
      	* libnautilus-extensions/nautilus-icon-container.c (realize):
      	Reduce flicker by setting the back pixmap to NULL on realize.
      52c63f19
    • Ramiro Estrugo's avatar
      Dont show dot files in the intermediate user leve. Thanks to carbamide for · 39a8ece4
      Ramiro Estrugo authored
      * libnautilus-extensions/nautilus-global-preferences.c:
      Dont show dot files in the intermediate user leve.  Thanks to
      carbamide for catching this.
      39a8ece4
    • John Sullivan's avatar
      Finished task 968 (Add one-time viewer choice to "View as" · aa407de8
      John Sullivan authored
      	menu temporarily)
      
      	* libnautilus-extensions/nautilus-view-identifier.h,
      	* libnautilus-extensions/nautilus-view-identifier.c:
      	(nautilus_view_identifier_copy): New function, does the obvious.
      
      	* src/nautilus-applicable-views.h: Made NautilusNavigationInfo
      	store a NautilusViewIdentifier instead of just the iid part
      	in initial_content_iid (now initial_content_id).
      
      	* src/nautilus-applicable-views.c: (set_initial_content_id),
      	(got_file_info_callback), (nautilus_navigation_info_free):
      	Reworked code to handle change from char *iid to NautilusViewIdentifier.
      
      	* src/nautilus-window.h: New field for content_view_id,
      	a NautilusViewIdentifier for the current view.
      
      	* src/nautilus-window-private.h,
      	* src/nautilus-window-manage-views.c:
      	(nautilus_window_load_content_view): Now takes a
      	NautilusViewIdentifier * instead of just a char *,
      	and resets content_view_id field.
      	(nautilus_window_update_state): Reworked code to handle
      	initial_content_iid change.
      
      	* src/nautilus-window.c:
      	(nautilus_window_destroy): Destroy content_view_id.
      	(nautilus_window_switch_views), (view_menu_switch_views_callback):
      	Reworked to take NautilusViewIdentifier * instead of just char *.
      	(create_content_view_menu_item): New helper function, extracted
      	from nautilus_window_load_content_view_menu.
      	(replace_special_current_view_in_content_view_menu): New
      	function, does the work of putting the current content view
      	as the initial item in the menu, followed by a separator.
      	(nautilus_window_synch_content_view_menu): Calls
      	replace_special_current_view_in_content_menu if the current view
      	is not found in the menu.
      	(chose_component_callback): Took out fixed FIXMEs.
      	(nautilus_window_load_content_view_menu): Now calls function
      	that was extracted from it.
      aa407de8
    • Ramiro Estrugo's avatar
      Task 667. Unhardcode font strings. · bbb7d78b
      Ramiro Estrugo authored
      * libnautilus-extensions/nautilus-font-factory.c:
      (nautilus_get_current_font_factory), (nautilus_font_factory_get),
      (nautilus_font_factory_new), (nautilus_font_factory_initialize),
      (nautilus_font_factory_initialize_class), (font_hash_node_alloc),
      (font_hash_node_free), (font_hash_node_lookup),
      (font_hash_node_lookup_with_insertion),
      (nautilus_font_factory_get_font_by_family),
      (nautilus_font_factory_get_font_from_preferences),
      (nautilus_font_factory_get_fallback_font), (make_font_name_string):
      * libnautilus-extensions/nautilus-font-factory.h:
      New class to obtain fonts either by family or from preferences.  A
      specific size can be requested.
      
      Right now its a pretty dumb class, but it can be enhanced to do
      smart things like looking at gtkstyles and/or smarted choosing of
      fonts if the specifically requested size is not avialable.
      
      * components/hardware/nautilus-hardware-view.c: (setup_form_title):
      * components/music/nautilus-music-view.c:
      (nautilus_music_view_initialize):
      * components/rpmview/nautilus-rpm-view.c:
      (nautilus_rpm_view_initialize):
      * components/services/startup/nautilus-view/nautilus-service-startup-view.c:
      (setup_form_title):
      * libnautilus-extensions/Makefile.am:
      * libnautilus-extensions/nautilus-icon-container.c:
      (nautilus_icon_container_initialize):
      * src/nautilus-property-browser.c:
      (nautilus_property_browser_initialize):
      * src/nautilus-sidebar-title.c: (nautilus_index_title_update_info):
      Unhardcode xlfd font strings in all of these and use the font
      factory instead.
      bbb7d78b
    • Pavel Cisler's avatar
      Fix a bug that caused a crash when dropping dragged items back in their · 9adeb195
      Pavel Cisler authored
      2000-06-02  Pavel Cisler  <pavel@eazel.com>
      
      	* src/file-manager/fm-list-view.c: (fm_list_handle_dropped_icons):
      	Fix a bug that caused a crash when dropping dragged items back
      	in their original location.
      
      	* libnautilus-extensions/nautilus-drag.c:
      	(nautilus_drag_drag_data_get):
      	Tweak whitespace.
      9adeb195
    • Darin Adler's avatar
      Fix typo that caused us to unref a NULL GdkBitmap. · abf488d6
      Darin Adler authored
      	* libnautilus-extensions/nautilus-drag.c:
      	(nautilus_drag_finalize): Fix typo that caused us to unref a NULL
      	GdkBitmap.
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(nautilus_icon_dnd_fini): Fix double-free that caused everything
      	to go haywire.
      
      	* src/file-manager/fm-directory-view.c:
      	(add_component_to_gtk_menu), (add_component_to_bonobo_menu):
      	Marked a couple of strings for localization that were missed.
      abf488d6
    • Darin Adler's avatar
      Ignore some Makefile and Makefile.in files. · a51a8ee5
      Darin Adler authored
      	* components/services/install/idl/.cvsignore:
      	* components/services/time/idl/.cvsignore:
      	Ignore some Makefile and Makefile.in files.
      
      	* data/linksets/Makefile.am:
      	* data/linksets/desktop.xml:
      	Added a link set for the trash on the desktop.
      
      	* icons/Makefile.am:
      	Added a trash icon (actually a copy of the Nautilus icon right
      	now :-).
      
      	* libnautilus-extensions/nautilus-link-set.h:
      	* libnautilus-extensions/nautilus-link-set.c: (create_new_link),
      	(nautilus_link_set_install), (nautilus_link_set_remove):
      	Fixed some URI-related issues and added a special case for the ~
      	character so we can have link sets that are for the home directory.
      
      	* libnautilus-extensions/nautilus-string.c:
      	(nautilus_str_capitalize): Got rid of the unneeded call to strlen.
      	strlen == 0 is the slowest way I know to check for an empty string.
      	Also check islower before calling toupper for paranoia like the
      	calls in glib do (internally).
      
      	* src/nautilus-desktop-window.c: (nautilus_desktop_window_new):
      	Install the desktop link set when we are created. For now this
      	installs the trash (in a fairly lame way).
      
      	* src/nautilus-property-browser.c: (remove_color),
      	(add_color_to_file), (make_properties_from_xml_node),
      	(nautilus_property_browser_update_contents):
      	Changed code to not reference "childs" directly so it's easy to
      	switch to a new version of gnome-xml.
      
      	* test/.cvsignore: Ignore test-nautilus-mime-actions-set.
      a51a8ee5
    • Ramiro Estrugo's avatar
      Task 518. Support for changing preferecens individually · 8e29ec7f
      Ramiro Estrugo authored
      within each confgurable user level.
      
      * libnautilus-extensions/nautilus-global-preferences.h:
      Change all preferences strings to not include the "/nautilus"
      prefix.  The prefix is not automatically computed by the prefences
      api taking into account the user level.
      
      Add (nautilus_global_preferences_dialog_update) to rebuild the
      preferences dialog when the user level changes.
      
      * libnautilus-extensions/nautilus-global-preferences.c:
      (global_preferences_get_dialog),
      (global_preferences_register_sidebar_panels_preferences_for_ui),
      (global_preferences_register_with_defaults),
      (global_preferences_register_boolean_with_defaults),
      (global_preferences_register_string_with_defaults),
      (global_preferences_register_enum_with_defaults),
      (global_preferences_register_for_ui),
      (global_preferences_initialize_if_needed),
      (nautilus_global_preferences_show_dialog),
      (nautilus_global_preferences_hide_dialog),
      (nautilus_global_preferences_set_dialog_title),
      (nautilus_global_preferences_dialog_update),
      (nautilus_global_preferences_shutdown):
      remove the user level tracking hack.  We now set default values
      for each of the user levels.
      
      * libnautilus-extensions/nautilus-icon-container.c:
      (nautilus_icon_container_initialize):
      Simplified preference callback api by having a single add_callback
      function.  Use it here.
      
      * libnautilus-extensions/nautilus-list.c:
      (nautilus_list_initialize):
      Simplified preference callback api by having a single add_callback
      function.  Use it here.
      
      * src/file-manager/fm-directory-view.c:
      (fm_directory_view_initialize):
      Simplified preference callback api by having a single add_callback
      function.  Use it here.
      
      * nautilus-widgets/nautilus-preference.c:
      (preference_initialize_if_needed), (preference_hash_node_alloc),
      (preference_hash_node_free_func), (preference_hash_node_free),
      (preference_register), (preference_hash_node_lookup),
      (preference_hash_node_lookup_with_registration),
      (nautilus_preference_shutdown), (nautilus_preference_find_by_name),
      (nautilus_preference_set_info_by_name),
      (nautilus_preference_enum_add_entry_by_name):
      * nautilus-widgets/nautilus-preference.h:
      Move the preference description hash table here from
      nautilus-preferences.  These are preferences that are expected to
      have nice defaults as well as descriptions and possibly extra data
      for the preferences widgets to use (like enumeration values)
      
      I moved the tabulation and hashing stuff intactly even though it
      contains many turds.  I plan to fix these soon.
      
      * nautilus-widgets/nautilus-preferences-group.c:
      (nautilus_preferences_group_add_item):
      * nautilus-widgets/nautilus-preferences-item.c:
      (preferences_item_construct), (enum_radio_group_changed_callback):
      Update for the above.
      
      * nautilus-widgets/nautilus-preferences.c:
      (preferences_hash_node_alloc), (preferences_hash_node_free),
      (preferences_hash_node_add_callback),
      (preferences_hash_node_remove_callback),
      (preferences_hash_node_check_changes_func),
      (preferneces_callback_node_invoke_func), (preferences_register),
      (preferences_hash_node_lookup_with_registration),
      (preferences_gconf_callback), (user_level_changed_callback),
      (preferences_initialize_if_needed),
      (nautilus_preferences_add_callback),
      (nautilus_preferences_set_boolean),
      (nautilus_preferences_get_boolean),
      (nautilus_preferences_set_enum), (nautilus_preferences_get_enum),
      (nautilus_preferences_set), (nautilus_preferences_get),
      (nautilus_preferences_shutdown):
      * nautilus-widgets/nautilus-preferences.h:
      Move the tabulation of nice preferences to nautilus-preference.
      
      Install one gconf notification for each user level.  Remove all
      the extra unused registration parameters.
      
      Use generated keys that take into account the current user level
      to communicato with GConf.
      
      Keep track of user level changes so that we can compare
      preferences between user levels and fire callbacks accordingly.
      This simplifies the lifes of preferences callers as they can
      continue to install one simple callback as before.  They will get
      notified when a preference changes for whatever reason.  That
      could be the user manaually tweaking it, or a sweeping user level
      change.
      
      Again, i tried to keep as much of the original hashing logic
      intact.  It needs cleaning up as well.
      
      * nautilus-widgets/nautilus-user-level-manager.c:
      (nautilus_user_level_manager_set_default_value_if_needed),
      (nautilus_user_level_manager_compare_preference_between_user_levels
      ):
      * nautilus-widgets/nautilus-user-level-manager.h:
      Add a public function to determine whether a preference is the
      same between 2 user levels.
      
      * nautilus-widgets/test-nautilus-preferences.c:
      (register_global_preferences):
      Update to reflect api changes.
      
      * src/nautilus-window-menus.c: (nautilus_window_initialize_menus),
      (user_level_changed_callback),
      (get_customize_user_level_setttings_menu_string),
      (update_preferences_dialog_title):
      Update the preferences dialog whenever the user level changes.
      This is an easy way to have the dialog reflect reallity.
      
      It would be a lot nicer it the contents updated on the fly instead
      of rebuilding the whole thing.  I can do that later.
      8e29ec7f