diff options
author | John Sullivan <sullivan@src.gnome.org> | 2000-03-28 06:05:26 +0000 |
---|---|---|
committer | John Sullivan <sullivan@src.gnome.org> | 2000-03-28 06:05:26 +0000 |
commit | a2d26f63d6db296a0a71e1ad35c268bfab7150da (patch) | |
tree | 171ec349059d6b323874863c2e22ce9cb68df3f5 /libnautilus/ntl-content-view-frame.c | |
parent | 6179a7643867a820d9d0c4b3b8f4d4fa0ca13f66 (diff) | |
download | nautilus-a2d26f63d6db296a0a71e1ad35c268bfab7150da.tar.gz |
Gave content views the ability to specify the user-displayed title for a
location; this is used initially (and most importantly) by web pages so that
bookmarks, the window title, and the index panel will display the html page title
rather than the url.
Diffstat (limited to 'libnautilus/ntl-content-view-frame.c')
-rw-r--r-- | libnautilus/ntl-content-view-frame.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libnautilus/ntl-content-view-frame.c b/libnautilus/ntl-content-view-frame.c index e0f7b4a4e..edcaaf206 100644 --- a/libnautilus/ntl-content-view-frame.c +++ b/libnautilus/ntl-content-view-frame.c @@ -29,6 +29,7 @@ #include <config.h> #include "ntl-content-view-frame.h" +#include "nautilus-view-frame-private.h" #include <bonobo/bonobo-control.h> typedef struct { @@ -130,3 +131,26 @@ nautilus_content_view_frame_class_init (NautilusContentViewFrameClass *klass) view_class->servant_destroy_func = POA_Nautilus_ContentView__fini; view_class->vepv = &impl_Nautilus_ContentView_vepv; } + +void +nautilus_content_view_frame_request_title_change (NautilusContentViewFrame *view, + const char *new_title) +{ + CORBA_Environment ev; + + g_return_if_fail (NAUTILUS_IS_CONTENT_VIEW_FRAME (view)); + g_return_if_fail (new_title != NULL); + + CORBA_exception_init(&ev); + + if (nautilus_view_frame_ensure_view_frame (NAUTILUS_VIEW_FRAME (view))) { + Nautilus_ContentViewFrame_request_title_change (NAUTILUS_VIEW_FRAME (view)->private->view_frame, new_title, &ev); + if (ev._major != CORBA_NO_EXCEPTION) + { + CORBA_Object_release(NAUTILUS_VIEW_FRAME (view)->private->view_frame, &ev); + NAUTILUS_VIEW_FRAME (view)->private->view_frame = CORBA_OBJECT_NIL; + } + } + + CORBA_exception_free(&ev); +} |