summaryrefslogtreecommitdiff
path: root/src/nautilus-window.h
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2000-06-13 15:49:50 +0000
committerDarin Adler <darin@src.gnome.org>2000-06-13 15:49:50 +0000
commit14aba5ce07d6b0149949b05a75b7a87d0e84a759 (patch)
treebbc0b962c622800e4318cb150a44bd2eae626278 /src/nautilus-window.h
parentd13efed051c407e2079657b2a96c2fb021df1a7a (diff)
downloadnautilus-14aba5ce07d6b0149949b05a75b7a87d0e84a759.tar.gz
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.
Diffstat (limited to 'src/nautilus-window.h')
-rw-r--r--src/nautilus-window.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/nautilus-window.h b/src/nautilus-window.h
index 3829429f2..6f436d24f 100644
--- a/src/nautilus-window.h
+++ b/src/nautilus-window.h
@@ -35,6 +35,8 @@
#include "nautilus-applicable-views.h"
#include "nautilus-view-frame.h"
#include "nautilus-sidebar.h"
+#include "nautilus-application.h"
+#include <bonobo/bonobo-ui-handler.h>
#define NAUTILUS_TYPE_WINDOW (nautilus_window_get_type())
#define NAUTILUS_WINDOW(obj) (GTK_CHECK_CAST ((obj), NAUTILUS_TYPE_WINDOW, NautilusWindow))
@@ -42,14 +44,17 @@
#define NAUTILUS_IS_WINDOW(obj) (GTK_CHECK_TYPE ((obj), NAUTILUS_TYPE_WINDOW))
#define NAUTILUS_IS_WINDOW_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_WINDOW))
-typedef struct _NautilusWindow NautilusWindow;
+#ifndef NAUTILUS_WINDOW_DEFINED
+#define NAUTILUS_WINDOW_DEFINED
+typedef struct NautilusWindow NautilusWindow;
+#endif
typedef struct {
GnomeAppClass parent_spot;
GnomeAppClass *parent_class;
} NautilusWindowClass;
-typedef struct _NautilusWindowStateInfo NautilusWindowStateInfo;
+typedef struct NautilusWindowStateInfo NautilusWindowStateInfo;
typedef enum {
NAUTILUS_LOCATION_CHANGE_STANDARD,
@@ -58,7 +63,7 @@ typedef enum {
NAUTILUS_LOCATION_CHANGE_RELOAD
} NautilusLocationChangeType;
-struct _NautilusWindow {
+struct NautilusWindow {
GnomeApp parent_object;
/** UI stuff **/
@@ -69,18 +74,17 @@ struct _NautilusWindow {
guint statusbar_ctx, statusbar_clear_id;
/** CORBA-related elements **/
- BonoboObject *ntl_viewwindow;
- BonoboUIHandler *uih;
- BonoboObject *app;
-
+ BonoboUIHandler *ui_handler;
+ NautilusApplication *application;
+
/* FIXME bugzilla.eazel.com 916: Workaround for Bonobo bug. */
gboolean updating_bonobo_radio_menu_item;
/** State information **/
/* Information about current location/selection */
- Nautilus_NavigationInfo *ni;
- Nautilus_SelectionInfo *si;
+ char *location;
+ GList *selection;
char *requested_title;
char *default_title;
@@ -148,8 +152,6 @@ void nautilus_window_goto_uri (NautilusWindow *window
void nautilus_window_go_home (NautilusWindow *window);
void nautilus_window_display_error (NautilusWindow *window,
const char *error_msg);
-const char * nautilus_window_get_requested_uri (NautilusWindow *window);
-BonoboUIHandler *nautilus_window_get_uih (NautilusWindow *window);
void nautilus_window_allow_back (NautilusWindow *window,
gboolean allow);
void nautilus_window_allow_forward (NautilusWindow *window,