mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-09-21 00:32:06 +00:00
40 commits
Author | SHA1 | Message | Date | |
---|---|---|---|---|
Darin Adler | 33e0bb3642 |
reviewed by: John Sullivan <sullivan@eazel.com>
Fixed bug 6477 (no way for intall view to send user "back where they came from") by adding a "go back" command for views. * libnautilus/nautilus-view-component.idl: Add "go back". * libnautilus/nautilus-view.h: * libnautilus/nautilus-view.c: (nautilus_view_go_back): Add "go back". * src/nautilus-view-frame-private.h: * src/nautilus-view-frame-corba.c: (go_back), (impl_Nautilus_ViewFrame_go_back): Add "go back". * src/nautilus-view-frame.h: * src/nautilus-view-frame.c: (nautilus_view_frame_initialize_class), (nautilus_view_frame_go_back): Add "go back". * src/nautilus-window-manage-views.c: (go_back_callback): Add code to either go back or go home. * src/nautilus-window-toolbars.c: (back_or_forward_button_pressed_callback): Formatting tweak. |
||
Darin Adler | 0605af8870 |
reviewed by: John Sullivan <sullivan@eazel.com>
Fixed bug 6163 (Need NautilusViewFrame :: report_location_changed). This is re-adding a feature we also had long ago, where a view reports a location change, but does not want the location change to come back to it in the form of a load_location call. * src/nautilus-applicable-views.h: * src/nautilus-applicable-views.c: (get_view_result_from_gnome_vfs_result), (got_file_info_callback), (got_minimum_file_info_callback), (nautilus_determine_initial_view), (nautilus_determine_initial_view_cancel): Changed this entire file to have a much easier-to-understand API. * src/nautilus-view-frame-private.h: * src/nautilus-view-frame-corba.c: (free_location_plus_callback): Change existing structure so it can be used for the location-change case, which includes a title too. (open_force_new_window): Use new structure. (report_location_change): Implement new call. (impl_Nautilus_ViewFrame_open_location_force_new_window): Use new structure. (impl_Nautilus_ViewFrame_report_location_change): Implement new call. * libnautilus/nautilus-view-component.idl: Add the new call. * libnautilus/nautilus-view.h: * libnautilus/nautilus-view.c: (nautilus_view_report_location_change): Add the new call. * src/nautilus-view-frame.h: * src/nautilus-view-frame.c: (nautilus_view_frame_initialize_class): Add new signal. (nautilus_view_frame_report_location_change): Implement new call. * src/nautilus-window-private.h: * src/nautilus-window-manage-views.h: * src/nautilus-window-manage-views.c: (update_for_new_location): Got rid of obsolete assert. Also, no longer clear the selection. The selection is set properly earlier, and clearing it at this point serves no purpose. (location_has_really_changed): Call free_location_change to share more code. Also no reason to free "pending_ni" any more, because we don't keep it around in the success case. (load_new_location_in_one_view): New name. (load_new_location_in_sidebar_panels): New name. Also take a parameter of a view to skip. (load_new_location_in_all_views): New function. (set_to_pending_location_and_selection): New name, and removed code to handle the case where there is no pending location, since that doesn't happen. Also take a parameter of a view to skip. Also broke out the guts into load_new_location_in_all_views. (free_location_change): Free things by their new names. There's also less to free now. (cancel_location_change): Key off pending_location instead of pending_ni. Also save code by using new function that skips a view. (determined_initial_view_callback): Changed name, and use new interface. No longer need "end_reached" trick, because the new interface handles that. (begin_location_change): Made a static after moving all the functions that use it in here. Also moved some of the reload code out into nautilus_window_reload. (report_location_change_callback): New function. Does all the steps neede for a location change in place. (nautilus_window_back_or_forward), (nautilus_window_reload): Moved these two functions in here from nautilus-window.c so we could make begin_location_change more private. * src/nautilus-window.h: * src/nautilus-window.c: (nautilus_window_go_to): Changed the name. (nautilus_window_get_location): New function for callers that used to get the location field directly. (go_to_callback): Changed name. * src/nautilus-desktop-window.c: (nautilus_desktop_window_new): * src/nautilus-location-bar.c: (drag_data_received_callback): * src/nautilus-shell.c: (open_window), (save_window_states), (restore_window_states): * src/nautilus-window-menus.c: (services_button_callback), (help_menu_nautilus_manual_callback), (help_menu_nautilus_license_callback), (help_menu_nautilus_feedback_callback), (activate_bookmark_in_menu_item): * src/nautilus-window-service-ui.c: (goto_services_summary), (goto_online_storage), (goto_software_catalog), (goto_services_support): * src/nautilus-window.c: (location_change_at_idle_callback), (nautilus_window_constructed), (view_as_menu_vfs_method_callback), (nautilus_window_go_web_search), (nautilus_window_go_home): Use nautilus_go_to under its new name. * src/nautilus-shell.c: (restore_window_states): Use nautilus_istr_has_prefix instead of g_strncasecmp. Also did other code cleanup. * libnautilus-extensions/nautilus-gtk-extensions.h: Added a new marshal function that I needed. * libnautilus-extensions/nautilus-thumbnails.c: Added a FIXME. * libnautilus-extensions/nautilus-view-identifier.h: * libnautilus-extensions/nautilus-view-identifier.c: (nautilus_view_identifier_copy), (nautilus_view_identifier_compare): Use const. * src/nautilus-application.c: (nautilus_application_startup): Only check for root if we are actually running nautilus, not if we are just killing off an existing copy. (confirm_ok_to_run_as_root): Changed name of the function and improved the wording of the message and button. Also added an environment variable you can set to get rid of this. (Probably should have been a preference instead, but I am officially being lazy about this.) Fixed bug that was revealed by the change in the loading sequence I made. John didn't review this part: * libnautilus-extensions/nautilus-directory-private.h: * libnautilus-extensions/nautilus-directory-async.c: (load_directory_state_destroy), (load_directory_done): Separate out code to free the partly-done state so it can be used in the cancel case. (dequeue_pending_idle_callback): Ref the directory object so that we won't get messed up if the callback destroys it. (directory_load_cancel): Separated out the old part of file_list_cancel so that we can cancel the idle part too when we want to. (file_list_cancel): Use the new calls to cancel the idle part of directory loading. (directory_load_done): Use directory_load_cancel instead of file_list_cancel. (nautilus_directory_stop_monitoring_file_list): Use directory_load_cancel instead of file_list_cancel. (nautilus_directory_async_state_changed): Added state variables to protect cases where we re-enter this function. |
||
Darin Adler | 78ca16a050 |
Updated based on recent check-ins and other contributions.
* AUTHORS: * THANKS: * src/nautilus-window-menus.c: (help_menu_about_nautilus_callback): Updated based on recent check-ins and other contributions. * check-THANKS.pl: Updated to check the about list against the AUTHORS file and to fix some other things. * libnautilus/nautilus-view-component.idl: Fix a comment and remove a stray empty line. |
||
Darin Adler | e82bab8c49 |
reviewed by: John Sullivan <sullivan@eazel.com>
Fixed bug 2147 (NautilusFile for trash needs non-empty values for more properties), bug 5652 (MIME type field appears but shouldn't in properties window for Trash), and bug 4620 (trash sidebar should show number of items). * libnautilus-extensions/nautilus-file.h: * libnautilus-extensions/nautilus-file-private.h: * libnautilus-extensions/nautilus-file.c: (nautilus_file_new_from_relative_uri): Create trash file subclass when appropriate. (nautilus_file_info_missing): Rename so it can be used in other source files. (nautilus_file_get_date): New method that returns numeric dates. (nautilus_file_get_date_as_string): Change to call nautilus_file_get_date to get the numeric date. (nautilus_file_get_file_type): Turn into a method. * libnautilus-extensions/nautilus-merged-directory.h: * libnautilus-extensions/nautilus-merged-directory.c: (merged_call_when_ready): Rolled in the old merged_callback_connect_directory function. (merged_contains_file): Moved down to a more appropriate part of the source file. (nautilus_merged_directory_get_real_directories): New public function for use by trash. * libnautilus-extensions/nautilus-trash-file.c: (trash_callback_hash), (trash_callback_equal), (trash_callback_destroy), (trash_callback_check_done), (trash_callback_remove_file), (ready_callback), (real_file_changed_callback), (monitor_add_file), (add_real_file), (trash_callback_remove_file_cover), (monitor_remove_file), (remove_real_file), (add_real_file_given_directory), (add_directory_callback), (remove_directory_callback), (trash_file_call_when_ready), (trash_file_cancel_call_when_ready), (trash_file_check_if_ready), (trash_file_monitor_add), (trash_file_monitor_remove), (trash_file_get_file_type), (trash_file_get_item_count), (trash_file_get_deep_counts), (trash_file_get_date), (remove_all_real_files), (nautilus_trash_file_initialize), (trash_destroy), (nautilus_trash_file_initialize_class): New code. First implementation of getting some attributes for the merged trash. Gets list of directories from the NautilusTrashDirectory object. The code in here is similar to the NautilusMergedDirectory class and at some point perhaps we can make the two share more. * libnautilus-extensions/nautilus-vfs-file.c: (vfs_file_get_file_type), (vfs_file_get_date), (nautilus_vfs_file_initialize_class): Implement the two new methods for the standard vfs case. Fixed various things that affect the properties window for the trash that showed up while I was testing the above work: * libnautilus-extensions/nautilus-icon-factory.c: (nautilus_icon_factory_get_icon_name_for_regular_file), (nautilus_icon_factory_get_icon_name_for_file): Move trash special case out so it doesn't matter what type the trash seems to be. The old code relied on trash not being a directory. * src/file-manager/fm-properties-window.c: (create_properties_window), (create_properties_window_callback), (cancel_create_properties_window_callback), (directory_view_destroyed_callback), (remove_pending_file): Rework code to fix problems where the timed wait or the signal handler wasn't properly cleaned up. Fixed remaining bit of bug 5631 (Tear-offs of right-click menus don't work.): * src/file-manager/nautilus-desktop-icon-view-ui.xml: Mark Disks right-click submenu so it won't get a tear-off item. Fixed bug 5650 (nautilus --quit fails to return to prompt sometimes): * src/nautilus-application.c: (nautilus_application_startup): Add special case so "nautilus --quit" doesn't hang waiting for a response from the (now quit) "server" instance of Nautilus. * src/nautilus-shell-interface.idl: Had to make the quit call no longer be "oneway" to get it to work right, otherwise the quit message could be lost when the sending application exited too fast. Fix bug 5675 (Nitpicks in new "could not be moved to new special location" dialog): * libnautilus-extensions/nautilus-file-operations.c: (handle_transfer_overwrite): Updated message wording as Eli (and Vera) suggest. Other changes: * libnautilus-extensions/nautilus-view-identifier.c: (get_lang_list): Fix comment and a small storage leak in the case where lang_with_locale is non-NULL but empty. * po/POTFILES.ignore: Obsolete file, no longer used. * src/file-manager/fm-desktop-icon-view.c: (update_home_link_and_delete_copies): Update comment to help translators understand better. * libnautilus-extensions/nautilus-directory-async.c: (directory_load_callback): Added a new assertion that could help in future gnome-vfs debugging. * libnautilus/nautilus-view-component.idl: Removed long-ago-fixed FIXME comment. * src/nautilus-window-manage-views.c: Tweak spacing. |
||
Darin Adler | f683ed7935 |
reviewed by: Pavel Cisler <pavel@eazel.com>
Fix bug 5235 ("Forget History" eliminates history from Go menu, not History sidebar panel). * components/history/nautilus-history-view.c: (install_icons): Fix leak of pixmap and bitmap. (update_history): Replaced dual lock system with a single one. (button_press_callback): Only respect button 1, ignore others. (button_release_callback): Only respect button 1, ignore others, (history_changed_callback): A new single callback for when the history list changes to replace the multiple callbacks before. (nautilus_history_view_initialize_class), (nautilus_history_view_initialize), (nautilus_history_view_destroy), (main): Change the history view to use nautilus_view_standard_main which requires a subclass. This gets rid of a lot of boilerplate code. * libnautilus/nautilus-view-component.idl: Make every NautilusView get an explicit history_changed call instead of requiring them to guess when to get history. Removed the old get_history_list call and also renamed the HistoryList sequence to History. * libnautilus/nautilus-view.h: * libnautilus/nautilus-view.c: (impl_Nautilus_View_history_changed), (nautilus_view_initialize_class): Added the necessary stuff to cover the new history_changed call. * src/nautilus-view-frame.h: * src/nautilus-view-frame.c: (nautilus_view_frame_initialize): Connect handlers so we can send history_changed calls to the NautilusView when either the history or the icons change. (nautilus_view_frame_destroy): Change state to EMPTY so the history signal won't be sent once the frame is destroyed. (view_frame_activated): Send a history_changed to every newly-activated view. (get_CORBA_object): Helper function to make code that makes CORBA calls simpler. (check_if_view_is_gone): Use get_CORBA_object. (attach_client): Gave a nicer name, removed the code that makes the Nautilus_HistoryFrame interface. (nautilus_view_frame_load_client): Do the attach_client (formerly nautilus_view_frame_set_to_component) before calling view_frame_activated. This is needed since view_frame_activated now sends a history_changed to the view. (nautilus_view_frame_load_location), (nautilus_view_frame_stop_loading), (nautilus_view_frame_selection_changed), (nautilus_view_frame_title_changed): Use get_CORBA_object. (get_history_list): Made this private. (send_history): Helper function that sends history to the view if it's in the appropriate state. * src/Makefile.am: * src/nautilus-history-frame.c: * src/nautilus-history-frame.h: Removed the old NautilusHistoryFrame, which is no longer needed since we put the history call right in the NautilusView class. * src/nautilus-window-manage-views.c: (get_history_list_callback): Updated for Nautilus_HistoryList -> Nautilus_History change. Fix bug 5391 ("Esc" Canceling of an icon stretch doesn't restore icon position.). * libnautilus-extensions/nautilus-icon-private.h: * libnautilus-extensions/nautilus-icon-container.c: (clear_drag_state): Add a single bottleneck function to make sure the context menu timeout always gets canceled. (continue_stretching): Remove the unused "update_position" parameter. (undo_stretching): Consolidate the cancel_stretching function and restore the icon's position as well as its size. Also use the new bottleneck to clear the drag state. (button_release_event): Use the new bottleneck to clear the drag state. (show_context_menu_callback): Use the new bottleneck to clear the drag state. (nautilus_icon_container_set_selection), (nautilus_icon_container_select_list_unselect_others): Take advantage of the defaults in g_hash_table_new and use NULL, NULL instead of g_direct_hash, g_direct_equal. (nautilus_icon_container_show_stretch_handles): Save the position as well as the size. (compute_stretch): Add a FIXME with a bug number. Fix bug 5407 (Make "Hardware Overview" title translatable). * components/hardware/nautilus-hardware-view.c: (nautilus_hardware_view_destroy): Remove unused uri field. (extract_info): Fix storage leak. (get_RAM_description): Get rid of code that non-portably relies on long long. Mark strings for translation. (get_IDE_description): Get rid of code that non-portably relies on long long. Mark strings for translation. (setup_overview_form): Marked string for translation. (setup_CPU_form), (setup_RAM_form), (setup_IDE_form), (is_location), (nautilus_hardware_view_load_uri): Disable the views other than the overview for now since they are not ready to be seen. (nautilus_hardware_view_drag_data_received): Get rid of the code that makes the hardware view accept a URI list drag. Fix bug 5405 (nautilus --check fails when using LC_ALL=sv_SE due to missing entry in POTFILES.in). * po/POTFILES.in: Added nautilus-glib-extensions.c. Other changes. * src/nautilus-signaller.h: * src/nautilus-signaller.c: (nautilus_signaller_initialize_class), (nautilus_signaller_get_current): Change the NautilusSignaller class so that the interface calls the object a GtkObject * and the details of the class are hidden. * src/nautilus-property-browser.c: (emit_emblems_changed_signal): * src/nautilus-search-bar-criterion.c: (nautilus_search_bar_criterion_destroy), (nautilus_search_bar_criterion_new_from_values): * src/nautilus-window-menus.c: (nautilus_window_initialize_go_menu): * src/nautilus-window.c: (nautilus_send_history_list_changed): Now that nautilus_signaller_get_current returns a GtkObject, remove some unnecessary casts. * components/html/glibwww-callbacks.c: (get_sock_info), (glibwww_timer_register): * components/tree/nautilus-tree-model.c: (nautilus_tree_model_initialize): * components/tree/nautilus-tree-view.c: (nautilus_tree_view_initialize): * libnautilus-extensions/nautilus-directory-async.c: (async_job_start): * libnautilus-extensions/nautilus-directory.c: (nautilus_directory_notify_files_added), (nautilus_directory_notify_files_removed), (nautilus_directory_notify_files_moved): * libnautilus-extensions/nautilus-icon-factory.c: (nautilus_icon_factory_initialize): * libnautilus-extensions/nautilus-list.c: (nautilus_list_set_selection): * libnautilus-extensions/nautilus-merged-directory.c: (nautilus_merged_directory_initialize): * libnautilus-extensions/nautilus-trash-directory.c: (nautilus_trash_directory_initialize): * src/file-manager/fm-properties-window.c: (fm_properties_window_present): Take advantage of the defaults in g_hash_table_new and use NULL, NULL instead of g_direct_hash, g_direct_equal. |
||
Maciej Stachowiak | 8c61df4003 |
reviewed by: Darin Adler <darin@eazel.com>
* libnautilus/nautilus-view.c, libnautilus/nautilus-view.h (nautilus_view_construct, nautilus_view_construct_from_bonobo_control): New construct functions so it's possible for view implementations to be subclasses of NautilusView. (nautilus_view_new_from_bonobo_control): Implement in terms of construct function. * libnautilus/nautilus-view-standard-main.h, libnautilus/nautilus-view-standard-main.c: (nautilus_view_standard_main_multi, nautilus_view_standard_main, nautilus_view_create_from_get_type): New convenience functions that encapsulate and librarify most of the cut and pasted main.c code that is in every nautilus view. (object_destroyed, make_object): Helper functions. * libnautilus/Makefile.am: Add nautilus-view-standard-main.[ch] to build. * libnautilus/nautilus-view-component.idl: Add license header comment. * libnautilus-extensions/nautilus-gtk-macros.h: Lined up the backslashes to make it easier to read and edit the multi-line macros. * components/sample/README: Explain that all files in this directory have "WHAT YOU NEED TO CHANGE" comments. * components/sample/main.c (main): Implement in terms of `nautilus_view_standard_main' and removed most of the rest of this file. Now all you have to change when writing your own view is an include and some defines at the top of the file. Added "WHAT YOU NEED TO CHANGE" comment. * components/sample/nautilus-sample-content-view.h, components/sample/nautilus-sample-content-view.c: Added "WHAT YOU NEED TO CHANGE" comments. (nautilus_sample_content_view_get_type, nautilus_sample_content_view_initialize, nautilus_sample_content_view_destroy, load_location, sample_load_location_callback, bonobo_sample_callback, sample_merge_bonobo_items_callback): Changed everything around so NautilusSampleContentView inherits from Nautilus view, not GtkLabel (the widget that happens to be in the main content area). This makes a lot more sense. Also fix bug 2410 but including alternative code to nautilus-only macros. * components/sample/nautilus-sample-content-view.oafinfo: Added "WHAT YOU NEED TO CHANGE" comment. * components/sample/Makefile.am: Added "WHAT YOU NEED TO CHANGE" comment. |
||
Darin Adler | ac2ec5b56b |
reviewed by: John Sullivan <sullivan@eazel.com>
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. |
||
Martin Baulig | 00c3963094 |
reviewed by: Darin Adler <darin@eazel.com> reviewed by: Maciej Stachowiak
2000-10-22 Martin Baulig <baulig@suse.de> reviewed by: Darin Adler <darin@eazel.com> reviewed by: Maciej Stachowiak <mjs@eazel.com> Use the new Bonobo::Zoomable interface instead of Nautilus::Zoomable. * libnautilus/nautilus-zoomable.[ch]: Removed. * src/nautilus-zoomable-frame-corba.c: Removed. * libnautilus/nautilus-view-component.idl (ZoomLevels, ZoomLevelList, Zoomable, ZoomableFrame): Removed. * src/nautilus-view-frame-private.h (impl_Nautilus_ZoomableFrame_vepv, impl_Nautilus_ZoomableFrame__create): Removed external declarations. * src/nautilus-view-frame.h: include <bonobo/bonobo-zoomable-frame.h>. (NautilusViewFrame): Removed the `zoomable' field and changed the type of the `zoomable_frame' field from BonoboObject into BonoboZoomableFrame. (NautilusViewFrameClass): Added `zoom_parameters_changed' signal. * src/nautilus-view-frame.c (nautilus_view_frame_destroy_client): Don't release `view->zoomable' and set `view->history_frame' and `view->zoomable_frame' to NULL, not to CORBA_OBJECT_NIL. (nautilus_view_frame_initialize_class): Added ZOOM_PARAMETERS_CHANGED signal. (zoom_level_changed_callback): New static callback function; this emits the ZOOM_LEVEL_CHANGED signal on the NautilusViewFrame. (zoom_parameters_changed_callback): New static callback function; this emits the ZOOM_PARAMETERS_CHANGED signal on the NautilusViewFrame. (nautilus_view_frame_set_to_component): QI the adapted component for "IDL:Bonobo/Zoomable:1.0" and - if it was found - create the BonoboZoomableFrame, bind it to the BonoboZoomable and connect the "zoom_level_changed" and the "zoom_parameters_changed" signals. (nautilus_view_frame_is_zoomable): Return `view->zoomable_frame != NULL'. (nautilus_view_frame_get_zoom_level): Check whether view->zoomable_frame is not NULL and call bonobo_zoomable_frame_get_zoom_level(). (nautilus_view_frame_set_zoom_level): Check whether view->zoomable_frame is not NULL and call bonobo_zoomable_frame_set_zoom_level(). (nautilus_view_frame_get_min_zoom_level): Check whether view->zoomable_frame is not NULL and call bonobo_zoomable_frame_get_min_zoom_level(). (nautilus_view_frame_get_max_zoom_level): Check whether view->zoomable_frame is not NULL and call bonobo_zoomable_frame_get_max_zoom_level(). (nautilus_view_frame_get_has_min_zoom_level): New function. Check whether view->zoomable_frame is not NULL and call bonobo_zoomable_frame_has_min_zoom_level(). (nautilus_view_frame_get_has_max_zoom_level): New function. Check whether view->zoomable_frame is not NULL and call bonobo_zoomable_frame_has_max_zoom_level(). (nautilus_view_frame_get_is_continuous): New function. Check whether view->zoomable_frame is not NULL and call bonobo_zoomable_frame_is_continuous(). (nautilus_view_frame_get_preferred_zoom_levels): If view->zoomable_frame is NULL, return NULL. Otherwise bonobo_zoomable_frame_get_preferred_zoom_levels() returns GList * of floats which we can just return. (nautilus_view_frame_zoom_in): If view->zoomable_frame is not NULL, call bonobo_zoomable_frame_zoom_in(). (nautilus_view_frame_zoom_out): If view->zoomable_frame is not NULL, call bonobo_zoomable_frame_zoom_out(). (nautilus_view_frame_zoom_to_fit): If view->zoomable_frame is not NULL, call bonobo_zoomable_frame_zoom_out(). (nautilus_view_frame_zoom_level_changed): Removed. * src/nautilus-zoom-control.c (NautilusZoomControlDetails): Added `has_min_zoom_level' and `has_max_zoom_level'. (draw_zoom_control_image): Call nautilus_zoom_control_can_zoom_in/out() to find out whether we can zoom. (zoom_menu_callback): Likewise. (nautilus_zoom_control_button_press_event): Likewise. (create_zoom_menu_item): Changed the type of the `zoom_level' argument from double to float. (nautilus_zoom_control_set_min_zoom_level): Removed. (nautilus_zoom_control_set_max_zoom_level): Removed. (nautilus_zoom_control_set_preferred_zoom_levels): Removed. (nautilus_zoom_control_set_parameters): New function. (nautilus_zoom_control_has_min_zoom_level): New function. (nautilus_zoom_control_has_max_zoom_level): New function. (nautilus_zoom_control_can_zoom_in): New function. (nautilus_zoom_control_can_zoom_out): New function. * src/file-manager/fm-directory-view.c: #include <bonobo/bonobo-zoomable.h> instead of <libnautilus/libnautilus-zoomable.h>. (FMDirectoryViewDetails): Changed the type of `zoomable' to BonoboZoomable. (fm_directory_view_preferred_zoom_levels): Made this an array of float, not double. (fm_directory_view_initialize): Create a new BonoboZoomable object here. (zoomable_zoom_in_callback): The first argument is now a BonoboZoomable. (zoomable_zoom_out_callback): The first argument is now a BonoboZoomable. (nautilus_zoom_level_from_double): Renamed into nautilus_zoom_level_from_float(). (zoomable_set_zoom_level_callback): The first argument is now a BonoboZoomable and the second one a float. (zoomable_zoom_to_fit_callback): The first argument is now a BonoboZoomable. (fm_directory_view_set_zoom_level): Call bonobo_zoomable_report_zoom_level_changed() instead of using nautilus_zoomable_set_zoom_level(). * src/nautilus-window-manage-views.c: (zoom_level_changed_callback): Don't call nautilus_zoom_control_set_min_zoom_level(), nautilus_zoom_control_set_max_zoom_level() and nautilus_zoom_control_set_preferred_zoom_levels() here. Use nautilus_zoom_control_can_zoom_in/out() to find out whether we can zoom in the calls to nautilus_bonobo_set_sensitive(). , (zoom_parameters_changed_callback): New callback function. Call nautilus_zoom_control_set_parameters() and - if the zoom_level is not 0.0 - zoom_level_changed_callback(). * components/adapter/nautilus-zoomable-proxy.[ch]: New files. * components/adapter/Makefile.am (nautilus_adapter_SOURCES): Added nautilus-zoomable-proxy.c and nautilus-zoomable-proxy.h. * components/adapter/nautilus-adapter-embed-strategy.c (NautilusAdapterEmbedStrategyClass): Added new virtual signal `get_zoomable' which must be overridden. (nautilus_adapter_embed_strategy_initialize_class): Assign it here. (nautilus_adapter_embed_strategy_get_zoomable): New static function; call the virtual `get_zoomable' in the derived class. * components/adapter/nautilus-adapter-control-embed-strategy.c: (nautilus_adapter_control_embed_strategy_initialize_class): Assign nautilus_adapter_control_embed_strategy_get_zoomable() as handler of the `get_zoomable' signal. (nautilus_adapter_control_embed_strategy_new): QI the Control for "IDL:Bonobo/Zoomable:1.0" and pass it to nautilus_zoomable_proxy_get() if found and store the return value in strategy->details->zoomable. (nautilus_adapter_control_embed_strategy_get_zoomable): New static function; return strategy->details->zoomable which is set in nautilus_adapter_control_embed_strategy_new(). * components/adapter/nautilus-adapter-embeddable-embed-strategy.c: (nautilus_adapter_embeddable_embed_strategy_initialize_class): Assign nautilus_adapter_embeddable_embed_strategy_get_zoomable() as handler of the `get_zoomable' signal. (nautilus_adapter_embeddable_embed_strategy_new): QI the View for "IDL:Bonobo/Zoomable:1.0" and pass it to nautilus_zoomable_proxy_get() if found and store the return value in strategy->details->zoomable. (nautilus_adapter_embeddable_embed_strategy_get_zoomable): New static function; return strategy->details->zoomable which is set in nautilus_adapter_embeddable_embed_strategy_new(). * components/adapter/nautilus-adapter.c: (nautilus_adapter_new): Call nautilus_adapter_embed_strategy_get_zoomable(embed_strategy) and bonobo_add_interface() it to the control if found. * components/image-viewer/nautilus-image-view.c: Rewrote the Nautilus image viewer to be a BonoboControl, to add zoomable support to it and to merge back everything from bonobo-image-generic into it. |
||
Gene Z. Ragan | 5b90ae9c17 |
Fixed bug 1633, History sidebar panel items all display generic bookmark
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. |
||
Darin Adler | a96c73cb26 |
Tell everyone that we are back on bonobo HEAD. Make sure Nautilus doesn't
* 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. |
||
Darin Adler | 99785dd779 |
More work on whittling the state machine down to size.
* 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. |
||
Darin Adler | fb80ae1376 |
Removed unused "self_owned" field.
* libnautilus-extensions/nautilus-file-private.h: Removed unused "self_owned" field. * libnautilus/nautilus-view-component.idl: * libnautilus/nautilus-view.h: * libnautilus/nautilus-view.c: (nautilus_view_open_location_in_new_window): * src/file-manager/fm-directory-view.c: (fm_directory_view_switch_location): * src/file-manager/fm-search-list-view.c: (reveal_selected_items_callback): * src/nautilus-view-frame-corba.c: (impl_Nautilus_ViewFrame_open_location), (impl_Nautilus_ViewFrame_open_location_in_new_window), (impl_Nautilus_ViewFrame_report_selection_change): * src/nautilus-view-frame-private.h: * src/nautilus-view-frame.h: * src/nautilus-view-frame.c: (nautilus_view_frame_initialize_class), (nautilus_view_frame_open_location_in_new_window): Removed report_location_change and open_in_new_window_and_select. The open_location_in_new_window call now always does a selection operation. * src/nautilus-window-manage-views.h: * src/nautilus-window-manage-views.c: (update_view), (nautilus_window_load_sidebar_panel), (open_location), (nautilus_window_open_location), (nautilus_window_open_location_in_new_window), (nautilus_window_load_content_view), (nautilus_window_update_state), (nautilus_window_begin_location_change): * src/nautilus-window-private.h: * src/nautilus-window.h: * src/nautilus-window.c: (nautilus_window_switch_views), (nautilus_window_back_or_forward), (nautilus_window_open_location_in_new_window_callback), (nautilus_window_connect_view), (nautilus_window_reload): Made some simplifications that are possible because we don't have the old report_location_change to support. |
||
Seth Nickell | bed586cb61 |
Fix function prototype problem with PAM on Linux.
2000-09-11 Seth Nickell <seth@eazel.com> * helper-utilities/authenticate/nautilus-authenticate-pam.c: (pam_conversion_func), (nautilus_authenticate_authenticate): Fix function prototype problem with PAM on Linux. * libnautilus/nautilus-view-component.idl: Commented FIXMEs better. |
||
Seth Nickell | 45d4936a14 |
Add checks to fix things on Solaris regarding mounting, environment
2000-09-11 Seth Nickell <seth@eazel.com> * configure.in: Add checks to fix things on Solaris regarding mounting, environment variables, and fonts. Added tests for compiler warning flags that are not supported with all versions of GCC. * helper-utilities/authenticate/nautilus-authenticate-pam.c: (pam_conversion_func): Remove "const" from system call for compatibility with Solaris. * libnautilus-extensions/nautilus-file.c: (get_id_from_digit_string): uid_t != int, so change functions converting from string to uid_t to deal with greater bit uids properly. * libnautilus-extensions/nautilus-glib-extensions.h: * libnautilus-extensions/nautilus-glib-extensions.c: (nautilus_g_setenv), (nautilus_g_unsetenv): Add system gnostic functions for setting and removing variables from the environment. * libnautilus-extensions/nautilus-scalable-font.c: (initialize_global_stuff_if_needed): Temporary fix to deal with the absence of "RedHat-style" font paths on Solaris and Debian whilst font paths are still hard-coded. * libnautilus-extensions/nautilus-volume-monitor.c: (nautilus_volume_monitor_get_volume_name), (nautilus_volume_monitor_volume_is_mounted), (mount_volumes_update_is_mounted), (mnttab_add_mount_volume), (mntent_add_mount_volume), (find_volumes): Rewrite sections to use the appropriate Solaris mounting functions if Linux-style mount/umount/mount-table manipulation functions are not available. * libnautilus/nautilus-view-component.idl: * src/nautilus-view-frame-corba.c: * src/nautilus-zoomable-frame-corba.c: (impl_Nautilus_ZoomableFrame_report_zoom_level_changed): Change doubles to floats to work around an ORBit problem on Solaris wherein doubles are not correctly aligned. * src/file-manager/fm-desktop-icon-view.c: remove gratuitous linux specific header inclusion * src/nautilus-first-time-druid.c: (set_http_proxy): * src/nautilus-main.c: (main): * src/nautilus-shell.c: (corba_restart): (impl_Nautilus_ViewFrame_report_load_progress): Changed "setenv" and "unsetenv" calls to use nautilus_g_setenv and nautilus_g_unsetenv. * src/nautilus-window-manage-views.c: (report_sidebar_panel_failure_to_user): Add better error message to sidebar failures where it can't figure out which sidebar failed. Done in order to fix null string being passed to dialogue function which segfaulted Nautilus on Solaris. Yes children, your Nautilus will now run and frollick in the green, green pasture of the multi-cpu UltraSparc. |
||
Maciej Stachowiak | abdbe66a4c |
New IDL interface for the special adapter component that will be used to
* libnautilus-adapter/nautilus-adapter-factory.idl: New IDL interface for the special adapter component that will be used to wrap ordinary Bonobo components to look like Nautilus::Views as part of the solution to bugzilla.eazel.com #1994. * libnautilus-adapter/Makefile.am: Build a library containing the stubs and sekeletons. * libnautilus/nautilus-view-component.idl: Some changes so this IDL file can be included in others safely. * libnautilus/Makefile.am: Made necessary build adjustments for the above. * configure.in, Makefile.am: add libnautilus-adapter directory to build. |
||
Mathieu Lacage | 62ce8b92d1 |
completes task 1567. it shows a bug in the way the history view displays
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. |
||
John Sullivan | 298b6cc9a7 |
More work on bug 1750 ("Reveal in New Window" feature for
search results). Now it opens a new window with the right item selected. The only remaining work is to make the new window scroll as necessary to reveal the item. Along the way, fixed an unreported bug where the selection wasn't being maintained on view switches. * libnautilus-extensions/nautilus-gtk-extensions.h: added #define for nautilus_gtk_marshal_NONE__STRING_POINTER. * libnautilus/nautilus-view-component.idl: Added open_in_new_window_and_select call. * libnautilus/nautilus-view.h, * libnautilus/nautilus-view.c: (nautilus_view_open_in_new_window_and_select): * src/nautilus-view-frame-corba.c: (impl_Nautilus_ViewFrame_open_location_in_new_window), (impl_Nautilus_ViewFrame_open_in_new_window_and_select): * src/nautilus-view-frame-private.h: * src/nautilus-view-frame.c: (nautilus_view_frame_initialize_class), (nautilus_view_frame_open_in_new_window_and_select): * src/nautilus-view-frame.h: Wired together the various pieces to get open_in_new_window_and_select across CORBA and into the view frame. * src/nautilus-window.h: added pending_selection field * src/nautilus-window-manage-views.h: added nautilus_window_open_in_new_window_and_select * src/nautilus-window.c: (nautilus_window_open_in_new_window_and_select_callback), (nautilus_window_connect_view): Wiring to connect view frame signals to window. (nautilus_window_destroy): free pending_selection * src/nautilus-window-manage-views.c: (nautilus_window_update_view): Changed call from nautilus_window_report_selection_changed to nautilus_view_frame_selection_changed. This was the source of the selection-not-preserved-across-view-changes bug. Darin came up with this fix. (open_location): Added a new_selection parameter to this bottleneck function. It is set as the pending_selection in the window. (nautilus_window_open_location), (nautilus_window_open_location_in_new_window), (nautilus_window_report_location_change): Update existing callers of open_location to pass NULL for new_selection parameter. (nautilus_window_open_in_new_window_and_select): New function, calls open_location with a selection (among other parameters). (nautilus_window_update_state): When loading a new location, set the location to pending_selection rather than NULL (and clear pending_selection later so it doesn't unnecessarily hang around). * src/file-manager/fm-search-list-view.c: (reveal_selected_items_callback): Call open_in_new_window_and_select instead of just open_location_in_new_window |
||
Mathieu Lacage | e308553c83 |
Cleans up the HistoryFrame : remove the History object and replaces it
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): |
||
Darin Adler | 3685f79f91 |
Fixed bug 2210 (GNOME is referred to as Gnome in the about dialog). It was
* src/nautilus-window-menus.c: (help_menu_about_nautilus_callback): * libnautilus-extensions/nautilus-program-chooser.c: (nautilus_program_chooser_new), (nautilus_program_chooser_show_no_choices_message): Fixed bug 2210 (GNOME is referred to as Gnome in the about dialog). It was in one other place too. * libnautilus/nautilus-view-component.idl: Fixed some comments. * libnautilus-extensions/nautilus-directory-private.h: * libnautilus-extensions/nautilus-directory-async.c: (dequeue_pending_idle_callback): * libnautilus-extensions/nautilus-directory.c: (nautilus_directory_emit_files_changed), (nautilus_directory_emit_change_signals_deep), (nautilus_directory_emit_metadata_changed), (call_files_changed_free_list), (call_files_changed_unref_free_list): * libnautilus-extensions/nautilus-file.c: (nautilus_file_changed): Separated out the call so you can emit a files_changed without also emitting a changed signal on each file. * libnautilus-extensions/nautilus-trash-directory.h: * libnautilus-extensions/nautilus-trash-directory.c: (trash_callback_remove_directory), (directory_ready_callback), (forward_files_added_cover), (forward_files_changed_cover), (nautilus_trash_directory_add_real_directory), (trash_callback_remove_directory_cover), (nautilus_trash_directory_remove_real_directory), (remove_all_real_directories), (fm_desktop_icon_view_discover_trash_callback), (add_one_writable_device), (get_trashable_volume_uris), (nautilus_trash_monitor_async_get_trash_directories): More trash work. A bunch is commented out. I'm doing this *so* slowly, but I need to check in at this point for Gene's sake. * libnautilus-extensions/nautilus-volume-monitor.h: * libnautilus-extensions/nautilus-volume-monitor.c: (nautilus_volume_monitor_initialize_class), (mount_device_activate), (mount_device_deactivate): Changed the signals to be both more useful and easier to use. * src/file-manager/fm-desktop-icon-view.c: (fm_desktop_icon_view_initialize): * src/file-manager/nautilus-trash-monitor.c: Moved 1/2-written trash code out of here. * HACKING: Spell checking. |
||
Mike Engber | 96835d3143 |
Changed desktop menu to offer close desktop instead of quit nautilus.
* libnautilus/nautilus-view-component.idl: * libnautilus/nautilus-view.c: * libnautilus/nautilus-view.h: * src/file-manager/fm-desktop-icon-view.c: (fm_desktop_icon_view_close_desktop_menu_item_callback), (fm_desktop_icon_view_create_background_context_menu_items): * src/file-manager/fm-directory-view.c: (fm_directory_view_close_desktop): * src/file-manager/fm-directory-view.h: * src/nautilus-application.c: (nautilus_application_windows), (nautilus_application_startup), (nautilus_application_destroy_desktop_window), (nautilus_application_create_desktop_window), (nautilus_application_open_desktop), (nautilus_application_close_desktop), (nautilus_application_destroy_window), (nautilus_application_create_window): * src/nautilus-application.h: * src/nautilus-desktop-window.c: (nautilus_desktop_window_new): * src/nautilus-shell.c: (corba_manage_desktop): * src/nautilus-view-frame-corba.c: (impl_Nautilus_ViewFrame_set_title): * src/nautilus-view-frame-private.h: * src/nautilus-view-frame.c: (nautilus_view_frame_initialize_class), (nautilus_view_frame_set_title): * src/nautilus-view-frame.h: * src/nautilus-window-manage-views.c: (open_location): * src/nautilus-window.c: (nautilus_window_connect_view): Changed desktop menu to offer close desktop instead of quit nautilus. Also, changed the menu item's action to use a direct fn call instead of CORBA. |
||
Mike Engber | a409c1bb98 |
Hooked up the quit menu in the desktop context menu to quit Nautilus. Now,
* libnautilus/nautilus-view-component.idl: * libnautilus/nautilus-view.c: (nautilus_view_quit_nautilus): * libnautilus/nautilus-view.h: * src/file-manager/fm-desktop-icon-view.c: (fm_desktop_icon_view_quit_menu_item_callback), (fm_desktop_icon_view_create_background_context_menu_items): * src/file-manager/fm-directory-view.c: (fm_directory_view_quit_nautilus): * src/file-manager/fm-directory-view.h: * src/nautilus-application.c: (nautilus_application_startup), (nautilus_application_destroy_window): * src/nautilus-application.h: * src/nautilus-desktop-window.c: (nautilus_desktop_window_new): * src/nautilus-view-frame-corba.c: (impl_Nautilus_ViewFrame_set_title), (impl_Nautilus_ViewFrame_quit_nautilus): * src/nautilus-view-frame-private.h: * src/nautilus-view-frame.c: (nautilus_view_frame_initialize_class), (nautilus_view_frame_set_title), (nautilus_view_frame_quit_nautilus): * src/nautilus-view-frame.h: * src/nautilus-window-manage-views.c: (nautilus_window_load_content_view): * src/nautilus-window.c: (nautilus_window_quit_nautilus_callback), (nautilus_window_connect_view): Hooked up the quit menu in the desktop context menu to quit Nautilus. Now, if Nautilus is managing the desktop no default window is created and Nautilus does not quit when the last window is closed - i.e. use the quit menu item instead. Bugs 1050 and 1051. |
||
Darin Adler | 8883807146 |
Changed history list to include a separate position field instead of
* 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. |
||
Gene Z. Ragan | 0b661c0f2f |
Fixed bug 1571, Need titles in history list instead of just URIs.
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. |
||
Mike Engber | 4f6956f9c0 |
Added get_preferred_zoom_levels. Fixed zoom-control to use this info to
* libnautilus/nautilus-view-component.idl: * libnautilus/nautilus-zoomable.c: (nautilus_g_list_from_ZoomLevelList), (nautilus_ZoomLevelList_from_zoom_levels), (impl_Nautilus_Zoomable__get_is_continuous), (impl_Nautilus_Zoomable__get_preferred_zoom_level_list), (nautilus_zoomable_initialize_class), (nautilus_zoomable_set_arg), (nautilus_zoomable_get_arg), (nautilus_zoomable_new), (nautilus_zoomable_new_from_bonobo_control), (nautilus_zoomable_destroy): * libnautilus/nautilus-zoomable.h: * src/file-manager/fm-directory-view.c: (fm_directory_view_initialize): * src/nautilus-view-frame.c: (nautilus_view_frame_get_max_zoom_level), (nautilus_view_frame_get_preferred_zoom_levels): * src/nautilus-view-frame.h: * src/nautilus-window.c: (nautilus_window_zoom_level_changed_callback): * src/nautilus-zoom-control.c: (nautilus_zoom_control_initialize), (create_zoom_menu_item), (create_zoom_menu), (nautilus_zoom_control_set_max_zoom_level), (nautilus_zoom_control_set_preferred_zoom_levels): * src/nautilus-zoom-control.h: Added get_preferred_zoom_levels. Fixed zoom-control to use this info to generate it's right click menu. |
||
Mike Engber | 888d3716f9 |
Removed zoom_to_default and zoom_parameters_changed. The nautilus-window
* libnautilus/nautilus-view-component.idl: * libnautilus/nautilus-zoomable.c: (impl_Nautilus_Zoomable__get_is_continuous), (nautilus_zoomable_initialize_class), (nautilus_zoomable_get_arg), (nautilus_zoomable_ensure_zoomable_frame): * src/file-manager/fm-directory-view.c: (fm_directory_view_initialize), (zoomable_zoom_to_fit_callback), (fm_directory_view_set_zoom_level): * src/file-manager/fm-directory-view.h: * src/file-manager/fm-icon-view.c: (fm_icon_view_begin_loading), (fm_icon_view_set_zoom_level), (fm_icon_view_bump_zoom_level), (fm_icon_view_zoom_to_level), (fm_icon_view_restore_default_zoom_level): * src/file-manager/fm-list-view.c: (fm_list_view_bump_zoom_level), (fm_list_view_zoom_to_level), (fm_list_view_restore_default_zoom_level), (fm_list_view_begin_loading), (fm_list_view_set_zoom_level): * src/nautilus-view-frame.c: (nautilus_view_frame_initialize_class), (nautilus_view_frame_zoom_level_changed): * src/nautilus-view-frame.h: * src/nautilus-window.c: (zoom_to_fit_callback), (nautilus_window_constructed), (nautilus_window_zoom_level_changed_callback), (nautilus_window_connect_view): * src/nautilus-zoom-control.c: (nautilus_zoom_control_class_initialize), (nautilus_zoom_control_initialize), (nautilus_zoom_control_button_press_event): * src/nautilus-zoom-control.h: * src/nautilus-zoomable-frame-corba.c: (impl_Nautilus_ZoomableFrame_report_zoom_level_changed): Removed zoom_to_default and zoom_parameters_changed. The nautilus-window now queries the zoomable for max and min before showing the zoom control. |
||
Mike Engber | c108999dc3 |
Added report_zoom_parameters_changed to the zoomable interface. This
* libnautilus-extensions/nautilus-gtk-extensions.c: (nautilus_gtk_marshal_NONE__DOUBLE_DOUBLE_DOUBLE): * libnautilus-extensions/nautilus-gtk-extensions.h: * libnautilus/nautilus-view-component.idl: * libnautilus/nautilus-zoomable.c: (nautilus_zoomable_set_parameters), (nautilus_zoomable_set_zoom_level): * libnautilus/nautilus-zoomable.h: * src/file-manager/fm-directory-view.c: (fm_directory_view_set_zoom_level), (fm_directory_view_set_zoom_parameters): * src/file-manager/fm-directory-view.h: * src/file-manager/fm-icon-view.c: (fm_icon_view_begin_loading), (fm_icon_view_set_zoom_level), (fm_icon_view_init_zoom_params), (fm_icon_view_bump_zoom_level), (fm_icon_view_zoom_to_level), (fm_icon_view_restore_default_zoom_level): * src/file-manager/fm-list-view.c: (fm_list_view_bump_zoom_level), (fm_list_view_zoom_to_level), (fm_list_view_restore_default_zoom_level), (fm_list_view_begin_loading), (fm_list_view_set_zoom_level), (fm_list_view_init_zoom_params): * src/nautilus-view-frame-private.h: * src/nautilus-view-frame.c: (nautilus_view_frame_initialize_class), (nautilus_view_frame_zoom_parameters_changed): * src/nautilus-view-frame.h: * src/nautilus-window.c: (nautilus_window_zoom_level_changed_callback), (nautilus_window_zoom_parameters_changed_callback), (nautilus_window_connect_view): * src/nautilus-zoom-control.c: (nautilus_zoom_control_initialize), (draw_number_and_disable_arrows), (zoom_menu_callback), (create_zoom_menu_item), (nautilus_zoom_control_button_press_event), (nautilus_zoom_control_set_zoom_level), (nautilus_zoom_control_set_min_zoom_level), (nautilus_zoom_control_set_max_zoom_level), (nautilus_zoom_control_get_zoom_level), (nautilus_zoom_control_get_min_zoom_level), (nautilus_zoom_control_get_max_zoom_level): * src/nautilus-zoom-control.h: * src/nautilus-zoomable-frame-corba.c: (impl_Nautilus_ZoomableFrame_report_zoom_level_changed), (impl_Nautilus_ZoomableFrame_report_zoom_parameters_changed): Added report_zoom_parameters_changed to the zoomable interface. This allows the zoom control to get min/max from the zoomable (as opposed to hard coding in values) Also fixed the zoom control to now use just doubles. Renamed the zoom_level_changed message to be report_zoom_level_changed in accordance with convention. |
||
Michael Engber | 610c3c77ee |
Removed zoom_to_level from the zoomable interface - starting on the
2000-06-22 Michael Engber <engber@eazel.com> * libnautilus/nautilus-view-component.idl: * libnautilus/nautilus-zoomable.c: (nautilus_zoomable_initialize_class): * src/file-manager/fm-directory-view.c: (fm_directory_view_initialize), (nautilus_zoom_level_from_double), (zoomable_set_zoom_level_callback): * src/nautilus-view-frame.c: * src/nautilus-view-frame.h: * src/nautilus-window.c: (zoom_to_level_callback): * src/nautilus-zoom-control.c: (nautilus_zoom_control_class_initialize), (zoom_menu_callback), (zoom_menu_item_free_zoom_level), (create_zoom_menu_item), (create_zoom_menu): Removed zoom_to_level from the zoomable interface - starting on the process of removing the zoom control being tied to 7 discrete icon sizes. Bug #1425 |
||
Gene Z. Ragan | e94b24a5c2 |
Fixed bug #306, right click menu in zoom control doesn't work. The menu
2000-06-13 Gene Z. Ragan <gzr@eazel.com> Fixed bug #306, right click menu in zoom control doesn't work. The menu now works. * libnautilus/nautilus-view-component.idl: Added zoom_to_level interface. * libnautilus/nautilus-zoomable.c: (impl_Nautilus_Zoomable_zoom_to_level): (nautilus_zoomable_initialize_class): Implimentation of zoom_to_level interface * src/file-manager/fm-directory-view.c: * src/file-manager/fm-directory-view.h: (fm_directory_view_initialize_class), (fm_directory_view_initialize), (zoomable_zoom_to_level_callback), (fm_directory_view_zoom_to_level): Added signal handling and callback for new ZOOM_TO_LEVEL signal. * src/file-manager/fm-icon-view.c: (fm_icon_view_zoom_to_level), (fm_icon_view_initialize_class): ZOOM_TO_LEVEL handling. * src/file-manager/fm-list-view.c: (fm_list_view_initialize_class), (fm_list_view_zoom_to_level), (fm_list_view_restore_default_zoom_level): ZOOM_TO_LEVEL handling. * src/nautilus-view-frame.c: * src/nautilus-view-frame.h: (nautilus_view_frame_zoom_to_level): New public function for zoom to level. * src/nautilus-window.c: (zoom_to_level_callback): Yes, a zoom to level callback. * src/nautilus-zoom-control.c: * src/nautilus-zoom-control.h: (nautilus_zoom_control_class_initialize), (zoom_menu_callback), (create_zoom_menu), (set_zoom_level): Enabled context zoom menu functionality. |
||
Gene Z. Ragan | 9bcb90f331 |
Fixed bug #305. CLicking in center of zoom control does not change zoom
2000-06-13 Gene Z. Ragan <gzr@eazel.com> Fixed bug #305. CLicking in center of zoom control does not change zoom level. Clicking in the center of the zoom control emits a ZOOM_DEFAULT signal. It is up to each view that connects to this signal to determine what is the default zoom setting. Right now, all views are using NAUTILUS_ZOOM_LEVEL_STANDARD. This could be changed to a zoom level better suited for the view. * libnautilus/nautilus-view-component.idl: Added zoom_default interface. * libnautilus/nautilus-zoomable.c: * libnautilus/nautilus-zoomable.h: (impl_Nautilus_Zoomable_zoom_default) Implimetation function of zoom_default interface (nautilus_zoomable_initialize_class): Set up new ZOOM_DEFAULT signal. * src/file-manager/fm-directory-view.c: * src/file-manager/fm-directory-view.h: (fm_directory_view_initialize_class), (fm_directory_view_initialize), (zoom_out_callback), (zoom_default_callback), (zoomable_zoom_default_callback), (fm_directory_view_restore_default_zoom_level): New functions to enable zoom to default. * src/file-manager/fm-icon-view.c: (fm_icon_view_initialize_class): Override zoom_default method. (fm_icon_view_restore_default_zoom_level), New function to enable zoom to default. * src/file-manager/fm-list-view.c: (fm_list_view_initialize_class): Override zoom_default method. (fm_list_view_restore_default_zoom_level): New function to enable zoom to default. * src/file-manager/fm-properties-window.c: (create_basic_page): * src/nautilus-view-frame.c: * src/nautilus-view-frame.h: (nautilus_view_frame_zoom_default): New signal handling callback * src/nautilus-window.c: (zoom_default_callback): New signal handling callback * src/nautilus-zoom-control.c: * src/nautilus-zoom-control.h: (nautilus_zoom_control_class_initialize), (nautilus_zoom_control_button_press_event): Work in progress on bug #971 * src/file-manager/fm-directory-view.c: (open_one_properties_window), * libnautilus-extensions/nautilus-undo-signal-handlers.c: (nautilus_entry_user_changed_callback), (editable_register_edit_undo), (restore_editable_from_undo_snapshot_callback): |
||
Darin Adler | 14aba5ce07 |
Renamed and changed around parameters for the basic operations on
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_client): * src/nautilus-view-frame-corba.c: (impl_Nautilus_ViewFrame__destroy), (impl_Nautilus_ViewFrame__create), (impl_Nautilus_ViewFrame_open_location), (impl_Nautilus_ViewFrame_open_location_in_new_window), (impl_Nautilus_ViewFrame_report_location_change), (impl_Nautilus_ViewFrame_report_selection_change), (impl_Nautilus_ViewFrame_report_status), (impl_Nautilus_ViewFrame_report_load_underway), (impl_Nautilus_ViewFrame_report_load_progress), (impl_Nautilus_ViewFrame_report_load_complete), (impl_Nautilus_ViewFrame_report_load_failed), (impl_Nautilus_ViewFrame_set_title): * src/nautilus-view-frame-nautilus-view.c: (nautilus_view_try_load_client), (load_location), (stop_loading), (selection_changed): * src/nautilus-view-frame-private.h: * src/nautilus-view-frame.c: (nautilus_view_frame_initialize_class), (nautilus_view_frame_destroy_client), (nautilus_view_frame_handle_client_destroy_2), (nautilus_view_frame_new), (nautilus_view_frame_load_client), (nautilus_view_frame_load_location), (nautilus_view_frame_stop_loading), (nautilus_view_frame_selection_changed), (nautilus_view_frame_is_zoomable), (nautilus_view_frame_open_location), (nautilus_view_frame_open_location_in_new_window), (nautilus_view_frame_report_location_change), (nautilus_view_frame_report_selection_change), (nautilus_view_frame_report_status), (nautilus_view_frame_report_load_underway), (nautilus_view_frame_report_load_progress), (nautilus_view_frame_report_load_complete), (nautilus_view_frame_report_load_failed), (nautilus_view_frame_set_title), (nautilus_view_frame_zoom_level_changed): * src/nautilus-view-frame.h: * src/nautilus-zoomable-frame-corba.c: (impl_Nautilus_ZoomableFrame__destroy), (impl_Nautilus_ZoomableFrame__create), (impl_Nautilus_ZoomableFrame_zoom_level_changed): Changed the API and added a ton of comments. * components/hardware/nautilus-hardware-view.c: (nautilus_hardware_view_initialize), (hardware_view_load_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_new), (hyperbola_navigation_tree_load_location), (hyperbola_navigation_tree_select_row): * components/history/nautilus-history-view.c: (hyperbola_navigation_history_load_location), (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): * components/loser/content/nautilus-content-loser.c: (nautilus_content_loser_initialize), (loser_load_location_callback): * components/loser/sidebar/nautilus-sidebar-loser.c: (nautilus_sidebar_loser_initialize), (loser_load_location_callback): * components/music/nautilus-music-view.c: (nautilus_music_view_initialize), (music_view_load_location_callback): * components/notes/nautilus-notes.c: (notes_load_location), (make_notes_view): * components/rpmview/nautilus-rpm-view.c: (nautilus_rpm_view_initialize), (go_to_button_callback), (rpm_view_load_location_callback): * components/sample/nautilus-sample-content-view.c: (nautilus_sample_content_view_initialize), (sample_load_location_callback): * components/services/startup/nautilus-view/nautilus-service-startup-view.c: (go_to_uri), (nautilus_service_startup_view_initialize), (service_load_location_callback): * components/services/time/nautilus-view/trilobite-eazel-time-view.c: (trilobite_eazel_time_view_initialize), (load_location_callback): * components/websearch/ntl-web-search.c: (do_search), (make_obj): * src/file-manager/fm-directory-view.c: (fm_directory_view_switch_location), (fm_directory_view_initialize), (display_selection_info), (fm_directory_view_send_selection_change), (load_location_callback), (selection_changed_callback), (stop_loading_callback), (done_loading), (finish_loading_uri): Switch components to use the new API. * libnautilus-extensions/nautilus-gtk-extensions.h: Added a placeholder for a new operation to get the first child of a container. This will be way more efficient than all the code that gets a list of all the children and then looks at the first one. * src/nautilus-application.c: (manufactures), (create_object), (create_factory), (nautilus_application_initialize_class), (nautilus_application_initialize), (nautilus_application_new), (nautilus_application_destroy), (nautilus_application_check_user_directories), (nautilus_application_startup), (nautilus_application_destroy_window), (nautilus_application_quit), (nautilus_application_create_window): * src/nautilus-application.h: * src/nautilus-desktop-window.c: (nautilus_desktop_window_new): * src/nautilus-desktop-window.h: * src/nautilus-main.c: (main): Renamed NautilusApp -> NautilusApplication while changing it around. * libnautilus-extensions/nautilus-undo-manager.h: Add a blank line. * src/nautilus-window-manage-views.h: * src/nautilus-window-manage-views.c: (compare_strings), (nautilus_window_report_selection_change): Changed code so that it won't report the same selection change twice. (nautilus_window_report_status), (nautilus_window_report_load_underway), (nautilus_window_report_load_progress), (nautilus_window_report_load_complete), (nautilus_window_report_load_failed), (compute_default_title), (nautilus_window_set_title), (handle_go_back), (handle_go_forward), (handle_go_elsewhere), (update_up_button), (nautilus_window_update_internals), (nautilus_window_update_view), (nautilus_window_view_destroyed), (nautilus_window_has_really_changed), (nautilus_window_load_sidebar_panel), (open_location), (nautilus_window_open_location), (nautilus_window_open_location_in_new_window), (nautilus_window_report_location_change), (nautilus_window_load_content_view), (nautilus_window_update_state), (nautilus_window_end_location_change_callback), (nautilus_window_begin_location_change): Updated everything for the new API. * src/nautilus-window-menus.c: (file_menu_new_window_callback), (edit_menu_undo_callback), (edit_menu_cut_callback), (edit_menu_copy_callback), (edit_menu_paste_callback), (edit_menu_clear_callback), (append_bookmark_to_menu), (clear_appended_bookmark_items), (nautilus_window_add_bookmark_for_current_location), (append_separator), (new_top_level_menu), (nautilus_window_initialize_menus), (update_user_level_menu_items): * src/nautilus-window-private.h: * src/nautilus-window-toolbars.c: (setup_button), (nautilus_window_initialize_toolbars), (nautilus_window_toolbar_remove_theme_callback): * src/nautilus-window.c: (nautilus_window_class_init), (nautilus_window_goto_uri), (nautilus_window_constructed), (nautilus_window_set_arg), (nautilus_window_get_arg), (nautilus_window_destroy), (nautilus_window_switch_views), (view_menu_choose_view_callback), (nautilus_window_load_content_view_menu), (nautilus_window_back_or_forward), (nautilus_window_go_up), (nautilus_window_allow_back), (nautilus_window_allow_forward), (nautilus_window_allow_up), (nautilus_window_open_location_callback), (nautilus_window_open_location_in_new_window_callback), (nautilus_window_report_location_change_callback), (nautilus_window_report_selection_change_callback), (nautilus_window_report_status_callback), (nautilus_window_report_load_underway_callback), (nautilus_window_report_load_progress_callback), (nautilus_window_report_load_complete_callback), (nautilus_window_report_load_failed_callback), (nautilus_window_set_title_callback), (nautilus_window_connect_view), (nautilus_window_connect_content_view), (nautilus_window_reload), (window_update_sidebar_panels_from_preferences): * src/nautilus-window.h: Other changes related to the API switchover. * src/nautilus.oafinfo: Changed the ntl-xx iids to use the work nautilus instead. |
||
Darin Adler | 346de1525e |
[removed] [removed]
* components/hardware/nautilus-hardware-view.c: (nautilus_hardware_view_initialize), (hardware_view_notify_location_change_callback): * components/hardware/nautilus-hardware-view.h: * components/help/hyperbola-nav-index.c: (hyperbola_navigation_index_select_row): * components/help/hyperbola-nav-search.c: (hyperbola_navigation_search_select_row), (hyperbola_navigation_search_new): * 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), (loser_notify_location_change_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), (loser_notify_location_change_callback): * components/mozilla/main.c: (mozilla_make_object): * components/mozilla/nautilus-mozilla-content-view.c: (nautilus_mozilla_content_view_initialize), (mozilla_content_view_request_progress_change), (mozilla_content_view_request_location_change), (mozilla_notify_location_change_callback), (mozilla_title_changed_callback), (mozilla_link_message_callback): * components/mozilla/nautilus-mozilla-content-view.h: * components/music/main.c: (music_view_make_object): * components/music/nautilus-music-view.c: (nautilus_music_view_initialize), (click_column_callback), (music_view_notify_location_change_callback), (nautilus_music_view_drag_data_received): * components/music/nautilus-music-view.h: * components/rpmview/main.c: (rpm_view_make_object): * components/rpmview/nautilus-rpm-view.c: (nautilus_rpm_view_initialize), (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), (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), (service_main_notify_location_change_cb): * components/services/startup/nautilus-view/nautilus-service-startup-view.h: * libnautilus/Makefile.am: * libnautilus/libnautilus.h: * libnautilus/nautilus-content-view-frame.c: [removed] * libnautilus/nautilus-content-view-frame.h: [removed] * libnautilus/nautilus-view-component.idl: * 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_initialize), (nautilus_view_new), (nautilus_view_new_from_bonobo_control), (get_view_frame), (nautilus_view_request_location_change), (nautilus_view_request_selection_change), (nautilus_view_request_status_change), (nautilus_view_request_progress_change), (nautilus_view_request_title_change), (nautilus_view_get_bonobo_control), (nautilus_view_get_main_window): * libnautilus/nautilus-view-frame.h: * src/Makefile.am: * src/file-manager/fm-directory-view.c: (get_bonobo_control), (fm_directory_view_initialize), (display_selection_info), (fm_directory_view_send_selection_change), (notify_location_change_callback), (stop_location_change_callback), (done_loading), (fm_directory_view_activate_file_internal), (finish_loading_uri): * src/file-manager/fm-directory-view.h: * src/ntl-app.c: (impl_Nautilus_Application_create_object): * src/ntl-content-view.c: [removed] * src/ntl-content-view.h: [removed] * src/ntl-uri-map.c: (make_oaf_query_with_known_mime_type), (make_oaf_query_with_uri_scheme_only): * src/ntl-view-frame-svr.c: (impl_Nautilus_ViewFrame__destroy), (impl_Nautilus_ViewFrame__create), (impl_Nautilus_ViewFrame__get_main_window), (impl_Nautilus_ViewFrame_request_location_change), (impl_Nautilus_ViewFrame_request_selection_change), (impl_Nautilus_ViewFrame_request_status_change), (impl_Nautilus_ViewFrame_request_progress_change), (impl_Nautilus_ViewFrame_request_title_change): * src/ntl-view-private.h: * src/ntl-view.c: (nautilus_view_frame_class_init), (nautilus_view_frame_set_arg), (nautilus_view_frame_get_arg), (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_request_title_change), (nautilus_view_frame_set_label), (nautilus_view_frame_activate): * src/ntl-view.h: * src/ntl-window-msgs.c: (nautilus_window_request_title_change), (nautilus_window_load_meta_view), (nautilus_window_request_location_change), (nautilus_window_load_content_view): * src/ntl-window-msgs.h: * src/ntl-window-private.h: * src/ntl-window.c: (nautilus_window_request_title_change_callback), (nautilus_window_connect_content_view), (nautilus_window_real_set_content_view): Got rid of ContentView and ContentViewFrame. |
||
Darin Adler | f6a5f321b9 |
[deleted] [deleted]
* libnautilus/nautilus-view-component.idl: * src/Makefile.am: * src/ntl-index-panel.c: (nautilus_index_panel_add_meta_view): * src/ntl-meta-view.c: [deleted] * src/ntl-meta-view.h: [deleted] * src/ntl-view.c: (nautilus_view_frame_handle_client_destroy_2), (nautilus_view_frame_set_active_errors), (nautilus_view_frame_get_label), (nautilus_view_frame_set_label): * src/ntl-view.h: * src/ntl-window-msgs.c: (nautilus_window_load_meta_view), (nautilus_window_update_state): * src/ntl-window.c: Removed Nautilus::MetaViewFrame and all the related classes. |
||
Darin Adler | 70659f5565 |
[deleted] [deleted]
* 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. |
||
Darin Adler | 7e7fc3ecf2 |
Change format to make popt "pop" out more.
* HACKING: Change format to make popt "pop" out more. * libnautilus-extensions/nautilus-entry.h: * src/file-manager/fm-properties-window.c: (create_basic_page): * src/nautilus-bookmarks-window.c: (on_text_field_focus_in_event), (on_window_delete_event): * src/nautilus-location-bar.c: (nautilus_location_bar_enable_undo): * src/nautilus-location-bar.h: * src/nautilus-window-menus.c: (edit_menu_undo_callback), (bookmarks_menu_add_bookmark_callback), (bookmarks_menu_edit_bookmarks_callback), (get_or_create_bookmarks_window), (nautilus_bookmarks_exiting), (edit_bookmarks), (nautilus_window_initialize_menus), (update_undo_menu_item): * src/ntl-app.c: (nautilus_app_init), (nautilus_app_destroy): * libnautilus-extensions/nautilus-icon-container.c: (nautilus_icon_container_start_renaming_selected_item): * libnautilus-extensions/nautilus-entry.c: (nautilus_entry_key_press), (nautilus_entry_enable_undo): * libnautilus/nautilus-undo-manager.c: (nautilus_undo_manager_begin_transaction), (nautilus_undo_manager_unregister_object), (prune_undo_manager_list), (nautilus_get_undo_manager), (nautilus_attach_undo_manager), (nautilus_share_undo_manager): * libnautilus/nautilus-undo-manager.h: * src/ntl-window-private.h: * src/ntl-window.c: (nautilus_window_constructed), (nautilus_window_real_set_content_view), (nautilus_window_get_undo_manager): * src/ntl-window.h: Got rid of the undo manager parameter for the enable_undo operation. Eliminated code that sets up the undo manager except for the top widgets. We only need it attached to windows and to the top widget in each component. Change callers to get the undo manager in a few simple ways instead of calling gtk_object_get_data directly. Added some calls to attach the undo manager to an arbitrary object. * libnautilus/nautilus-undo.idl: Added comments to the IDL and also added the Undo::Context class. * libnautilus/nautilus-view-component.idl: Removed the dependency on the undo IDL and the undo_manager attribute. * src/nautilus-bookmarks-window.h: * src/nautilus-bookmarks-window.c: (create_bookmarks_window): Changed interface to take object to inherit the undo manager from instead of the undo manager itself. Got rid of unnecesary undo manager setting. (nautilus_bookmarks_window_save_geometry): Also changed interface to use GtkWindow instead of GtkWidget. |
||
Gene Z. Ragan | 19159e79b3 |
CVS:
2000-05-17 Gene Z. Ragan <gzr@eazel.com> CVS: ---------------------------------------------------------------------- First phase of modifying undo code. These changes CVS: Enter Log. Lines beginning with `CVS:' are removed automatically affect the way undo is handled internally to Nautilus and CVS: also defines a new IDL. This is work in progress. CVS: Committing in . CVS: * libnautilus-extensions/nautilus-entry.c: CVS: Modified Files: Modified to use gtk_object_get_data() mechanism to locate undo manager CVS: ChangeLog libnautilus/.cvsignore libnautilus/Makefile.am CVS: libnautilus/nautilus-undo-manager-private.h * libnautilus-extensions/nautilus-icon-container.c: CVS: libnautilus/nautilus-undo-manager.c (nautilus_icon_container_start_renaming_selected_item): CVS: libnautilus/nautilus-undo-manager.h Modified to use gtk_object_get_data() mechanism to locate undo manager CVS: libnautilus/nautilus-undo-transaction.h CVS: libnautilus/nautilus-undoable.c * libnautilus-extensions/nautilus-icon-text-item.c: (iti_event), CVS: libnautilus/nautilus-undoable.h (restore_from_undo_snapshot_callback): CVS: libnautilus/nautilus-view-component.idl Modified to use gtk_object_get_data() mechanism to locate undo manager CVS: libnautilus-extensions/nautilus-entry.c CVS: libnautilus-extensions/nautilus-entry.h * libnautilus/.cvsignore: CVS: libnautilus-extensions/nautilus-icon-container.c Added generated IDL source and header files to ignore CVS: libnautilus-extensions/nautilus-icon-text-item.c CVS: src/nautilus-bookmarks-window.c * libnautilus/Makefile.am: CVS: src/nautilus-bookmarks-window.h src/nautilus-location-bar.c Modified makefile to include new IDL file for undo manager CVS: src/nautilus-location-bar.h src/nautilus-window-menus.c CVS: src/ntl-app.c src/ntl-window-private.h src/ntl-window.c * libnautilus/nautilus-undo-manager.c: CVS: src/ntl-window.h src/file-manager/fm-properties-window.c (impl_Nautilus_Undo_Manager__destroy), CVS: Added Files: (impl_Nautilus_Undo_Manager__create), CVS: libnautilus/nautilus-undo.idl (impl_Nautilus_Undo_Manager__append), CVS: Removed Files: (impl_Nautilus_Undo_Manager__forget), CVS: libnautilus/nautilus-undo-manager-component.idl (nautilus_undo_manager_initialize), CVS: ---------------------------------------------------------------------- (nautilus_undo_manager_initialize_class), (nautilus_undo_manager_begin_transaction), (nautilus_undo_manager_end_transaction), (nautilus_undo_manager_undo), (nautilus_undo_manager_redo), (nautilus_undo_manager_add_transaction), (nautilus_undo_manager_unregister_object), (nautilus_undo_manager_can_undo), (nautilus_undo_manager_can_redo), (get_current_transaction_name), (nautilus_undo_manager_get_current_undo_transaction_name), (nautilus_undo_manager_get_current_redo_transaction_name), (destroy), (nautilus_undo_manager_enable_redo), (nautilus_undo_manager_set_queue_depth), (free_undo_manager_list_data), (prune_undo_manager_list): Changes to support new IDL and new undo manager mechanism. * libnautilus/nautilus-undo.idl: New undo manager IDL file * libnautilus/nautilus-undo-manager-component.idl: Removed old undo manager IDL file * src/file-manager/fm-properties-window.c: (create_basic_page): Modified to use gtk_object_get_data() mechanism to locate undo manager * src/nautilus-bookmarks-window.c: (create_bookmarks_window), (on_text_field_focus_in_event), (on_window_delete_event): Modified to use gtk_object_get_data() mechanism to locate undo manager * src/nautilus-location-bar.c: (nautilus_location_bar_set_location), (nautilus_location_bar_enable_undo): Modified to use gtk_object_get_data() mechanism to locate undo manager * src/nautilus-window-menus.c: (edit_menu_undo_callback), (edit_menu_cut_callback), (bookmarks_menu_edit_bookmarks_callback), (get_bookmarks_window), (nautilus_bookmarks_exiting), (nautilus_window_edit_bookmarks), (nautilus_window_initialize_menus), (update_undo_menu_item): Modified to use gtk_object_get_data() mechanism to locate undo manager * src/ntl-app.c: (impl_Nautilus_Application__get_view_windows), (impl_Nautilus_Application_new_view_window), (impl_Nautilus_Application_supports), (impl_Nautilus_Application_create_object), (impl_Nautilus_Application__create), (nautilus_app_get_type), (nautilus_app_class_init), (nautilus_app_init), (nautilus_app_new), (nautilus_app_destroy), (nautilus_app_startup), (nautilus_app_create_window): Modified to use gtk_object_get_data() mechanism to locate undo manager. Added and modified IDL C stubs to match new IDL interface. * src/ntl-window.c: (nautilus_window_constructed), (nautilus_window_set_arg): Changed order that arguments are set at time of main window create so the app instance variable is valid when the main window is contructed. |
||
Gene Z. Ragan | a06913992e |
*libnautilus/nautilus-undo-manager-component.idl
2000-05-10 Gene Z. Ragan <gzr@eazel.com> *libnautilus/nautilus-undo-manager-component.idl *libnautilus/nautilus-undo-manager-private.h *libnautilus/nautilus-undo-manager.c *libnautilus/nautilus-undo-manager.h *libnautilus/nautilus-undo-transaction.c *libnautilus/nautilus-undo-transaction.h *libnautilus/nautilus-undoable.c *libnautilus/nautilus-undoable.h Moved files to libnautilus so IDL comiplation would work properly and at the suggestion of mjs. *libnautilus-extensions/Makefile.am Removed undo files. *libnautilus/Makefile.am Added undo files. *libnautilus/nautilus-undo-manager-component.idl Additional fixes so a clean build would occuer properly. |
||
Gene Ragan | 7cc11cb109 | *** empty log message *** | ||
Gene Z. Ragan | 3324b79c1b |
New IDL file describing CORBA interface to the undo manager.
2000-05-05 Gene Z. Ragan <gzr@eazel.com> * libnautilus-extensions/nautilus-undo-manager-component.idl: New IDL file describing CORBA interface to the undo manager. * libnautilus-extensions/Makefile.am: Modified to include nautilus-undo-manager-component.idl * libnautilus-extensions/nautilus-undo-manager.c * libnautilus-extensions/nautilus-undo-manager-private.h: (impl_Nautilus_UndoManager__destroy), (impl_Nautilus_UndoManager__create), (impl_Nautilus_UndoManager__begin_transaction), (impl_Nautilus_UndoManager__end_transaction): CORBA/Bonobo functions to access undo manager features. * libnautilus-extensions/nautilus-undo-manager.h: * src/file-manager/fm-list-view.c (fm_list_view_append_background_context_menu_items), (fm_list_view_merge_menus), (fm_list_view_update_menus), (rename_list_item_callback): Began the task of * src/ntl-main.c (main): Removed intialization of undo manager from main, * src/ntl-app.c (nautilus_app_init): Moved initialization of undo manager. A reference to the undo manager is saved for easy access from components. |
||
Maciej Stachowiak | f6e6b47110 |
OAF conversion. You must now build bonobo and gnome-vfs with --enable-oaf
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. |
||
Ramiro Estrugo | a487908561 | Move nautilus view component interface definition into libnautilus. |
Renamed from idl/nautilus.idl (Browse further)