summaryrefslogtreecommitdiff
path: root/src/ntl-view-nautilus.c
diff options
context:
space:
mode:
authorMaciej Stachowiak <mstachow@src.gnome.org>2000-01-04 05:21:45 +0000
committerMaciej Stachowiak <mstachow@src.gnome.org>2000-01-04 05:21:45 +0000
commit78860f9f501dade0d5e01698b729129eece0b543 (patch)
tree2f2ffaf3d6a475c73edfb7a40e6e19a08829f131 /src/ntl-view-nautilus.c
parente992a1c7c84c383235d025bab8add3aeea623260 (diff)
downloadnautilus-78860f9f501dade0d5e01698b729129eece0b543.tar.gz
Added stop_location_change method to NautilusView interface. New signal,
* idl/nautilus.idl: Added stop_location_change method to NautilusView interface. * ntl-view-client.c, ntl-view-client.h (stop_location_change): New signal, triggered on receipt of stop_location_change request via CORBA. * ntl-view.c, ntl-view.h, ntl-view-private.h, ntl-view-nautilus.c, ntl-view-bonobo-control.c, ntl-view-bonobo-subdoc.c (nautilus_view_stop_location_change): Added this function; also added implementation to nautilus view type function table and NULL'd out for now for Bonobo control and subdoc view types (need to find out if loading is synchronous or asynchronous for those, and if there is a way to abort). * ntl-window.c: Stop loading for all views when Stop button is pressed. * ntl-window-msgs.c: Enable stop button when we start loading; enable Stop button when * src/file-manager/fm-directory-view.c: Call request_progress_change() when loading is done or an error is reached; implement handler for stop_location_change signal.
Diffstat (limited to 'src/ntl-view-nautilus.c')
-rw-r--r--src/ntl-view-nautilus.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ntl-view-nautilus.c b/src/ntl-view-nautilus.c
index 037479580..abb30a995 100644
--- a/src/ntl-view-nautilus.c
+++ b/src/ntl-view-nautilus.c
@@ -95,6 +95,15 @@ nv_notify_selection_change(NautilusView *view, Nautilus_SelectionInfo *nav_ctx,
Nautilus_View_notify_selection_change(nvi->view_client, nav_ctx, ev);
}
+static void
+nv_stop_location_change(NautilusView *view, CORBA_Environment *ev)
+{
+ NautilusViewInfo *nvi = view->component_data;
+
+ Nautilus_View_stop_location_change(nvi->view_client, ev);
+}
+
+
static char *
nv_get_label(NautilusView *view, CORBA_Environment *ev)
{
@@ -134,5 +143,6 @@ NautilusViewComponentType nautilus_view_component_type = {
&nv_load_state, /* load_state */
&nv_notify_location_change, /* notify_location_change */
&nv_notify_selection_change, /* notify_selection_change */
+ &nv_stop_location_change, /* stop_location_change */
&nv_get_label /* get_label */
};