diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2009-05-16 13:19:27 -0400 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2009-05-16 13:19:27 -0400 |
commit | f15858539330c89f607d039fc51979c432c5192c (patch) | |
tree | d757f0f7f47d7d7cc66a7ff45f20d87bacd63154 /src/ui.cc | |
parent | d935b6193905c8769ea4d869c228f2c1a6e3119f (diff) | |
parent | 3bb0ddc6679d4e8682b681845d4297cf73b93344 (diff) |
merge
Diffstat (limited to 'src/ui.cc')
-rw-r--r-- | src/ui.cc | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1059,17 +1059,15 @@ void UI::set_render_layout(Widget &nw) /* * Set the window title */ -void UI::set_page_title(const char *label) +void UI::set_tab_title(const char *label) { char title[128]; dReturn_if_fail(label != NULL); snprintf(title, 128, "Dillo: %s", label); - this->window()->copy_label(title); - this->window()->redraw_label(); - - if (tabs() && *label) { + if (*label) { + // Make a label for this tab size_t tab_chars = 18; snprintf(title, tab_chars + 1, "%s", label); if (strlen(label) > tab_chars) { |