diff options
-rw-r--r-- | dpi/file.c | 4 | ||||
-rw-r--r-- | src/IO/http.c | 2 | ||||
-rw-r--r-- | src/uicmd.cc | 15 |
3 files changed, 14 insertions, 7 deletions
@@ -346,10 +346,10 @@ static void File_info2html(ClientInfo *client, FileInfo *finfo, int n) sizeunits = "bytes"; } else if (finfo->size / 1024 <= 9999) { size = finfo->size / 1024 + (finfo->size % 1024 >= 1024 / 2); - sizeunits = "Kb"; + sizeunits = "KB"; } else { size = finfo->size / 1048576 + (finfo->size % 1048576 >= 1048576 / 2); - sizeunits = "Mb"; + sizeunits = "MB"; } /* we could note if it's a symlink... */ diff --git a/src/IO/http.c b/src/IO/http.c index 8c7dcef1..68294fb4 100644 --- a/src/IO/http.c +++ b/src/IO/http.c @@ -584,7 +584,7 @@ static void Http_dns_cb(int Status, Dlist *addr_list, void *data) Http_connect_queued_sockets(hc); } else { /* DNS wasn't able to resolve the hostname */ - MSG_BW(S->web, 0, "ERROR: Dns can't resolve %s", + MSG_BW(S->web, 0, "ERROR: DNS can't resolve %s", (S->flags & HTTP_SOCKET_USE_PROXY) ? URL_HOST_(HTTP_Proxy) : URL_HOST_(S->web->url)); a_Chain_bfcb(OpAbort, S->Info, NULL, "Both"); diff --git a/src/uicmd.cc b/src/uicmd.cc index 4f737255..fa39627f 100644 --- a/src/uicmd.cc +++ b/src/uicmd.cc @@ -433,7 +433,9 @@ void CustTabs::switch_tab(CustTabButton *cbtn) // Update window title if ((bw = a_UIcmd_get_bw_by_widget(cbtn->ui()))) { const char *title = (cbtn->ui())->label(); - cbtn->window()->copy_label(title ? title : ""); + Fl_Window *win = cbtn->window(); + win->copy_label(title ? title : ""); + win->iconlabel(win->label()); } // Update focus priority increase_focus_counter(); @@ -605,8 +607,11 @@ static BrowserWindow *UIcmd_tab_new(CustTabs *tabs, UI *old_ui, int focus) new_bw->render_layout = (void*)layout; // Clear the window title - if (focus) - new_ui->window()->copy_label(new_ui->label()); + if (focus) { + Fl_Window *win = new_ui->window(); + win->copy_label(new_ui->label()); + win->iconlabel(win->label()); + } // WORKAROUND: see findbar_toggle() new_ui->findbar_toggle(0); @@ -1413,7 +1418,9 @@ void a_UIcmd_set_page_title(BrowserWindow *bw, const char *label) if (a_UIcmd_get_bw_by_widget(BW2UI(bw)->tabs()->wizard()->value()) == bw) { // This is the focused bw, set window title - BW2UI(bw)->window()->copy_label(title); + Fl_Window *win = BW2UI(bw)->window(); + win->copy_label(title); + win->iconlabel(win->label()); } } |