summaryrefslogtreecommitdiff
path: root/src/ntl-view-bonobo-control.c
diff options
context:
space:
mode:
authorElliot Lee <sopwith@src.gnome.org>2000-02-10 01:54:50 +0000
committerElliot Lee <sopwith@src.gnome.org>2000-02-10 01:54:50 +0000
commita0d4440b0f18243101a04b2ee90444724cd98d59 (patch)
tree23f262376c21289745c7c97d21aed17387fd2eda /src/ntl-view-bonobo-control.c
parent48be01106ea6b4a38d8fdd02290f7cb049d2f98c (diff)
downloadnautilus-a0d4440b0f18243101a04b2ee90444724cd98d59.tar.gz
In notify_location_change, send progress back (because the Bonobo control,
* src/ntl-view-bonobo-control.c: In notify_location_change, send progress back (because the Bonobo control, which might be the content view, can't do it). * src/ntl-view-bonobo-subdoc.c: As above, plus don't use PersistFile interface, plus use bonobo-stream-vfs instead of bonobo-stream-fs. * src/ntl-uri-map.c: If no content type is found, default to text/plain. * libnautilus/bonobo-stream-vfs.[ch], libnautilus/Makefile.am: Initial implementation of bonobo streams in terms of Gnome VFS.
Diffstat (limited to 'src/ntl-view-bonobo-control.c')
-rw-r--r--src/ntl-view-bonobo-control.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/ntl-view-bonobo-control.c b/src/ntl-view-bonobo-control.c
index 07af8a512..8cfa35af7 100644
--- a/src/ntl-view-bonobo-control.c
+++ b/src/ntl-view-bonobo-control.c
@@ -79,6 +79,17 @@ bonobo_control_get_label(NautilusView *view, CORBA_Environment *ev)
return g_strdup_printf(_("Control %p"), view);
}
+static void
+bonobo_control_notify_location_change(NautilusView *view, Nautilus_NavigationInfo *real_nav_ctx, CORBA_Environment *ev)
+{
+ Nautilus_ProgressRequestInfo pri;
+ pri.amount = 0;
+ pri.type = Nautilus_PROGRESS_UNDERWAY;
+ nautilus_view_request_progress_change(view, &pri);
+ pri.type = Nautilus_PROGRESS_DONE_OK;
+ nautilus_view_request_progress_change(view, &pri);
+}
+
NautilusViewComponentType bonobo_control_component_type = {
"IDL:GNOME/Control:1.0",
&bonobo_control_try_load_client, /* try_load */
@@ -86,7 +97,7 @@ NautilusViewComponentType bonobo_control_component_type = {
NULL, /* show_properties */
NULL, /* save_state */
NULL, /* load_state */
- NULL, /* notify_location_change */
+ &bonobo_control_notify_location_change, /* notify_location_change */
NULL, /* notify_selection_change */
NULL, /* stop_location_change */
&bonobo_control_get_label /* get_label */