Commit 72b6dbb7 authored by Elliot Lee's avatar Elliot Lee

Send status strings for now, until nautilus knows how to generate them



* components/html/ntl-web-browser.c: Send status strings for now,
until nautilus knows how to generate them from selection info.
parent bc961a70
2000-02-14 Elliot Lee <sopwith@redhat.com>
* components/html/ntl-web-browser.c: Send status strings for now,
until nautilus knows how to generate them from selection info.
2000-02-14 Andy Hertzfeld <andy@eazel.com> 2000-02-14 Andy Hertzfeld <andy@eazel.com>
*src/nautilus-index-tabs.c: *src/nautilus-index-tabs.c:
......
...@@ -381,13 +381,15 @@ static void ...@@ -381,13 +381,15 @@ static void
browser_select_url(GtkWidget *htmlw, const char *url, BrowserInfo *bi) browser_select_url(GtkWidget *htmlw, const char *url, BrowserInfo *bi)
{ {
Nautilus_SelectionRequestInfo si; Nautilus_SelectionRequestInfo si;
Nautilus_StatusRequestInfo sri;
char *real_url = NULL; char *real_url = NULL;
memset(&si, 0, sizeof(si)); memset(&si, 0, sizeof(si));
memset(&sri, 0, sizeof(sri));
if(url && !bi->prevsel) if(url && !bi->prevsel)
{ {
si.selected_uris._length = 1; si.selected_uris._length = 1;
real_url = canonicalize_url(url, bi->base_target_url); sri.status_string = real_url = canonicalize_url(url, bi->base_target_url);
si.selected_uris._buffer = &real_url; si.selected_uris._buffer = &real_url;
} }
else if(!url && bi->prevsel) else if(!url && bi->prevsel)
...@@ -396,6 +398,8 @@ browser_select_url(GtkWidget *htmlw, const char *url, BrowserInfo *bi) ...@@ -396,6 +398,8 @@ browser_select_url(GtkWidget *htmlw, const char *url, BrowserInfo *bi)
} }
nautilus_view_frame_request_selection_change(bi->view_frame, &si); nautilus_view_frame_request_selection_change(bi->view_frame, &si);
if(sri.status_string)
nautilus_view_frame_request_status_change(bi->view_frame, &sri);
g_free(real_url); g_free(real_url);
bi->prevsel = url?1:0; bi->prevsel = url?1:0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment