summaryrefslogtreecommitdiff
path: root/src/ui.cc
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-05-16 13:19:27 -0400
committerJorge Arellano Cid <jcid@dillo.org>2009-05-16 13:19:27 -0400
commitf15858539330c89f607d039fc51979c432c5192c (patch)
treed757f0f7f47d7d7cc66a7ff45f20d87bacd63154 /src/ui.cc
parentd935b6193905c8769ea4d869c228f2c1a6e3119f (diff)
parent3bb0ddc6679d4e8682b681845d4297cf73b93344 (diff)
merge
Diffstat (limited to 'src/ui.cc')
-rw-r--r--src/ui.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ui.cc b/src/ui.cc
index 38bb7f17..15007280 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -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) {