1. 13 Dec, 2000 1 commit
    • Darin Adler's avatar
      reviewed by: John Sullivan <sullivan@eazel.com> · ac2ec5b5
      Darin Adler authored
      	Fixed bug 1948 ("Open in New Window" menu item reuses existing
      	window if it exists) by separating the explicit "open in new
      	window" feature (always gives a new window) from the "open all
      	items in new windows" preference (reuses window if one with the
      	right location already exists).
      
      	* libnautilus/nautilus-view-component.idl: Added new
      	open_location_prefer_existing_window call. Renamed open_location
      	to open_location_in_this_window and open_location_in_new_window to
      	open_location_force_new_window for clarity.
      
      	* libnautilus/nautilus-view.h:
      	* libnautilus/nautilus-view.c:
      	(nautilus_view_open_location_in_this_window),
      	(nautilus_view_open_location_prefer_existing_window),
      	(nautilus_view_open_location_force_new_window):
      	* src/nautilus-view-frame-corba.c:
      	(impl_Nautilus_ViewFrame_open_location_in_this_window),
      	(impl_Nautilus_ViewFrame_open_location_prefer_existing_window),
      	(impl_Nautilus_ViewFrame_open_location_force_new_window):
      	* src/nautilus-view-frame-private.h:
      	* src/nautilus-view-frame.c:
      	(nautilus_view_frame_initialize_class),
      	(nautilus_view_frame_open_location_in_this_window),
      	(nautilus_view_frame_open_location_prefer_existing_window),
      	(nautilus_view_frame_open_location_force_new_window):
      	* src/nautilus-view-frame.h:
      	Add new call, rename old ones.
      
      	* src/file-manager/fm-directory-view.c: (open_callback): Pass parameter
      	to tell the open code to respect the "use new windows" preference.
      	(open_location): Take new WindowChoice parameter to respect preference
      	as appropriate.
      	(switch_location_and_view): Tell the code to respect the preference in
      	this case (opening from Open With).
      	(show_trash_callback): Use code that respects the preference instead of
      	always opening in this case.
      	(open_one_in_new_window): Always force a new window (used by Open
      	in New Window command).
      	(activate_callback): Pass through new WindowChoice instead of boolean.
      	(fm_directory_view_activate_file): Pass through new WindowChoice
      	instead of boolean.,
      	(fm_directory_view_activate_files): Respect the user preference if
      	opening only one file, do the "use existing window or make new one"
      	mode if opening more than one.
      
      	* src/nautilus-window-manage-views.c: (handle_unreadable_location):
      	Move check for empty location string in here.
      	(open_location): Moved the code for reusing existing windows out
      	of here. Also changed code structure to avoid redoing the
      	handle_unreadable_location check.
      	(open_location_in_this_window_callback): Renamed.
      	(open_location_prefer_existing_window_callback): Here's where
      	the code for reusing existing windows went. New callback for the
      	new call/signal.
      	(open_location_force_new_window_callback): Renamed.
      
      	* src/file-manager/fm-search-list-view.c:
      	(reveal_selected_items_callback): Change to use
      	nautilus_view_open_location_force_new_window by its new name.
      
      	* src/nautilus-window-manage-views.h: Got rid of
      	nautilus_window_open_location_in_new_window, which was public and
      	unused.
      
      	* components/adapter/nautilus-adapter.c:
      	(nautilus_adapter_open_location_callback):
      	* components/help/hyperbola-nav-index.c:
      	(hyperbola_navigation_index_select_row):
      	* components/help/hyperbola-nav-search.c:
      	(hyperbola_navigation_search_select_row):
      	* components/help/hyperbola-nav-tree.c:
      	(hyperbola_navigation_tree_select_row):
      	* components/history/nautilus-history-view.c:
      	(history_button_release):
      	* components/mozilla/nautilus-mozilla-content-view.c:
      	(mozilla_open_uri_callback), (mozilla_dom_mouse_click_callback):
      	* components/rpmview/nautilus-rpm-view.c: (go_to_button_callback):
      	* components/services/login/nautilus-view/nautilus-change-password-view.c:
      	(run_away_timer), (authn_failed), (maintenance_button_cb):
      	* components/services/summary/nautilus-view/nautilus-summary-callbacks.c:
      	(logged_in_callback), (logged_out_callback),
      	(preferences_button_cb), (forgot_password_button_cb),
      	(register_button_cb):
      	* components/services/summary/nautilus-view/nautilus-summary-dialogs.c:
      	(error_dialog_cancel_cb):
      	* components/services/summary/nautilus-view/nautilus-summary-footer.c:
      	(footer_item_clicked_callback):
      	* components/services/summary/nautilus-view/nautilus-summary-view.c:
      	(goto_service_cb), (goto_update_cb):
      	* components/text/nautilus-text-view.c: (handle_service_menu_item):
      	* components/tree/nautilus-tree-view.c: (tree_select_row_callback):
      	Change to use new nautilus_view_open_location_in_this_window
      	name. It's better because it's more explicit, but also, it's the
      	new name!
      
      	* libnautilus-extensions/nautilus-gdk-extensions.c:
      	(nautilus_gdk_window_bring_to_front): Fixed indentation.
      
      	* libnautilus-extensions/nautilus-gtk-extensions.c:
      	(nautilus_gtk_window_present): Put in a new implementation that
      	uses nautilus_gdk_window_bring_to_front instead of the old one
      	that did a hide followed by a show. Corrected an assert that
      	should have been a return_if_fail.
      ac2ec5b5
  2. 14 Nov, 2000 3 commits
    • Gene Z. Ragan's avatar
      Fixed a bug where changing the Nautilus theme would cause the history view · 291a4ccd
      Gene Z. Ragan authored
      2000-11-14  Gene Z. Ragan  <gzr@eazel.com>
      
      	Fixed a bug where changing the Nautilus theme would cause
      	the history view to crash.  The problem was with an
      	improperly defined signal handler.
      
      	* components/history/nautilus-history-view.c:
      	(history_view_update_icons), (do_destroy), (make_obj):
      291a4ccd
    • Gene Z. Ragan's avatar
      Fixed bug 1633, History sidebar panel items all display generic bookmark · 5b90ae9c
      Gene Z. Ragan authored
      2000-11-13  Gene Z. Ragan  <gzr@eazel.com>
      
      	Fixed bug 1633, History sidebar panel items all display generic
      	bookmark icon.
      
      	* libnautilus/nautilus-view-component.idl:
      	Added icon string element to History structure to hold
      	an pifbuf converted to a XML string.
      
      	* src/nautilus-window-manage-views.c: (get_history_list_callback):
      	Get bookmark pixbuf, convert it to XML and copt the XML string into
      	the CORBA structure that is added to the list to be returned.
      
      	* components/history/nautilus-history-view.c:
      	(install_icon):
      	Check and see if pixbuf is non-NULL. If it is, use it. Otherwise
      	use the generic bookmark icon.
      
      	(history_view_update_icons):
      	Reload entire list to ensure that proper icons are used.
      
      	(history_load_location):
      	Call install_icon with new pixbuf parameter.
      5b90ae9c
    • Pavel Cisler's avatar
      reviewed by: Darin Adler <darin@eazel.com> · b7c2daf9
      Pavel Cisler authored
      2000-11-13  Pavel Cisler  <pavel@eazel.com>
      
      	reviewed by: Darin Adler <darin@eazel.com>
      
      	* configure.in:
      	Enable the sign-compare and cast-align warnings.
      
      	* components/help/converters/gnome-db2html2/gdb3html.c:
      	(find_first_element):
      	* components/help/hyperbola-filefmt.c: (fmt_free_tree_info):
      	* components/help/hyperbola-nav-index.c:
      	(hyperbola_navigation_index_update_clist), (despace),
      	(end_element):
      	* components/history/nautilus-history-view.c:
      	(history_load_location):
      	* components/mozilla/nautilus-mozilla-content-view.c:
      	(string_list_get_index_of_string):
      	* components/services/install/lib/eazel-install-corba-types.c:
      	(corba_string_sequence_to_glist),
      	(corba_packagedatastructlist_from_packagedata_list),
      	(packagedata_list_from_corba_packagedatastructlist),
      	(categorydata_list_from_corba_categorystructlist):
      	* components/services/install/lib/eazel-install-query.c:
      	(eazel_install_simple_rpm_query):
      	* components/services/install/lib/eazel-install-rpm-glue.c:
      	(eazel_install_monitor_rpm_process_pipe):
      	* components/services/install/lib/eazel-install-rpm-signature.c:
      	(read_rpm_lead), (read_rpm_signature):
      	* components/services/trilobite/libtrilobite/trilobite-root-helper.
      	c: (trilobite_root_helper_run_program),
      	(trilobite_root_helper_set_time):
      	* cut-n-paste-code/widgets/nautilusclist/nautilusclist.c:
      	(nautilus_clist_get_arg), (nautilus_clist_construct):
      	* helper-utilities/authenticate/nautilus-authenticate.c: (main):
      	* libnautilus-extensions/nautilus-background.c:
      	(set_image_and_color_image_loading_done_callback):
      	* libnautilus-extensions/nautilus-buffered-widget.c:
      	(nautilus_gdk_pixbuf_tile_alpha):
      	* libnautilus-extensions/nautilus-caption-table.c:
      	(entry_activate):
      	* libnautilus-extensions/nautilus-caption-table.h:
      	* libnautilus-extensions/nautilus-ctree.c:
      	(nautilus_ctree_node_nth), (nautilus_ctree_drag_motion):
      	* libnautilus-extensions/nautilus-ctree.h:
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(metafile_write):
      	* libnautilus-extensions/nautilus-file-changes-queue.c:
      	(nautilus_file_changes_consume_changes):
      	* libnautilus-extensions/nautilus-file-operations-progress.c:
      	(truncate_string_from_start):
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(extract_string_until):
      	* libnautilus-extensions/nautilus-file-utilities.c:
      	(nautilus_read_entire_file):
      	* libnautilus-extensions/nautilus-gdk-extensions.c:
      	(nautilus_get_largest_fitting_font):
      	* libnautilus-extensions/nautilus-global-preferences.c:
      	(global_preferences_get_sidebar_panel_view_identifiers):
      	* libnautilus-extensions/nautilus-gtk-extensions.c:
      	(nautilus_gtk_window_set_initial_geometry_from_string),
      	(nautilus_gtk_menu_set_item_visibility):
      	* libnautilus-extensions/nautilus-icon-canvas-item.c:
      	(draw_or_measure_label_text), (draw_or_measure_label_text_aa):
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(rubberband_timeout_callback), (destroy), (compute_stretch):
      	* libnautilus-extensions/nautilus-icon-container.h:
      	(nautilus_icon_container_find_drop_target):
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(check_recently_used_list), (get_themed_icon_file_path),
      	(revise_scale_factors_if_too_big):
      	* libnautilus-extensions/nautilus-icon-text-item.c:
      	(recompute_bounding_box), (iti_draw), (iti_selection_motion):
      	* libnautilus-extensions/nautilus-label.c:
      	(nautilus_label_size_allocate), (label_recompute_line_geometries):
      	* libnautilus-extensions/nautilus-list.c: (draw_cell),
      	(nautilus_list_drag_data_received):
      	* libnautilus-extensions/nautilus-mime-actions.c:
      	(server_matches_content_requirements),
      	(nautilus_do_component_query):
      	* libnautilus-extensions/nautilus-password-dialog.c:
      	(caption_table_activate_callback):
      	* libnautilus-extensions/nautilus-preferences-item.c:
      	(has_image_file):
      	* libnautilus-extensions/nautilus-scalable-font.c:
      	(file_as_string), (parse_font_description_file),
      	(nautilus_text_layout_new):
      	* libnautilus-extensions/nautilus-scalable-font.h:
      	* libnautilus-extensions/nautilus-volume-monitor.c:
      	(check_permissions):
      	* libnautilus/nautilus-view.c:
      	(nautilus_shallow_g_list_from_uri_list):
      	* libnautilus/nautilus-zoomable.c:
      	(nautilus_g_list_from_ZoomLevelList):
      	* librsvg/rsvg-ft.c: (rsvg_ft_measure_or_render_string):
      	* librsvg/rsvg.c: (rsvg_parse_transform):
      	* src/file-manager/fm-icon-view.c:
      	(fm_icon_view_create_background_context_menu_items),
      	(get_sort_criterion_by_metadata_text), (get_sort_criterion_by_id):
      	* src/file-manager/fm-list-view.c: (select_row_common),
      	(select_matching_name_callback), (select_previous_next_common),
      	(fm_list_view_bump_zoom_level):
      	* src/nautilus-search-bar-criterion.c:
      	(nautilus_search_bar_criterion_update_valid_criteria_choices):
      	* src/nautilus-shell.c: (corba_open_windows),
      	(corba_open_default_window):
      	* src/nautilus-sidebar.c: (nautilus_sidebar_add_panel_items):
      	* src/nautilus-window-menus.c:
      	(nautilus_window_disable_keyboard_navigation_for_menus):
      	* src/nautilus-window.c: (nautilus_window_size_request):
      	Fix all sign-compare violations.
      b7c2daf9
  3. 04 Nov, 2000 1 commit
    • Darin Adler's avatar
      Tell everyone that we are back on bonobo HEAD. Make sure Nautilus doesn't · a96c73cb
      Darin Adler authored
      	* README: Tell everyone that we are back on bonobo HEAD.
      	* configure.in: Make sure Nautilus doesn't try to compile with the
      	old bonobo.
      
      	* components/adapter/nautilus-adapter-embed-strategy.c:
      	(nautilus_adapter_embed_strategy_get):
      	* components/adapter/nautilus-adapter-load-strategy.c:
      	(nautilus_adapter_load_strategy_get):
      	* components/adapter/nautilus-adapter-progressive-load-strategy.c:
      	(nautilus_adapter_progressive_load_strategy_load_location):
      	* components/history/nautilus-history-view.c:
      	(history_view_frame_call_begin):
      	* libnautilus/nautilus-undo.c: (set_up_bonobo_control):
      	* libnautilus/nautilus-view.c: (view_frame_call_begin):
      	* libnautilus/nautilus-zoomable.c:
      	(nautilus_zoomable_ensure_zoomable_frame):
      	Fix all the callers of query_interface in CORBA to call it
      	queryInterface (I used the Bonobo script to do it).
      
      	* src/nautilus-window.h:
      	* src/nautilus-window.c: (nautilus_window_constructed),
      	(nautilus_window_set_arg), (nautilus_window_get_arg),
      	(nautilus_window_set_content_view_widget): Update for BonoboWin ->
      	BonoboWindow change. Once again, the change was done by the Bonobo
      	script (but I had to undo the spaces it ate after BONOBO_WIN).
      
      	* components/services/install/idl/trilobite-eazel-install.idl:
      	* components/services/time/idl/trilobite-eazel-time-service.idl:
      	* components/services/trilobite/idl/trilobite-service.idl:
      	* components/services/trilobite/sample/idl/sample-service.idl:
      	* libnautilus-adapter/nautilus-adapter-factory.idl:
      	* libnautilus/nautilus-distributed-undo.idl:
      	* libnautilus/nautilus-view-component.idl:
      	Since IDL dependencies don't work, I touched every IDL file to
      	make the switchover smoother. This only works if people update
      	before they try to build and fail, otherwise they need to do:
      		find -name '*.xml' | xargs touch
      	(Maciej and I want to add dependency support to orbit-idl to make
      	this problem go away long term).
      
      	* src/nautilus-desktop-window.c: (realize):
      	The script updated this comment to, so I let it.
      
      	* user-guide/C/Makefile.am: Took out the botched change I made to
      	this file. Mathieu did the correct one.
      a96c73cb
  4. 05 Oct, 2000 1 commit
    • Darin Adler's avatar
      Cut over to HEAD of Bonobo. This check-in includes all the changes · 2ae47c75
      Darin Adler authored
      	needed to compile and run, but there are many things wrong
      	visually that may take a while to get fixed.
      
      	* src/nautilus-window-menus.c: (file_menu_new_window_callback),
      	(file_menu_close_window_callback),
      	(file_menu_close_all_windows_callback),
      	(file_menu_toggle_find_mode_callback),
      	(file_menu_web_search_callback), (edit_menu_undo_callback),
      	(edit_menu_cut_callback), (edit_menu_copy_callback),
      	(edit_menu_paste_callback), (edit_menu_clear_callback),
      	(go_menu_back_callback), (go_menu_forward_callback),
      	(go_menu_up_callback), (go_menu_home_callback),
      	(go_menu_forget_history_callback), (view_menu_reload_callback),
      	(view_menu_show_hide_sidebar_callback),
      	(view_menu_show_hide_tool_bar_callback),
      	(view_menu_show_hide_location_bar_callback),
      	(view_menu_show_hide_status_bar_callback),
      	(nautilus_window_update_show_hide_menu_items),
      	(view_menu_zoom_in_callback), (view_menu_zoom_out_callback),
      	(view_menu_zoom_normal_callback),
      	(bookmarks_menu_add_bookmark_callback),
      	(bookmarks_menu_edit_bookmarks_callback),
      	(user_level_customize_callback), (customize_callback),
      	(change_appearance_callback), (help_menu_about_nautilus_callback),
      	(help_menu_nautilus_feedback_callback), (switch_to_user_level),
      	(user_level_menu_item_callback), (append_placeholder),
      	(append_separator), (append_bookmark_to_menu),
      	(create_menu_item_from_node), (remove_bookmarks_after),
      	(remove_underline_accelerator_from_menu_title),
      	(new_top_level_menu), (add_user_level_menu_item),
      	(nautilus_window_initialize_menus),
      	(nautilus_window_update_find_menu_item),
      	(update_user_level_menu_items), (convert_verb_to_user_level),
      	(convert_user_level_to_verb), (update_preferences_dialog_title):
      	* src/nautilus-window.c: (nautilus_window_clear_status),
      	(nautilus_window_set_status), (install_status_bar),
      	(nautilus_window_constructed), (nautilus_window_set_arg),
      	(nautilus_window_get_arg), (nautilus_window_destroy),
      	(nautilus_window_allow_back), (nautilus_window_allow_forward),
      	(nautilus_window_allow_up), (nautilus_window_allow_reload),
      	(nautilus_window_zoom_level_changed_callback),
      	(nautilus_window_set_content_view_widget), (show_dock_item),
      	(hide_dock_item), (dock_item_showing),
      	(nautilus_window_hide_tool_bar), (nautilus_window_show_tool_bar),
      	(nautilus_window_tool_bar_showing),
      	(nautilus_window_hide_status_bar),
      	(nautilus_window_show_status_bar),
      	(nautilus_window_status_bar_showing):
      	Convert to new API. Some is disabled with #ifdef UIH.
      
      	* Makefile.am:
      	* configure.in:
      	Turned off build of the idl directory, build components after src.
      
      	* components/adapter/main.c:
      	* components/notes/nautilus-notes.c:
      	* components/sample/main.c:
      	* libnautilus-extensions/nautilus-font-picker.c:
      	* libnautilus-extensions/nautilus-global-preferences.c:
      	* libnautilus-extensions/nautilus-password-dialog.c:
      	* libnautilus-extensions/nautilus-preferences-item.c:
      	* libnautilus/nautilus-undo-transaction.c:
      	* libnautilus/nautilus-undo.c:
      	* src/nautilus-application.c:
      	* src/nautilus-history-frame.c:
      	* src/nautilus-link-set-window.c:
      	* src/nautilus-main.c:
      	* src/nautilus-shell.c:
      	* src/nautilus-sidebar.c:
      	* src/nautilus-view-frame-corba.c:
      	* src/nautilus-zoomable-frame-corba.c:
      	* test/test-nautilus-font-picker.c:
      	* test/test-nautilus-image.c: (create_font_picker_frame):
      	* test/test-nautilus-label.c: (create_font_picker_frame):
      	* test/test-nautilus-preferences.c:
      	* test/test-nautilus-widgets.c: (radio_group_load_it_up):
      	Fixed includes.
      
      	* test/test-nautilus-image.c: (create_font_picker_frame):
      	* test/test-nautilus-label.c: (create_font_picker_frame):
      	* test/test-nautilus-widgets.c: (radio_group_load_it_up):
      	Turned off localization of some strings in tests.
      
      	* components/adapter/nautilus-adapter-control-embed-strategy.c:
      	(nautilus_adapter_control_embed_strategy_new):
      	* components/adapter/nautilus-adapter-control-embed-strategy.h:
      	* components/adapter/nautilus-adapter-embed-strategy.c:
      	(nautilus_adapter_embed_strategy_get):
      	* components/adapter/nautilus-adapter-embed-strategy.h:
      	* components/adapter/nautilus-adapter-embeddable-embed-strategy.c:
      	(nautilus_adapter_embeddable_embed_strategy_new):
      	* components/adapter/nautilus-adapter-embeddable-embed-strategy.h:
      	Embedding code now deals with Bonobo_UIContainer, not
      	Bonobo_UIHandler.
      
      	* components/adapter/nautilus-adapter.c: (nautilus_adapter_new):
      	This code not only had to be changed to deal with the
      	Bonobo_UIContainer instead of Bonobo_UIHandler, but it also needed
      	to deal with the containing item (was remote_ui_handler), not the
      	local component.
      
      	* components/adapter/nautilus-adapter-embeddable-embed-strategy.c:
      	(nautilus_adapter_embeddable_embed_strategy_new):
      	* components/adapter/nautilus-adapter.c:
      	BonoboContainer was renamed BonoboItemContainer.
      
      	* components/history/nautilus-history-view.c:
      	Remove unused BonoboUIHandler * field.
      
      	* components/loser/content/Makefile.am:
      	* components/loser/sidebar/Makefile.am:
      	* components/mozilla/Makefile.am:
      	* components/sample/Makefile.am:
      	* src/Makefile.am:
      	* src/file-manager/Makefile.am:
      	Added the necessary defines and build rules to install ui.xml
      	files and locate them from the C code.
      
      	* src/file-manager/nautilus-directory-view-ui.xml:
      	* src/file-manager/nautilus-icon-view-ui.xml:
      	* src/file-manager/nautilus-search-list-view-ui.xml:
      	* src/nautilus-shell-ui.xml:
      	Added definitions of user interface.
      
      	* components/loser/content/nautilus-content-loser-ui.xml:
      	* components/loser/sidebar/nautilus-sidebar-loser-ui.xml:
      	* components/mozilla/nautilus-mozilla-ui.xml:
      	* components/sample/nautilus-sample-content-view-ui.xml:
      	Added empty placeholders for user interface.
      
      	* components/loser/content/nautilus-content-loser.c:
      	(loser_merge_bonobo_items_callback):
      	* components/loser/sidebar/nautilus-sidebar-loser.c:
      	(loser_merge_bonobo_items_callback):
      	* components/mozilla/nautilus-mozilla-content-view.c:
      	(mozilla_merge_bonobo_items_callback):
      	* components/sample/nautilus-sample-content-view.c:
      	(sample_merge_bonobo_items_callback):
      	Use nautilus_view_set_up_ui to get the user interface from a
      	ui.xml file. Put #ifdef UIH around old code to make the items work
      	that still needs to be visited.
      
      	* libnautilus-extensions/nautilus-bonobo-extensions.c:
      	* libnautilus-extensions/nautilus-bonobo-extensions.h:
      	* libnautilus-extensions/nautilus-undo-manager.c:
      	* libnautilus-extensions/nautilus-undo-manager.h:
      	* libnautilus/nautilus-clipboard.c: (add_menu_items_callback),
      	(remove_menu_items_callback),
      	(nautilus_clipboard_set_up_editable_from_bonobo_control):
      	* libnautilus/nautilus-clipboard.h:
      	Wrapped code in ifdef UIH to disable it until it can be converted
      	to the new Bonobo.
      
      	* libnautilus-extensions/nautilus-caption-table.h:
      	* libnautilus-extensions/nautilus-caption.h:
      	* libnautilus-extensions/nautilus-font-picker.h:
      	* libnautilus-extensions/nautilus-preferences-group.h:
      	* libnautilus-extensions/nautilus-preferences-item.h:
      	* libnautilus-extensions/nautilus-radio-button-group.h:
      	* src/nautilus-about.h:
      	Got rid of any cases where headers include the omnibus header
      	<gnome.h>. These made the conversion process harder, which is why
      	we fixed them.
      
      	* libnautilus/libnautilus.h:
      	Got rid of cases where headers include the omnibus header
      	<bonobo.h>.
      
      	* libnautilus/nautilus-view.h:
      	* libnautilus/nautilus-view.c: (nautilus_view_set_up_ui):
      	Added a helper function to make it easy for Nautilus components to
      	load their UI and get it attached to the Nautilus:View object.
      
      	* nautilus.spec.in: Install the nautilus-*-ui.xml files too.
      
      	* src/file-manager/fm-directory-view.h:
      	* src/file-manager/fm-directory-view.c:
      	(bonobo_menu_select_all_callback),
      	(bonobo_menu_empty_trash_callback),
      	(bonobo_control_activate_callback): Convert to new API.
      	(fm_directory_view_get_bonobo_ui_container): Name and purpose
      	changed slightly for new API.
      	(fm_directory_view_real_merge_menus): Merge with new API.
      	(fm_directory_view_real_update_menus): Disabled this code for now.
      
      	* src/file-manager/fm-icon-view.c: (fm_icon_view_destroy): Destroy
      	icon view's own component at destroy time.
      	(context_menu_layout_radio_item_callback),
      	(append_one_context_menu_layout_item),
      	(fm_icon_view_create_background_context_menu_items),
      	(update_layout_menus): Convert to new API, disable some with
      	#ifdef UIH.
      	(get_sort_criterion_by_verb),
      	(set_sort_criterion_by_verb), (sort_callback): Convert to new API.
      	(fm_icon_view_merge_menus): Merge with new API, creating our own
      	UI component separate from the directory view's.
      	(fm_icon_view_update_menus): Disable with #ifdef UIH.
      
      	* src/file-manager/fm-search-list-view.h:
      	* src/file-manager/fm-search-list-view.c:
      	(fm_search_list_view_initialize_class),
      	(fm_search_list_view_initialize), (real_destroy),
      	(indexing_info_callback), (real_merge_menus), (real_update_menus):
      	Add code necessary to use a separate UI component, and disabled
      	the actual menu set-up code with #ifdef UIH. This required adding
      	a details struct.
      
      	* src/nautilus-desktop-window.c: (realize): Turned off the code
      	that hides the desktop elements.
      
      	* src/nautilus-window-private.h:
      	* src/nautilus-view-frame.h:
      	* src/nautilus-view-frame.c: (nautilus_view_frame_destroy),
      	(nautilus_view_frame_new), (nautilus_view_frame_load_client):
      	* src/nautilus-window-manage-views.c: (load_content_view),
      	(nautilus_window_set_sidebar_panels):
      	Change to use Bonobo_UIContainer instead of Bonobo_UIHandler.
      
      	* src/nautilus-window-toolbars.c: (remember_buttons),
      	(nautilus_window_initialize_toolbars): Leave this code around and
      	change it enough to compile and run, even though it's creating a
      	second, invisible toolbar.
      
      	* src/nautilus-window.h: Change to be a BonoboWin subclass instead
      	of a GnomeApp subclass.
      2ae47c75
  5. 03 Oct, 2000 1 commit
    • Darin Adler's avatar
      More work on whittling the state machine down to size. · 99785dd7
      Darin Adler authored
      	* README: libunicode, libglade, and eog are no longer required.
      
      	* components/history/nautilus-history-view.c:
      	(history_title_changed):
      	* libnautilus/nautilus-view-component.idl:
      	* libnautilus/nautilus-view.c: (impl_Nautilus_View_title_changed),
      	(nautilus_view_initialize_class):
      	* libnautilus/nautilus-view.h:
      	* src/nautilus-view-frame.c: (nautilus_view_frame_title_changed):
      	* src/nautilus-view-frame.h:
      	Added title parameter for the title_changed function.
      
      	* src/nautilus-view-frame.c:
      	(nautilus_view_frame_report_load_complete): Got rid of extra
      	emission of report_load_complete, which is handled by
      	view_frame_loaded now.
      
      	* libnautilus-extensions/nautilus-background.c:
      	(nautilus_background_initialize_class):
      	* libnautilus-extensions/nautilus-entry.c:
      	(nautilus_entry_initialize_class):
      	* libnautilus-extensions/nautilus-icon-text-item.c:
      	(iti_class_init):
      	* libnautilus-extensions/nautilus-list.c:
      	(nautilus_list_initialize_class):
      	* src/nautilus-bookmark-list.c:
      	(nautilus_bookmark_list_initialize_class):
      	* src/nautilus-navigation-bar.c:
      	(nautilus_navigation_bar_initialize_class):
      	* src/nautilus-search-bar-criterion.c:
      	(nautilus_search_bar_criterion_initialize_class):
      	* src/nautilus-sidebar.c: (nautilus_sidebar_initialize_class):
      	* src/nautilus-switchable-navigation-bar.c:
      	(nautilus_switchable_navigation_bar_initialize_class):
      	Use GTK_RUN_LAST instead of GTK_RUN_FIRST.
      
      	* libnautilus-extensions/nautilus-directory-background.c:
      	* libnautilus-extensions/nautilus-link-set.c:
      	* libnautilus-extensions/nautilus-link.c:
      	* src/file-manager/fm-icon-text-window.c:
      	* src/file-manager/fm-icon-view.c:
      	* src/file-manager/fm-properties-window.c:
      	* src/nautilus-complex-search-bar.c:
      	* src/nautilus-link-set-window.c:
      	* src/nautilus-simple-search-bar.c:
      	* src/nautilus-switchable-search-bar.c:
      	Add includes needed now that the #include <gnome.h> was removed
      	from nautilus-global-preferences.h.
      
      	* libnautilus-extensions/nautilus-string.h:
      	* libnautilus-extensions/nautilus-string.c:
      	(nautilus_strcmp_case_breaks_ties): Added function, like
      	g_strcasecmp, but falls back on strcmp for strings that match
      	case-insensitive-wise.
      	(nautilus_istr_compare): Use nautilus_strcmp_case_breaks_ties
      	instead of nautilus_strcasecmp.
      
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_compare_by_name): Use
      	nautilus_strcmp_case_breaks_ties instead of g_strcasecmp.
      	(nautilus_file_compare_by_directory_name): Use
      	nautilus_strcmp_case_breaks_ties instead of g_strcasecmp.
      	(get_automatic_emblems_as_integer): Convert automatic emblems to
      	integer form for simple sorting.
      	(prepend_automatic_emblem_names): Separate out the code that puts
      	on automatic emblem names, and make it put them first, before any
      	keyword-based emblems.
      	(nautilus_file_compare_by_emblems): Compare the automatic emblems
      	first, using the integer form.
      	(nautilus_file_compare_by_type): Use
      	nautilus_strcmp_case_breaks_ties instead of nautilus_strcmp.
      	(nautilus_file_compare_for_sort): Use
      	nautilus_strcmp_case_breaks_ties instead of g_strcasecmp.
      	(nautilus_file_compare_name): Use nautilus_strcmp_case_breaks_ties
      	instead of g_strcasecmp.
      	(nautilus_file_is_mime_type): Use nautilus_strcasecmp instead of
      	nautilus_strcmp.
      	(nautilus_file_get_emblem_names): Use
      	prepend_automatic_emblem_names.
      	(sort_keyword_list_and_remove_duplicates): Sort with
      	nautilus_strcmp_case_breaks_ties instead of
      	compare_emblem_names. Automatic emblem names are now dealt with
      	elsewhere.
      
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(compare_icons_by_name): Use nautilus_strcmp_case_breaks_ties
      	instead of nautilus_strcasecmp.
      
      	* libnautilus-extensions/nautilus-glib-extensions.c:
      	(nautilus_g_str_list_sort): Use nautilus_str_compare.
      	(nautilus_g_str_list_sort_case_insensitive): Use
      	nautilus_istr_compare.
      
      	* components/services/vault/command-line/main.c: (main):
      	* test/test-nautilus-mime-actions-set.c: (str_to_action_type):
      	Use g_strcasecmp, not strcasecmp, for portability.
      
      	* libnautilus-extensions/nautilus-global-preferences.h:
      	* libnautilus-extensions/nautilus-global-preferences.c:
      	Removed _get_disabled_sidebar_panel_view_identifiers since the
      	logic now removes any not in the enabled list instead.
      
      	* libnautilus-extensions/nautilus-view-identifier.h:
      	* libnautilus-extensions/nautilus-view-identifier.c:
      	(nautilus_view_identifier_list_copy): New function.
      	(nautilus_view_identifier_compare): Now sorts properly instead of
      	returning 1 for any two identifiers that are !=.
      
      	* nautilus-clean.sh: Removed unadorned gconfd now that it's
      	ancient history and because it makes the script seem to fail all
      	the time.
      
      	* src/nautilus-window-manage-views.h:
      	* src/nautilus-window-manage-views.c:
      	(compute_title): Renamed to a shorter name since it's a local function.
      	(update_title): Renamed to a shorter name since it's a local
      	function and made it do nothing if the title is already correct.
      	(nautilus_window_update_internals): Simplified code by using the
      	new cached title.
      	(nautilus_window_has_really_changed): Removed sidebar panel logic
      	that is no longer needed.
      	(nautilus_window_free_load_info): Remove some unused fields.
      	(nautilus_window_open_location): Removed unused parameter.
      	(nautilus_window_open_location_in_new_window): Removed unused
      	parameter.
      	(load_content_view): Renamed to shorter name since it's a local
      	function.
      	(handle_view_failure), (cancel_location_change),
      	(load_view_for_new_location), (set_view_location_and_selection):
      	Broke out big pieces of code used by the state machine. Soon we
      	won't have a state machine at all, but we'll still need functions
      	like these.
      	(nautilus_window_update_state): Removed a lot of the code and
      	broke the remaining bits into the above functions.
      	(nautilus_window_set_state_info): Removed sidebar management code
      	and some now-unused state variables.
      	(nautilus_window_stop_loading): Moved this function in here and
      	renamed it so the whole state machine is in one place.
      	(nautilus_window_set_content_view): Moved this function in here
      	and renamed it so the whole state machine is in one place.
      	(compare_view_identifier_with_iid),
      	(nautilus_window_set_sidebar_panels): Wrote new code to set up the
      	sidebar panels based on a list of view identifiers, based on the
      	code that was used before when preferences change. Moved here so
      	the whole state machine is in one place.
      
      	* src/nautilus-window-toolbars.c: (toolbar_stop_callback): Call
      	the new function nautilus_window_stop_loading.
      
      	* src/nautilus-window-private.h:
      	* src/nautilus-window.h:
      	* src/nautilus-window.c: (nautilus_window_initialize_class):
      	Removed the "content_view" argument.
      	(nautilus_window_goto_uri): Removed the view frame parameter from
      	the open_location call.
      	(nautilus_window_constructed): Set up sidebars based on
      	preferences when the window is created.
      	(nautilus_window_set_arg): Removed the "content_view" argument.
      	(nautilus_window_get_arg): Removed the "content_view" argument.
      	(view_menu_switch_views_callback): Call the new function
      	nautilus_window_set_content_view.
      	(chose_component_callback), Call the new function
      	nautilus_window_set_content_view.
      	(nautilus_window_open_location_callback): Removed the view frame
      	parameter from the open_location call.
      	(nautilus_window_open_location_in_new_window_callback): Removed
      	the view frame parameter from the open_location_in_new_window
      	call.
      	(nautilus_window_connect_view): Don't connect to
      	report_load_progress any more. The view frame now handles this for
      	us.
      	(nautilus_window_set_content_view_widget): Renamed this to avoid
      	confusion with the new nautilus_window_set_content_view which is
      	used to change content views, given a new view identifier.
      	(update_sidebar_panels_from_preferences): Renamed and changed to
      	use the new nautilus_window_set_sidebar_panels call.
      99785dd7
  6. 23 Sep, 2000 1 commit
    • Maciej Stachowiak's avatar
      Register all the below components per display. I didn't make · dd548718
      Maciej Stachowiak authored
      	nautilus per-display yet (to avoid dealing with the locking
      	issues, etc). I also did not change the services components that
      	appear to be non-gui to operate per-display.
      
      	I believe this fixes bugs 3033 and 2237.
      
      	* components/adapter/main.c: (main):
      	* components/hardware/main.c: (main):
      	* components/help/hyperbola-main.c: (main):
      	* components/history/nautilus-history-view.c: (main):
      	* components/html/ntl-web-browser.c: (main):
      	* components/image-viewer/nautilus-image-view.c:
      	(init_bonobo_image_generic_factory):
      	* components/loser/content/main.c: (main):
      	* components/loser/sidebar/main.c: (main):
      	* components/mozilla/main.c: (main):
      	* components/music/main.c: (main):
      	* components/notes/nautilus-notes.c: (main):
      	* components/rpmview/main.c: (main):
      	* components/sample/main.c: (main):
      	* components/services/install/nautilus-view/main.c: (main):
      	* components/services/inventory/nautilus-view/main.c: (main):
      	* components/services/login/nautilus-view/main.c: (main):
      	* components/services/summary/nautilus-view/main.c: (main):
      	* components/services/time/nautilus-view/main.c: (main):
      	* components/services/trilobite/sample/service/main.c: (main):
      	* components/shell/shell.c: (shell_factory_init):
      	* components/tree/main.c: (main):
      	* components/websearch/ntl-web-search.c: (main): Register each of
      	these per-display.
      dd548718
  7. 06 Sep, 2000 1 commit
    • Darin Adler's avatar
      Added checks in Nautilus to guarantee we will notice leaks · 307bafbb
      Darin Adler authored
      	of UI handlers in the future.
      
      	The check will fire unless you get new Bonobo, since I just fixed
      	a UI handler leak bug in Bonobo.
      
      	* src/nautilus-window.c: (nautilus_window_real_set_content_view):
      	Added code to check for a still-merged Open menu item in the file
      	menu. This will catch leaks of UI handlers fairly quickly, instead
      	of the traditional way we discover them, after long debugging
      	sessions.
      
      	* components/history/nautilus-history-view.c:
      	(history_view_frame_call_end):
      	* libnautilus-extensions/nautilus-undo-manager.c:
      	(release_transaction), (nautilus_undo_manager_undo):
      	* libnautilus/nautilus-clipboard.c: (add_menu_items_callback):
      	* libnautilus/nautilus-undo.c: (undo_manager_unref_cover),
      	(nautilus_undo_attach_undo_manager):
      	* libnautilus/nautilus-view.c: (view_frame_call_end):
      	* src/file-manager/fm-directory-view.c:
      	(bonobo_control_activate_callback):
      	* src/nautilus-application.c: (nautilus_application_startup):
      	* src/n...
      307bafbb
  8. 19 Aug, 2000 1 commit
    • Mathieu Lacage's avatar
      completes task 1567. it shows a bug in the way the history view displays · 62ce8b92
      Mathieu Lacage authored
      2000-08-19  Mathieu Lacage  <mathieu@eazel.com>
      
              completes task 1567. it shows a bug in the way the history
              view displays the current location given the history. to be
      	fixed soon.
      
              * components/history/nautilus-history-view.c:
              (history_load_location), (history_title_changed), (make_obj):
              add title_changed_callback, connect it to changed_title signal.
              make it call load_location.
              Hack evil stuff in load_location: a hand-made lock because the
              function calls some gtk calls which seem to make the main loop
      		run at least once. This allowed the main loop to use the events
      	in the event queue and it happened that the title_changed signal
      	is usually emited more than once so it called again the
      	non-reentrant signal callback... BAD THINGS HAPPENED.
      
      
      	* libnautilus/nautilus-view-component.idl: add changed_title method
      	to Nautilus::View.
      	* libnautilus/nautilus-view.c: (impl_Nautilus_View_title_changed),
      	(nautilus_view_initialize_class): implement the new idl function and
      	add a signal for it.
              * libnautilus/nautilus-view.h: add the new signal class method.
      
      
              * src/nautilus-view-frame-bonobo-control.c: add the title_changed
              field to the vtable.
              * src/nautilus-view-frame-nautilus-view.c: (title_changed): idem.
              * src/nautilus-view-frame-private.h: idem.
              * src/nautilus-view-frame.c: (nautilus_view_frame_title_changed):
              add api function to emit the signal and make the actual corba call.
              * src/nautilus-view-frame.h: add function prototype.
              * src/nautilus-window-manage-views.c: add calls to
              (nautilus_window_update_title): to notify view frames of changed
      	titles.
      62ce8b92
  9. 18 Aug, 2000 1 commit
    • Mathieu Lacage's avatar
      Cleans up the HistoryFrame : remove the History object and replaces it · e308553c
      Mathieu Lacage authored
      2000-08-18  Mathieu Lacage  <mathieu@eazel.com>
      
      
      	Cleans up the HistoryFrame : remove the History object
      	and replaces it with HistoryList.
      	* components/history/nautilus-history-view.c: (get_history_list),
      	(history_load_location):
      	* libnautilus/nautilus-view-component.idl:
      	* src/nautilus-history-frame.c:
      	* src/nautilus-view-frame.c:
      	(nautilus_view_frame_get_history_list):
      	* src/nautilus-view-frame.h:
      	* src/nautilus-window.c:
      	(nautilus_window_get_history_list_callback):
      e308553c
  10. 13 Jul, 2000 1 commit
    • Gene Z. Ragan's avatar
      Added code to check for position of current page in list. · a3c59407
      Gene Z. Ragan authored
      2000-07-13  Gene Z. Ragan  <gzr@eazel.com>
      
      	* components/history/nautilus-history-view.c: (install_icon),
      	(history_view_update_icons), (history_load_location), (make_obj):
      	Added code to check for position of current page in list.
      
      	* src/nautilus-window.c:
      	* src/nautilus-window.h:
      	(nautilus_window_get_base_page_index):
      	New function to return the index of the base page in the
      	history list.
      
      	(nautilus_window_get_history_list_callback),
      	Set position field of returned list info using new function above.
      a3c59407
  11. 12 Jul, 2000 1 commit
    • Gene Z. Ragan's avatar
      Removed drag move from list. Changed navigation to occur on mouse up, not · b698da5a
      Gene Z. Ragan authored
      2000-07-11  Gene Z. Ragan  <gzr@eazel.com>
      
      	* components/history/nautilus-history-view.c:
      	(history_load_location), (history_button_press),
      	(history_button_release), (make_obj):
      	Removed drag move from list.  Changed navigation
      	to occur on mouse up, not on select row.  This is
      	because select row is called on rows during a drag.
      	Tghis can be annoying if you are trying to drag a
      	row item and Nautilus is navigating to the item you
      	ared dragging over.  This behavior happens even if we
      	are not supporting drag move of items. Now navigation
      	occurs on the mouse up.
      b698da5a
  12. 11 Jul, 2000 2 commits
    • Darin Adler's avatar
      Fixed some leaks that cause problems with the new Bonobo. · 90166bac
      Darin Adler authored
      	* components/history/nautilus-history-view.c:
      	(history_view_frame_call_end):
      	* libnautilus/nautilus-undo.c: (set_up_bonobo_control):
      	* libnautilus/nautilus-view.c: (view_frame_call_end):
      	* libnautilus/nautilus-zoomable.c:
      	(nautilus_zoomable_ensure_zoomable_frame):
      	Fixed a ref. count leak by adding code to unref the result of
      	query_interface.
      
      	* src/nautilus-view-frame.c: (nautilus_view_frame_is_zoomable):
      	Fixed logic that was backwards.
      90166bac
    • Darin Adler's avatar
      Changed history list to include a separate position field instead of · 88838071
      Darin Adler authored
      	* components/history/nautilus-history-view.c:
      	(history_view_update_icons), (get_history_list),
      	(hyperbola_navigation_history_load_location):
      	* libnautilus/nautilus-view-component.idl:
      	* src/nautilus-history-frame.c:
      	(impl_Nautilus_HistoryFrame_get_history_list):
      	* src/nautilus-view-frame.h:
      	* src/nautilus-view-frame.c:
      	(nautilus_view_frame_get_history_list):
      	* src/nautilus-window.c:
      	(nautilus_window_get_history_list_callback),
      	(nautilus_window_connect_view):
      	Changed history list to include a separate position field
      	instead of having a position in each entry.
      
      	* components/notes/nautilus-notes.c: (done_with_file):
      	Name changed from nautilus_file_cancel_callback to
      	nautilus_file_cancel_call_when_ready to reduce confusion with
      	nautilus_file_cancel.
      
      	* libnautilus-extensions/nautilus-directory.c:
      	(nautilus_directory_get): Made NULL for URI be legal (and result
      	in NULL for the directory object).
      	* libnautilus-extensions/nautilus-mime-actions.c:
      	(get_mime_type_from_uri): Made NULL for URI be legal (and result
      	in NULL for MIME type).
      
      	* libnautilus-extensions/nautilus-entry.c:
      	(nautilus_entry_set_text): Minor tweak.
      
      	* libnautilus-extensions/nautilus-file.h:
      	* libnautilus-extensions/nautilus-file-private.h:
      	* libnautilus-extensions/nautilus-file.c: (operation_new),
      	(operation_free), (operation_complete), (operation_cancel),
      	(rename_update_info_and_metafile), (rename_callback),
      	(nautilus_file_rename), (nautilus_file_cancel),
      	(nautilus_file_set_owner), (nautilus_file_cancel_call_when_ready):
      	Added cancelling to rename as a prelude to doing the same for
      	set_file_info-based calls.
      
      	* libnautilus-extensions/nautilus-graphic.c:
      	Fixed a formatting mistake and a typo.
      
      	* libnautilus-extensions/nautilus-stock-dialogs.h:
      	* libnautilus-extensions/nautilus-stock-dialogs.c:
      	(timed_wait_hash), (timed_wait_hash_equal),
      	(nautilus_timed_wait_start), (nautilus_timed_wait_free),
      	(nautilus_timed_wait_stop): Re-did timed wait API now that
      	we are really using it. Still unimplemented.
      
      	* src/Makefile.am:
      	Since IDL dependencies are not understood by automake, added
      	an explicit one so we pick up the change to the libnautilus
      	view component IDL.
      
      	* src/file-manager/fm-error-reporting.h:
      	* src/file-manager/fm-error-reporting.c: (rename_callback),
      	(cancel_rename_callback), (fm_rename_file): Moved code for
      	renaming into here so it can be shared between the icon view
      	and the properties dialog. Perhaps it needs to be renamed.
      
      	* src/file-manager/fm-icon-view.c:
      	(fm_icon_view_icon_text_changed_callback): Use the shared
      	code instead of having the rename code here.
      
      	* src/nautilus-application.c: (create_object): Make a new
      	shell object each time instead of trying to share one.
      	(nautilus_application_startup): Activate the shell object
      	using OAF. This makes it work across processes and adds
      	the feature.
      
      	* src/nautilus-main.c: (main): Call bonobo_activate explicitly so
      	CORBA calls work before the main loop.
      
      	* src/nautilus-shell.c: (display_caveat_first_time),
      	(corba_manage_desktop): Got rid of all state in NautilusShell
      	so we can use multiple shell objects if we want.
      
      	* src/nautilus-sidebar.c: (nautilus_sidebar_update_info):
      	Got rid of code that checks for NULL.
      88838071
  13. 07 Jul, 2000 1 commit
    • Gene Z. Ragan's avatar
      Fixed bug 1571, Need titles in history list instead of just URIs. · 0b661c0f
      Gene Z. Ragan authored
      2000-07-06  Gene Z. Ragan  <gzr@eazel.com>
      
      	Fixed bug 1571, Need titles in history list instead
      	of just URIs.
      
      	This was a result of sharing the NautilusWindow history list
      	information over CORBA.
      
      	* libnautilus/nautilus-view-component.idl:
      	Create new interface, Nautilus::HistoryFrame
      	Interface has method to get a sequence of
      	history information.  This sequence contains
      	structs that contain uri and name history
      	information.
      
      	* src/Makefile.am:
      	Added new file, NautilusHistoryFrame.c, to makefile.
      
      	* src/nautilus-history-frame.c:
      	* src/nautilus-history-frame.h:
      	(impl_Nautilus_HistoryFrame__destroy),
      	(impl_Nautilus_HistoryFrame__create),
      	(impl_Nautilus_HistoryFrame_get_history_list):
      	New files that imliments the functionality of the
      	Nautilus::HistoryFrame.
      
      	* components/history/nautilus-history-view.c:
      	(get_bookmark_from_row), (get_uri_from_row),
      	(history_view_frame_call_begin), (history_view_frame_call_end),
      	(history_view_update_icons), (get_history_list),
      	(hyperbola_navigation_history_load_location),
      	(hyperbola_navigation_history_select_row), (do_destroy),
      	(make_obj), (main):
      	Changes in the way that the history list is maintained.
      	We now use the info that is received by asking the view frame
      	for history information.
      
      	* src/nautilus-view-frame.c:
      	* src/nautilus-view-frame.h:
      	(nautilus_view_frame_initialize_class),
      	(nautilus_view_frame_load_client),
      	(nautilus_view_frame_get_history_list):
      	Added new signal GET_HISTORY_LIST and new
      	function that emits the signal when called.
      
      	* src/nautilus-window.c:
      	(nautilus_window_connect_view):
      	Create and add history interface to connected view.
      
      	(nautilus_window_get_history_list_callback):
      	New signal handler that connects to the get_history_list
      	signal of NautilusViewFrame.  Returns a Nautilus_HistoryList
      	created from the history list data.
      0b661c0f
  14. 16 Jun, 2000 1 commit
    • John Sullivan's avatar
      Modernized some NautilusBookmark code that had been written · 4e90eb7b
      John Sullivan authored
      	in the dark ages (by me).
      
      	* libnautilus-extensions/nautilus-bookmark.c:
      	(nautilus_bookmark_compare_with), (nautilus_bookmark_copy),
      	(nautilus_bookmark_get_name),
      	(nautilus_bookmark_get_pixmap_and_mask),
      	(nautilus_bookmark_get_pixbuf), (nautilus_bookmark_get_icon),
      	(nautilus_bookmark_get_uri), (create_pixmap_widget_for_bookmark),
      	(nautilus_bookmark_menu_item_new): Eliminated the use of
      	const NautilusBookmark *; made _get_name and _get_uri return
      	copies instead of the original text; tweaked a little formatting.
      
      	* components/history/nautilus-history-view.c: (install_icon),
      	(hyperbola_navigation_history_load_location),
      	(hyperbola_navigation_history_select_row):
      	* libnautilus-extensions/nautilus-bookmark.h:
      	* src/nautilus-bookmark-list.c: (append_bookmark_node),
      	(nautilus_bookmark_list_append), (nautilus_bookmark_list_contains),
      	(nautilus_bookmark_list_delete_items_with_uri),
      	(nautilus_bookmark_list_insert_item):
      	* src/nautilus-bookmark-list.h:
      	* src/nautilus-bookmarks-window.c: (install_bookmark_icon),
      	(on_select_row), (repopulate):
      	* src/nautilus-window-manage-views.c:
      	(nautilus_window_reset_title_internal), (handle_go_back),
      	(handle_go_forward), (handle_go_elsewhere):
      	* src/nautilus-window-menus.c: (bookmark_holder_new),
      	(show_bogus_bookmark_window), (activate_bookmark_in_menu_item),
      	(append_bookmark_to_menu),
      	(nautilus_window_add_bookmark_for_current_location):
      	* src/nautilus-window.c: (nautilus_window_back_or_forward):
      	Eliminated the use of const NautilusBookmark *; changed all
      	callers of nautilus_bookmark_get_name and _get_uri to free
      	the results.
      4e90eb7b
  15. 13 Jun, 2000 1 commit
    • Darin Adler's avatar
      Renamed and changed around parameters for the basic operations on · 14aba5ce
      Darin Adler authored
      	views to simplify and clarify Nautilus. Later we will be able to
      	clean up the state machine.
      
      	Some "theoretical" stuff may be lost in this process, but we can
      	easily re-add what we really need. The old stuff had many
      	unimplemented placeholders and half-baked ideas.
      
      	* libnautilus/nautilus-view-component.idl:
      	* libnautilus/nautilus-view.h:
      	* libnautilus/nautilus-view.c:
      	* libnautilus/nautilus-zoomable.c:
      	(nautilus_zoomable_ensure_zoomable_frame),
      	(nautilus_zoomable_set_zoom_level):
      	* src/nautilus-applicable-views.c: (got_file_info_callback),
      	(got_metadata_callback), (nautilus_navigation_info_new),
      	(nautilus_navigation_info_free):
      	* src/nautilus-applicable-views.h:
      	* src/nautilus-view-frame-bonobo-control.c:
      	(nautilus_view_frame_activate_uri),
      	(bonobo_control_try_load_client), (bonobo_control_load_location):
      	* src/nautilus-view-frame-bonobo-embeddable.c:
      	(bonobo_subdoc_notify_location_change),
      	(bonobo_subdoc_try_load_clie...
      14aba5ce
  16. 02 Jun, 2000 1 commit
    • Ramiro Estrugo's avatar
      Once again, back to implicit initialization of preferences stuff. It makes · 8cef10fd
      Ramiro Estrugo authored
      * components/history/nautilus-history-view.c: (main):
      * libnautilus-extensions/nautilus-global-preferences.c:
      (global_preferences_get_dialog),
      (global_preferences_register_for_ui),
      (global_preferences_initialize_if_needed),
      (nautilus_global_preferences_shutdown):
      * libnautilus-extensions/nautilus-global-preferences.h:
      * nautilus-widgets/nautilus-preferences-group.c:
      (nautilus_preferences_group_add_item):
      * nautilus-widgets/nautilus-preferences-item.c:
      (preferences_item_construct), (nautilus_preferences_item_new):
      * nautilus-widgets/nautilus-preferences-pane.c:
      (nautilus_preferences_pane_add_item_to_nth_group):
      * nautilus-widgets/nautilus-preferences.c: (preferences_register),
      (set_default_value_if_needed), (preferences_hash_node_lookup),
      (preferences_hash_node_lookup_with_registration),
      (preferences_gconf_callback), (preferences_initialize_if_needed),
      (nautilus_preferences_find_preference),
      (nautilus_preferences_set_info),
      (nautilus_preferences_enum_add_entry),
      (nautilus_preferences_add_boolean_callback),
      (nautilus_preferences_add_enum_callback),
      (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:
      * nautilus-widgets/test-nautilus-preferences.c: (main),
      (register_global_preferences):
      * src/nautilus-main.c: (main):
      Once again, back to implicit initialization of preferences stuff.
      It makes things simpler.
      8cef10fd
  17. 30 May, 2000 1 commit
    • Ramiro Estrugo's avatar
      Change preferences startup code to occur in only one place. · 9a05e06f
      Ramiro Estrugo authored
      * components/history/nautilus-history-view.c: (main):
      * libnautilus-extensions/nautilus-global-preferences.c:
      (nautilus_global_preferences_startup):
      * libnautilus-extensions/nautilus-global-preferences.h:
      * src/nautilus-application.c: (nautilus_app_class_init):
      * src/nautilus-main.c: (main):
      
      Change preferences startup code to occur in only one place.
      9a05e06f
  18. 27 May, 2000 1 commit
    • Maciej Stachowiak's avatar
      components/history/ntl-history-view.c -> · a15fd9f8
      Maciej Stachowiak authored
      	* Renamed files as follows, as per RENAMING:
      	components/history/ntl-history-view.c -> components/history/nautilus-history-view.c
      	components/history/ntl-history-view.oafinfo -> components/history/nautilus-history-view.oafinfo
      	components/notes/ntl-notes.c -> components/notes/nautilus-notes.c
      	components/notes/ntl-notes.oafinfo -> components/notes/nautilus-notes.oafinfo
      	libnautilus-extensions/gtkscrollframe.c -> libnautilus-extensions/nautilus-scroll-frame.c
      	libnautilus-extensions/gtkscrollframe.h -> libnautilus-extensions/nautilus-scroll-frame.h
      	libnautilus/nautilus-view-frame.c -> libnautilus/nautilus-view.c
      	libnautilus/nautilus-view-frame.h -> libnautilus/nautilus-view.h
      	src/nautilus-index-tabs.c -> src/nautilus-sidebar-tabs.c
      	src/nautilus-index-tabs.h -> src/nautilus-sidebar-tabs.h
      	src/nautilus-index-title.c -> src/nautilus-sidebar-title.c
      	src/nautilus-index-title.h -> src/nautilus-sidebar-title.h
      	src/nautilus-zoomable-frame-svr.c -> src/nautilus-zoomable-frame-corba.c
      	src/ntl-app.c -> src/nautilus-application.c
      	src/ntl-app.h -> src/nautilus-application.h
      	src/ntl-index-panel.c -> src/nautilus-sidebar.c
      	src/ntl-index-panel.h -> src/nautilus-sidebar.h
      	src/ntl-main.c -> src/nautilus-main.c
      	src/ntl-miniicon.c -> libnautilus-extensions/nautilus-mini-icon.c
      	src/ntl-miniicon.h -> libnautilus-extensions/nautilus-mini-icon.h
      	src/ntl-uri-map.c -> src/nautilus-applicable-views.c
      	src/ntl-uri-map.h -> src/nautilus-applicable-views.h
      	src/ntl-view-bonobo-control.c -> src/nautilus-view-frame-bonobo-control.c
      	src/ntl-view-bonobo-subdoc.c -> src/nautilus-view-frame-bonobo-embeddable.c
      	src/ntl-view-frame-svr.c -> src/nautilus-view-frame-corba.c
      	src/ntl-view-nautilus.c -> src/nautilus-view-frame-nautilus-view.c
      	src/ntl-view-private.h -> src/nautilus-view-frame-private.h
      	src/ntl-view.c -> src/nautilus-view-frame.c
      	src/ntl-view.h -> src/nautilus-view-frame.h
      	src/ntl-window-msgs.c -> src/nautilus-window-manage-views.c
      	src/ntl-window-msgs.h -> src/nautilus-window-manage-views.h
      	src/ntl-window-private.h -> src/nautilus-window-private.h
      	src/ntl-window-state.c -> src/nautilus-window-state.c
      	src/ntl-window-state.h -> src/nautilus-window-state.h
      	src/ntl-window.c -> src/nautilus-window.c
      	src/ntl-window.h -> src/nautilus-window.h
      
      	* components/history/Makefile.am, components/notes/Makefile.am,
      	libnautilus-extensions/Makefile.am, libnautilus/Makefile.am,
      	po/POTFILES.in, src/Makefile.am,
      	components/hardware/nautilus-hardware-view.h,
      	components/loser/content/nautilus-content-loser.h,
      	components/loser/sidebar/nautilus-sidebar-loser.h,
      	components/mozilla/nautilus-mozilla-content-view.h,
      	components/music/nautilus-music-view.h,
      	components/rpmview/nautilus-rpm-view.h,
      	components/sample/nautilus-sample-content-view.h,
      	components/services/startup/nautilus-view/nautilus-service-startup-view.h,
      	libnautilus/libnautilus.h, src/nautilus-desktop-window.h,
      	src/nautilus-window-menus.c, src/nautilus-window-toolbars.c,
      	src/file-manager/fm-directory-view.h : Updated for renamings.
      
      	* RENAMING: removed old renamings
      a15fd9f8
  19. 24 May, 2000 1 commit
    • Darin Adler's avatar
      [deleted] [deleted] · 70659f55
      Darin Adler authored
      	* libnautilus/Makefile.am:
      	* libnautilus/libnautilus.h:
      	* libnautilus/nautilus-meta-view-frame.c: [deleted]
      	* libnautilus/nautilus-meta-view-frame.h: [deleted]
      	* libnautilus/nautilus-view-component.idl:
      	* po/POTFILES.in:
      	* src/ntl-index-panel.c: (nautilus_index_panel_add_meta_view):
      	* src/ntl-window.c: (nautilus_window_add_meta_view):
      	Removed Nautilus::MetaView and all the related classes.
      	We still have Nautilus::MetaViewFrame (will go soon).
      
      	* components/help/hyperbola-nav-index.c:
      	(hyperbola_navigation_index_new):
      	* components/help/hyperbola-nav-search.c:
      	(hyperbola_navigation_search_new):
      	* components/help/hyperbola-nav-tree.c:
      	(hyperbola_navigation_tree_new):
      	* components/history/ntl-history-view.c: (make_obj):
      	* components/loser/sidebar/nautilus-sidebar-loser.c:
      	(nautilus_sidebar_loser_initialize),
      	(loser_notify_location_change_callback):
      	* components/loser/sidebar/nautilus-sidebar-loser.h:
      	* components/notes/ntl-notes.c: (make_notes_view):
      	* components/websearch/ntl-web-search.c: (make_obj):
      	Changed to use just plain view insetad of meta_view.
      
      	* libnautilus-extensions/nautilus-global-preferences.h:
      	* libnautilus-extensions/nautilus-global-preferences.c:
      	(global_preferences_create_dialog),
      	(nautilus_global_preferences_get_sidebar_panel_view_identifiers),
      	(nautilus_global_preferences_get_sidebar_view_iids),
      	(nautilus_preferences_register_sidebar_view_preferences_for_ui),
      	(global_preferences_register_for_ui):
      	Changed naming to call them sidebar views instead of meta views,
      	and got rid of code that depends on MetaView interface. We now
      	use the sidebar_panel_name to determine if a view should show
      	up in the sidebar.
      
      	* src/ntl-view.h: Fixed a comment to reflect the future
      	instead of the past.
      70659f55
  20. 23 May, 2000 1 commit
    • Darin Adler's avatar
      The ViewFrame <-> View renaming. · 8ce35298
      Darin Adler authored
      	We still have to rename the files.
      
      	* RENAMING: Put in explicit cases for file name renaming.
      
      	* src/Makefile.am:
      	* src/nautilus-desktop-window.c:
      	* src/nautilus-desktop-window.h:
      	Added placeholders. I'll be putting code in here soon.
      
      	* src/ntl-app.c: (display_prototype_caveat):
      	Changed to use nautilus_simple_dialog again since otherwise it
      	comes up behind the main window. Perhaps someone will resolve
      	that issue and change it back.
      
      	* libnautilus-extensions/nautilus-gnome-extensions.h:
      	* libnautilus-extensions/nautilus-gnome-extensions.c:
      	(nautilus_warning_dialog), (nautilus_warning_dialog_parented):
      	Added centered version of the warning dialog as well, since
      	Eskil was using gnome_warning_dialog in a case where he really
      	wanted lines wrapped.
      
      	* components/loser/.cvsignore:
      	* components/loser/content/.cvsignore:
      	* components/loser/sidebar/.cvsignore:
      	Ignore some generated files.
      
      	* components/hardware/main.c: (hardware_view_make_object):
      	* components/hardware/nautilus-hardware-view.c:
      	(nautilus_hardware_view_initialize),
      	(nautilus_hardware_view_destroy),
      	(nautilus_hardware_view_get_nautilus_view),
      	(hardware_view_notify_location_change_callback):
      	* components/hardware/nautilus-hardware-view.h:
      	* components/help/hyperbola-nav-index.c:
      	(hyperbola_navigation_index_select_row),
      	(hyperbola_navigation_index_new):
      	* components/help/hyperbola-nav-search.c:
      	(hyperbola_navigation_search_select_row),
      	(hyperbola_navigation_search_new):
      	* components/help/hyperbola-nav-tree.c:
      	(hyperbola_navigation_tree_new),
      	(hyperbola_navigation_tree_notify_location_change),
      	(hyperbola_navigation_tree_select_row):
      	* components/history/ntl-history-view.c:
      	(hyperbola_navigation_history_notify_location_change),
      	(hyperbola_navigation_history_select_row), (make_obj):
      	* components/html/ntl-web-browser.c: (browser_url_load_done),
      	(browser_vfs_callback), (browser_goto_url_real),
      	(browser_goto_url), (browser_select_url), (browser_title_changed),
      	(browser_notify_location_change), (make_obj):
      	* components/loser/content/main.c: (loser_make_object):
      	* components/loser/content/nautilus-content-loser.c:
      	(nautilus_content_loser_initialize),
      	(nautilus_content_loser_destroy),
      	(nautilus_content_loser_get_nautilus_view),
      	(nautilus_content_loser_load_uri),
      	(loser_notify_location_change_callback), (bonobo_loser_callback):
      	* components/loser/content/nautilus-content-loser.h:
      	* components/loser/sidebar/main.c: (loser_make_object):
      	* components/loser/sidebar/nautilus-sidebar-loser.c:
      	(nautilus_sidebar_loser_initialize),
      	(nautilus_sidebar_loser_destroy),
      	(nautilus_sidebar_loser_get_nautilus_view),
      	(loser_notify_location_change_callback):
      	* components/loser/sidebar/nautilus-sidebar-loser.h:
      	* components/music/main.c: (music_view_make_object):
      	* components/music/nautilus-music-view.c:
      	(nautilus_music_view_initialize), (nautilus_music_view_destroy),
      	(nautilus_music_view_get_nautilus_view),
      	(music_view_notify_location_change_callback):
      	* components/music/nautilus-music-view.h:
      	* components/notes/ntl-notes.c: (notes_notify_location_change),
      	(make_notes_view):
      	* components/rpmview/main.c: (rpm_view_make_object):
      	* components/rpmview/nautilus-rpm-view.c:
      	(nautilus_rpm_view_initialize), (nautilus_rpm_view_destroy),
      	(nautilus_rpm_view_get_nautilus_view),
      	(rpm_view_notify_location_change_callback):
      	* components/rpmview/nautilus-rpm-view.h:
      	* components/sample/main.c: (sample_make_object):
      	* components/sample/nautilus-sample-content-view.c:
      	(nautilus_sample_content_view_initialize),
      	(nautilus_sample_content_view_destroy),
      	(nautilus_sample_content_view_get_nautilus_view),
      	(sample_notify_location_change_callback):
      	* components/sample/nautilus-sample-content-view.h:
      	* components/services/startup/nautilus-view/main.c:
      	(services_make_object):
      	* components/services/startup/nautilus-view/nautilus-service-startup-view.c:
      	(go_to_uri), (nautilus_service_startup_view_initialize),
      	(nautilus_service_startup_view_get_nautilus_view),
      	(service_main_notify_location_change_cb):
      	* components/services/startup/nautilus-view/nautilus-service-startup-view.h:
      	* components/websearch/ntl-web-search.c:
      	(web_search_notify_location_change), (do_search), (make_obj):
      	* libnautilus/nautilus-clipboard.c:
      	(nautilus_clipboard_info_set_view),
      	(nautilus_clipboard_info_get_view),
      	(nautilus_clipboard_info_get_bonobo_control):
      	* libnautilus/nautilus-clipboard.h:
      	* src/file-manager/fm-directory-view.c:
      	(bonobo_menu_move_to_trash_callback), (get_bonobo_control),
      	(fm_directory_view_initialize), (display_selection_info),
      	(fm_directory_view_send_selection_change),
      	(notify_location_change_callback),
      	(notify_selection_change_callback),
      	(stop_location_change_callback), (done_loading),
      	(fm_directory_view_get_nautilus_view),
      	(fm_directory_view_activate_file_internal), (finish_loading_uri):
      	* src/file-manager/fm-directory-view.h:
      	Updated for new libnautilus where the NautilusViewFrame
      	classes are now named NautilusView.
      
      	* libnautilus/nautilus-content-view-frame.c:
      	(nautilus_content_view_initialize), (nautilus_content_view_new),
      	(nautilus_content_view_new_from_bonobo_control),
      	(nautilus_content_view_destroy),
      	(nautilus_content_view_initialize_class),
      	(nautilus_content_view_request_title_change):
      	* libnautilus/nautilus-content-view-frame.h:
      	* libnautilus/nautilus-meta-view-frame.c:
      	(nautilus_meta_view_initialize), (nautilus_meta_view_new),
      	(nautilus_meta_view_new_from_bonobo_control),
      	(nautilus_meta_view_destroy),
      	(nautilus_meta_view_initialize_class):
      	* libnautilus/nautilus-meta-view-frame.h:
      	Changed Nautilus*ViewFrame classes to Nautilus*View. This is
      	something we had in RENAMING for some time, and it's consistent
      	with Bonobo's naming of BonoboControl and BonoboControlFrame.
      	Also changed interfaces to use actual BonoboControl * instead of
      	using BonobObject * and query_interface.
      
      	* libnautilus/nautilus-undo-manager.c:
      	(nautilus_undo_setup_bonobo_control):
      	* libnautilus/nautilus-undo-manager.h:
      	Changed the BonoboControl parameter to actually be of type
      	BonoboControl * instead of BonoboObject *.
      
      	* libnautilus/nautilus-view-frame-private.h:
      	* libnautilus/nautilus-view-frame.c:
      	(impl_Nautilus_View_save_state), (impl_Nautilus_View_load_state),
      	(impl_Nautilus_View_notify_location_change),
      	(impl_Nautilus_View_show_properties),
      	(impl_Nautilus_View_notify_selection_change),
      	(impl_Nautilus_View_stop_location_change),
      	(impl_Nautilus_View__destroy), (impl_Nautilus_View__create),
      	(nautilus_view_initialize_class), (nautilus_view_set_arg),
      	(nautilus_view_get_arg), (nautilus_view_initialize),
      	(nautilus_view_new), (nautilus_view_new_from_bonobo_control),
      	(nautilus_view_destroy), (nautilus_view_ensure_view_frame),
      	(nautilus_view_request_location_change),
      	(nautilus_view_request_selection_change),
      	(nautilus_view_request_status_change),
      	(nautilus_view_request_progress_change),
      	(nautilus_view_get_bonobo_control),
      	(nautilus_view_get_main_window),
      	(nautilus_view_real_set_bonobo_control):
      	* libnautilus/nautilus-view-frame.h:
      	* libnautilus/nautilus-zoomable.c:
      	(impl_Nautilus_Zoomable__get_zoom_level),
      	(impl_Nautilus_Zoomable__set_zoom_level),
      	(impl_Nautilus_Zoomable__get_min_zoom_level),
      	(impl_Nautilus_Zoomable__get_max_zoom_level),
      	(impl_Nautilus_Zoomable__get_is_continuous),
      	(impl_Nautilus_Zoomable_zoom_in),
      	(impl_Nautilus_Zoomable_zoom_out),
      	(impl_Nautilus_Zoomable_zoom_to_fit),
      	(impl_Nautilus_Zoomable__destroy),
      	(impl_Nautilus_Zoomable__create), (marshal_NONE__DOUBLE),
      	(nautilus_zoomable_initialize_class), (nautilus_zoomable_set_arg),
      	(nautilus_zoomable_get_arg), (nautilus_zoomable_initialize),
      	(nautilus_zoomable_new),
      	(nautilus_zoomable_new_from_bonobo_control),
      	(nautilus_zoomable_destroy),
      	(nautilus_zoomable_ensure_zoomable_frame),
      	(nautilus_zoomable_set_zoom_level),
      	(nautilus_zoomable_get_bonobo_control),
      	(nautilus_zoomable_real_set_bonobo_control):
      	* libnautilus/nautilus-zoomable.h:
      	* src/nautilus-zoomable-frame-svr.c:
      	(impl_Nautilus_ZoomableFrame__destroy),
      	(impl_Nautilus_ZoomableFrame__create),
      	(impl_Nautilus_ZoomableFrame_notify_zoom_level):
      	* src/ntl-app.c: (impl_Nautilus_Application_create_object),
      	* src/ntl-content-view.c:
      	(impl_Nautilus_ContentViewFrame_request_title_change),
      	(nautilus_content_view_frame_get_type),
      	(nautilus_content_view_frame_class_init),
      	(nautilus_content_view_frame_init),
      	(nautilus_content_view_frame_set_active),
      	(nautilus_content_view_frame_request_title_change):
      	* src/ntl-content-view.h:
      	* src/ntl-index-panel.c: (nautilus_index_panel_add_meta_view),
      	(nautilus_index_panel_remove_meta_view):
      	* src/ntl-index-panel.h:
      	* src/ntl-meta-view.c: (nautilus_meta_view_frame_initialize_class),
      	(nautilus_meta_view_frame_initialize),
      	(nautilus_meta_view_frame_set_label),
      	(nautilus_meta_view_frame_get_label):
      	* src/ntl-meta-view.h:
      	* src/ntl-view-bonobo-control.c: (destroy_bonobo_control_view),
      	(nautilus_view_frame_activate_uri),
      	(bonobo_control_try_load_client),
      	(bonobo_control_notify_location_change):
      	* src/ntl-view-bonobo-subdoc.c: (destroy_bonobo_subdoc_view),
      	(bonobo_subdoc_notify_location_change),
      	(bonobo_subdoc_try_load_client):
      	* src/ntl-view-frame-svr.c: (impl_Nautilus_ViewFrame__destroy),
      	(impl_Nautilus_ViewFrame__create),
      	(impl_Nautilus_ViewFrame_request_location_change),
      	(impl_Nautilus_ViewFrame_request_selection_change),
      	(impl_Nautilus_ViewFrame_request_status_change),
      	(impl_Nautilus_ViewFrame_request_progress_change):
      	* src/ntl-view-nautilus.c: (nautilus_view_try_load_client),
      	(destroy_nautilus_view), (nv_show_properties), (nv_save_state),
      	(nv_load_state), (nv_notify_location_change),
      	(nv_notify_selection_change), (nv_stop_location_change):
      	* src/ntl-view-private.h:
      	* src/ntl-view.c: (nautilus_view_frame_get_type),
      	(nautilus_view_frame_class_init), (nautilus_view_frame_set_arg),
      	(nautilus_view_frame_get_arg), (nautilus_view_frame_init),
      	(nautilus_view_frame_destroy_client),
      	(nautilus_view_frame_destroy), (nautilus_view_frame_constructed),
      	(nautilus_view_frame_construct_arg_set),
      	(nautilus_view_frame_size_request),
      	(nautilus_view_frame_size_allocate),
      	(nautilus_view_frame_handle_client_destroy),
      	(nautilus_view_frame_handle_client_destroy_2),
      	(nautilus_view_frame_load_client),
      	(nautilus_view_frame_notify_location_change),
      	(nautilus_view_frame_notify_selection_change),
      	(nautilus_view_frame_load_state), (nautilus_view_frame_save_state),
      	(nautilus_view_frame_show_properties),
      	(nautilus_view_frame_stop_location_change),
      	(nautilus_view_frame_is_zoomable),
      	(nautilus_view_frame_get_zoom_level),
      	(nautilus_view_frame_set_zoom_level),
      	(nautilus_view_frame_get_min_zoom_level),
      	(nautilus_view_frame_get_max_zoom_level),
      	(nautilus_view_frame_get_is_continuous),
      	(nautilus_view_frame_zoom_in), (nautilus_view_frame_zoom_out),
      	(nautilus_view_frame_zoom_to_fit), (nautilus_view_frame_get_iid),
      	(nautilus_view_frame_get_client_objref),
      	(nautilus_view_frame_get_objref),
      	(nautilus_view_frame_request_location_change),
      	(nautilus_view_frame_request_selection_change),
      	(nautilus_view_frame_request_status_change),
      	(nautilus_view_frame_request_progress_change),
      	(nautilus_view_frame_notify_zoom_level), (check_object),
      	(nautilus_view_frame_set_active_errors):
      	* src/ntl-view.h:
      	* src/ntl-window-msgs.c: (nautilus_window_notify_selection_change),
      	(nautilus_window_request_selection_change),
      	(nautilus_window_request_status_change),
      	(nautilus_window_request_progress_change),
      	(nautilus_window_request_title_change),
      	(nautilus_window_update_internals), (nautilus_window_update_view),
      	(nautilus_window_view_destroyed), (nautilus_window_load_meta_view),
      	(nautilus_window_request_location_change),
      	(nautilus_window_load_content_view),
      	(nautilus_window_update_state), (nautilus_window_set_state_info),
      	(nautilus_window_begin_location_change):
      	* src/ntl-window-msgs.h:
      	* src/ntl-window-private.h:
      	* src/ntl-window.c: (zoom_in_cb), (zoom_out_cb),
      	(nautilus_window_set_arg), (nautilus_window_send_show_properties),
      	(view_menu_switch_views_callback),
      	(nautilus_window_set_content_view),
      	(nautilus_window_add_meta_view),
      	(nautilus_window_remove_meta_view_real),
      	(nautilus_window_remove_meta_view),
      	(nautilus_window_request_location_change_cb),
      	(nautilus_window_request_selection_change_cb),
      	(nautilus_window_request_status_change_cb),
      	(nautilus_window_request_progress_change_cb),
      	(nautilus_window_request_title_change_callback),
      	(nautilus_window_connect_view),
      	(nautilus_window_connect_content_view),
      	(nautilus_window_real_set_content_view):
      	* src/ntl-window.h:
      	Changed Nautilus*View classes to Nautilus*ViewFrame. This is
      	something we had in RENAMING for some time, and it's consistent
      	with Bonobo's naming of BonoboControl and BonoboControlFrame.
      	Also changed interfaces to use actual BonoboControl * instead of
      	using BonoboObject * and query_interface.
      8ce35298
  21. 20 May, 2000 1 commit
    • Maciej Stachowiak's avatar
      Fix bugzilla tasks #599 (hex number is bad default for meta view · cf21c9ee
      Maciej Stachowiak authored
      	names) and #631 (nead oaf query to determine metaviews).
      
      	* libnautilus-extensions/nautilus-view-identifier.h,
      	libnautilus-extensions/nautilus-view-identifier.c:
      	(nautilus_view_identifier_new, get_lang_list,
      	nautilus_view_identifier_new_from_oaf_server_info,
      	nautilus_view_identifier_free): Moved NautilusViewIdentifier code
      	here from ntl-uri-map.[ch].
      	(nautilus_view_identifier_new_from_content_view),
      	(nautilus_view_identifier_new_from_sidebar_panel),
      	(nautilus_view_identifier_free_callback),
      	(nautilus_view_identifier_free_list): New functions.
      	* libnautilus-extensions/Makefile.am: Add
      	nautilus-view-identifier.[ch] to build.
      	* src/ntl-types.h: Removed typedef for NautilusViewIdentifier.
      
      	* libnautilus-extensions/nautilus-glib-extensions.h:
      	* libnautilus-extensions/nautilus-glib-extensions.c
      	(nautilus_g_list_free_deep_custom): New function, like
      	`nautilus_g_list_free_deep' but lets you pass your own free
      	function.
      	(nautilus_g_list_free_deep): Use `nautilus_g_list_free_deep_custom'
      	(nautilus_g_list_partition): New function to destructively
      	partition a GList into two, depending on whether they satisfy the
      	provided predicate or not.
      	(nautilus_test_predicate), (nautilus_self_check_glib_extensions):
      	Added unit tests for `nautilus_g_list_partition' and for
      	`nautilus_g_list_equal' since the `nautilus_g_list_partition'
      	tests rely on it.
      	* libnautilus-extensions/nautilus-directory.c:
      	(nautilus_directory_notify_files_moved): Use
      	`nautilus_g_list_free_deep_custom'.
      	* libnautilus-extensions/nautilus-gdk-pixbuf-extensions.c
      	(nautilus_gdk_pixbuf_list_free): Likewise.
      	* libnautilus-extensions/nautilus-icon-factory.c
      	(nautilus_scalable_icon_list_free): Likewise.
      	* libnautilus-extensions/nautilus-string-list.c
      	(nautilus_string_list_clear): Likewise.
      	* nautilus-widgets/nautilus-preferences.c (pref_hash_node_free,
      	prefs_hash_lookup_with_implicit_registration): Likewise.
      
      	* libnautilus-extensions/nautilus-global-preferences.c,
      	libnautilus-extensions/nautilus-global-preferences.h
      	(global_preferences_create_dialog,
      	nautilus_global_preferences_get_sidebar_panel_view_identifiers,
      	nautilus_global_preferences_get_meta_view_iids,
      	nautilus_preferences_register_meta_view_preferences_for_ui,
      	global_preferences_register_for_ui): Change things around to
      	determine the set of sidebar panel prefs at run time, and to pass
      	around NautilusViewIdentifiers rather than just iid strings so we
      	can use the statically defined name in the oafinfo.
      
      	* src/ntl-uri-map.h, src/ntl-uri-map.c: (set_initial_content_iid,
      	got_file_info_callback, sidebar_panel_preference_is_on,
      	(add_sidebar_panel_identifiers, nautilus_navigation_info_free):
      	Changed things around to better handle sidebar panel (AKA meta
      	view) selection, and pass around both name and iid.
      
      	* src/ntl-window-msgs.c:
      	(nautilus_window_request_selection_change,
      	nautilus_window_has_really_changed,
      	nautilus_window_load_meta_view, nautilus_window_update_state,
      	nautilus_window_set_state_info): Fixed everything to pass around
      	ViewIdentifiers instead of iids for sidebar panels and set the
      	label approrpiately when activating; replaced a whole bunch of
      	GSList usage with GList (we can always optimize this stuff later).
      	* src/ntl-window.h, src/ntl-window.c: (nautilus_window_destroy,
      	nautilus_window_load_content_view_menu,
      	nautilus_window_set_content_view, nautilus_window_add_meta_view,
      	nautilus_window_remove_meta_view_real,
      	nautilus_window_remove_meta_view): Deal with the above changes
      	(mostly GSList -> GList changes).
      
      	* src/ntl-view-bonobo-control.c, src/ntl-view-bonobo-subdoc.c,
      	src/ntl-view-nautilus.c, src/ntl-view-private.h: Remove all
      	get_label related calls since we get that from the oafinfo now.
      	* libnautilus/nautilus-meta-view-frame.h,
      	libnautilus/nautilus-meta-view-frame.c:
      	(nautilus_meta_view_frame_initialize,
      	nautilus_meta_view_frame_new_from_bonobo_control,
      	nautilus_meta_view_frame_destroy): Remove
      	`nautilus_meta_view_frame_set_label' machinery and associated
      	machinery since we now get the label statically from the oafinfo.
      	* components/history/ntl-history-view.c: (make_obj): Don't call
      	`nautilus_meta_view_frame_set_label' any more, the label is now
      	statically determined from the oafinfo file.
      	* components/notes/ntl-notes.c: (make_notes_view): Likewise.
      	* components/websearch/ntl-web-search.c: (make_obj): Likewise.
      	* components/help/hyperbola-nav-index.c: Likewise.
      	(hyperbola_navigation_index_new): Likewise.
      	* components/help/hyperbola-nav-search.c: Likewise.
      	(hyperbola_navigation_search_new): Likewise.
      	* components/help/hyperbola-nav-tree.c: Likewise.
      	(hyperbola_navigation_tree_new): Likewise.
      	* src/ntl-meta-view.h, src/ntl-meta-view.c:
      	(nautilus_meta_view_set_label),
      	(nautilus_meta_view_get_label): Have an explicit value to set,
      	rather than trying to get it through CORBA. This is kind of a
      	hack, really we should pass around a label and a NautilusMetaView
      	separately and remove this stuff.
      	* components/help/hyperbola.oafinfo,
      	components/notes/ntl-notes.oafinfo,
      	components/websearch/ntl-web-search.oafinfo,
      	components/history/ntl-history-view.oafinfo: Updated to include
      	latest Nautilus attributes.
      cf21c9ee
  22. 27 Apr, 2000 1 commit
  23. 26 Apr, 2000 1 commit
  24. 22 Apr, 2000 2 commits
  25. 21 Apr, 2000 1 commit
    • Darin Adler's avatar
      Fixed a typo that was causing the history view to fail. · ef2dc9ef
      Darin Adler authored
      	* components/history/ntl-history-view.c
      	(hyperbola_navigation_history_notify_location_change):
      	Fixed a typo that was causing the history view to fail.
      
      	* components/music/nautilus-music-view.c
      	(nautilus_music_view_initialize_class),
      	(nautilus_music_view_initialize), (setup_title_font),
      	(nautilus_music_view_realize):
      	Changed to use new nautilus_gtk_widget_set_font_by_name
      	and got rid of the old realize hack.
      
      	* components/rpmview/nautilus-rpm-view.c
      	(nautilus_rpm_view_initialize):
      	Added a FIXME about how it's bad to hard-wire a font.
      
      	* components/services/startup/nautilus-service-startup-view.c
      	(setup_title_font), (setup_form_title),
      	(nautilus_service_startup_view_initialize),
      	(nautilus_service_startup_view_realize),
      	(nautilus_service_startup_view_load_uri):
      	Changed to use new nautilus_gtk_widget_set_font_by_name
      	and got rid of the old realize hack.
      
      	* libnautilus-extensions/nautilus-gtk-extensions.h:
      	* libnautilus-extensions/nautilus-gtk-extensions.c
      	(nautilus_gtk_style_set_font): Made public.
      	(nautilus_gtk_widget_set_font): Added comments and checks on
      	the parameters.
      
      	* libnautilus-extensions/nautilus-icon-container.c (relayout),
      	(idle_handler), (nautilus_icon_container_move_icon),
      	(world_width_changed), (end_stretching), (button_release_event),
      	(handle_icon_button_press), (nautilus_icon_container_add_auto),
      	(nautilus_icon_container_remove),
      	(nautilus_icon_container_set_auto_layout):
      	Some tweaks for auto-layout mode. Made it work better with
      	stretching by not laying out the currently-stretched icon,
      	simplified the code a bit, and made it relayout when an icon
      	is removed.
      
      	* src/file-manager/fm-directory-view.c (compute_menu_item_info),
      	(fm_directory_view_real_merge_menus):
      	Got rid of the "..." from "Delete...". On Macintosh, at least,
      	the "..." is only used when the dialog is something that adds
      	parameters to the command, not when it's just a confirmation.
      
      	* src/nautilus-index-title.c (update_font),
      	(nautilus_index_title_update_label),
      	(nautilus_index_title_update_info):
      	Changed to use new nautilus_gtk_widget_set_font and
      	nautilus_gtk_widget_set_font_by_name.
      
      	* src/ntl-index-panel.c (nautilus_index_panel_remove_meta_view):
      	Made the index panel do *slightly* better when a meta view
      	fails to load.
      
      	* components/help/hyperbola-main.c (main):
      	Fixed a warning.
      ef2dc9ef
  26. 20 Apr, 2000 1 commit
    • John Sullivan's avatar
      Darin and I started out thinking we were going to start entering · 406ed6a9
      John Sullivan authored
      	bugs for the FIXME items but we were distracted into fixing bugs
      	and tweaking code that we found while doing so.
      
      	* check-FIXME.pl: Won't search old ChangeLogs for FIXMEs either;
      	changed FIXME format from "FIXME bug xxx" to "FIXME bugzilla.eazel.com xxx"
      
      	* components/history/ntl-history-view.c:
      	(hyperbola_navigation_history_notify_location_change): Moved bookmark
      	naming hack here and added FIXME explaining it.
      
      	* libnautilus-extensions/nautilus-bookmark.h,
      	* libnautilus-extensions/nautilus-bookmark.c:
      	(nautilus_bookmark_new), (nautilus_bookmark_new_with_name):
      	Combined these two into one routine that takes both the uri and
      	title; removed hack for trying to come up with good name for
      	bookmark here.
      	(nautilus_bookmark_get_pixmap_and_mask): Changed to call
      	_get_pixbuf instead of duplicating code.
      	(nautilus_bookmark_get_pixbuf): Changed interface to return
      	pixbuf or NULL instead of boolean result & "out" parameter.
      
      	* src/nautilus-bookmark-list.c,
      	* src/nautilus-bookmarks-window.c,
      	* src/nautilus-window-menus.c,
      	* src/ntl-window-msgs.c:
      	Updated callers of nautilus_bookmark_new and _new_with_name.
      406ed6a9
  27. 19 Apr, 2000 1 commit
    • Maciej Stachowiak's avatar
      OAF conversion. You must now build bonobo and gnome-vfs with --enable-oaf · f6e6b471
      Maciej Stachowiak authored
      
      	OAF conversion. You must now build bonobo and gnome-vfs with --enable-oaf
      
      	* configure.in: Check for OAF
      
      	* libnautilus/nautilus-view-component.idl: Inherit from
      	Bonobo::Unknown instead of GNOME::Unknown.
      
      	* libnautilus-extensions/nautilus-global-preferences.c,
      	libnautilus-extensions/nautilus-global-preferences.h: Refer to
      	meta views by OAFIID, not GOAD ID.
      
      	* src/ntl-uri-map.c (my_notify_when_ready): Replaced hardcoded
      	list of GOAD IDs with a hardcoded list of OAFIIDs.
      	(add_components_from_metadata): Changed the expected format; it is
      	now label=component instead of component:label since OAFIIDs
      	contain colons.
      
      	* src/ntl-view.c (nautilus_view_destroy_client): unref the
      	Zoomable interface of the View, if any.
      
      	* src/file-manager/dfos-corba.c, src/file-manager/dfos.c: replace
      	GOAD calls with OAF ones; untested since this code is not really
      	used right now.
      
      	* src/ntl-main.c: Use OAF calls to intialize CORBA.
      
      	* src/ntl-app.c: Replace GOAD IDs with OAFIIDs. Use
      	Bonobo_Generic_Factory instead of GNOME_Generic_Factory to make
      	the linker happy. Register the factory server with OAF, not GOAD.
      
      	* src/nautilus.h: Include <liboaf/liboaf.h> instead of <libgnorba/gnorba.h>
      
      
      	* components/help/Makefile.am, components/history/Makefile.am,
      	components/html/Makefile.am, components/mozilla/Makefile.am,
      	components/music/Makefile.am, components/notes/Makefile.am,
      	components/rpmview/Makefile.am, components/sample/Makefile.am,
      	components/services/startup/Makefile.am,
      	components/websearch/Makefile.am, libnautilus/Makefile.am,
      	libnautilus-extensions/Makefile.am, src/Makefile.am,
      	src/file-manager/Makefile.am: Updated for OAF; install .oafinfo
      	files instead of .gnorba.
      
      	* components/help/hyperbola-main.c,
      	components/history/ntl-history-view.c,
      	components/html/ntl-web-browser.c, components/mozilla/main.c,
      	components/music/main.c, components/notes/ntl-notes.c,
      	components/rpmview/main.c, components/sample/main.c,
      	components/services/startup/main.c,
      	components/websearch/ntl-web-search.c: Convert to OAF; use OAFIIDs
      	and oaf intialization functions.
      
      	* src/nautilus.oafinfo, components/help/hyperbola.oafinfo,
      	components/history/ntl-history-view.oafinfo,
      	components/html/ntl-web-browser.oafinfo,
      	components/music/nautilus-music-view.oafinfo,
      	components/notes/ntl-notes.oafinfo,
      	components/rpmview/nautilus-rpm-view.oafinfo,
      	components/services/startup/nautilus-service-startup-view.oafinfo,
      	components/websearch/ntl-web-search.oafinfo,
      	components/sample/nautilus-sample-content-view.oafinfo,
      	components/mozilla/nautilus-mozilla-content-view.oafinfo: New OAF
      	activation records.
      
      	* src/nautilus.goad, components/help/hyperbola.goad,
      	components/history/ntl-history-view.goad,
      	components/html/ntl-web-browser.goad,
      	components/music/nautilus-music-view.goad,
      	components/notes/ntl-notes.goad,
      	components/rpmview/nautilus-rpm-view.goad,
      	components/services/startup/nautilus-service-startup-view.goad,
      	components/websearch/ntl-web-search.goad,
      	components/sample/nautilus-sample-content-view.goad,
      	components/mozilla/nautilus-mozilla-content-view.goad: Removed.
      f6e6b471
  28. 14 Apr, 2000 1 commit
    • Ramiro Estrugo's avatar
      Split libnautilus into two pieces. · 09b3bf22
      Ramiro Estrugo authored
      libnautilus now only contains the view interfaces needed by nautilus
      components.
      
      These are the interfaces defined in nautilus-view-component.idl.
      
      libnautilus-extensions containes the remainder of the stuff.
      
      Also used the cvs repository munging opportunity to do some of the
      ntl-* renaming outlined in the RENAIMING file.
      09b3bf22
  29. 29 Mar, 2000 1 commit
  30. 28 Mar, 2000 1 commit
  31. 22 Mar, 2000 1 commit
  32. 16 Mar, 2000 1 commit
  33. 07 Mar, 2000 1 commit
  34. 24 Feb, 2000 2 commits
  35. 20 Feb, 2000 1 commit
    • Maciej Stachowiak's avatar
      Changed NautilusViewFrame to allow creation of `Nautilus::View' objects · 53c5e06a
      Maciej Stachowiak authored
      	* libnautilus/ntl-view-frame.c, libnautilus/ntl-view-frame.h:
      	Changed NautilusViewFrame to allow creation of `Nautilus::View'
      	objects that have additional interfaces while sharing the actual
      	control. This will allow, for instance, the creation of components
      	that are both a `Nautilus::View' and a `Bonobo::Embeddable'. The
      	basic changes are to require a `BonoboObject' with a
      	`Bonobo::Control' interface at construction time.
      	- Two creation functions are provided: `nautilus_view_frame_new',
      	which takes a GtkWidget, creates a new control that contains that
      	widget, and the constructs a NautilusViewFrame with that control,
      	and `nautilus_view_frame_new_from_control', which creates a
      	NautilusViewFrame that gets added as an additional interface to an
      	existing control.
      	- In the course of doing this it became clear that it would be
      	easier if NautilusViewFrame were changed to inherit from
      	BonoboObject rather than GtkBin, so this was done; as a result,
      	the nautilus_view_frame_get_bonobo_object call was removed, since
      	the view_frame _is_ a bonobo object. However, a
      	nautilus_view_frame_get_bonobo_control call was added as a
      	convenience, to allow other code to avoid having to
      	query_local_interface for the control object manually.
      	* libnautilus/ntl-meta-view-frame.c,
      	libnautilus/ntl-meta-view-frame.h,
      	libnautilus/ntl-content-view-frame.c,
      	libnautilus/ntl-content-view-frame.h: Analogous changes; mainly,
      	added `nautilus_meta_view_frame_new',
      	`nautilus_meta_view_frame_new_from_control',
      	`nautilus_content_view_frame_new' and
      	`nautilus_content_view_frame_new_from_control'.
      	* components/help/hyperbola-nav-index.c,
      	components/help/hyperbola-nav-tree.c,
      	components/history/ntl-history-view.c,
      	components/html/ntl-web-browser.c, components/notes/ntl-notes.c,
      	components/websearch/ntl-web-search.c, src/ntl-app.c,
      	src/file-manager/fm-directory-view.c: Fixed initialization and
      	object creation functions to deal with the above API change.
      53c5e06a