diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2011-08-26 16:41:58 -0300 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2011-08-26 16:41:58 -0300 |
commit | 6894b7e30b0a57226567c2aa35510098f687a746 (patch) | |
tree | 2f3903e678508fbb90b06bdad9164700e1b4df50 /src | |
parent | c230105b56729f355a97540d478775adc9df464c (diff) |
Start new focused tabs with an empty title
Diffstat (limited to 'src')
-rw-r--r-- | src/uicmd.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/uicmd.cc b/src/uicmd.cc index 74ccb580..715dcbe2 100644 --- a/src/uicmd.cc +++ b/src/uicmd.cc @@ -241,7 +241,7 @@ UI *CustTabs::add_new_tab(UI *old_ui, int focus) /* The UI is constructed in a comfortable fitting size, and then resized * so FLTK doesn't get confused later with even smaller dimensions! */ current(0); - UI *new_ui = new UI(0,0,UI_MIN_W,UI_MIN_H,0,old_ui); + UI *new_ui = new UI(0,0,UI_MIN_W,UI_MIN_H,"Dillo:",old_ui); new_ui->resize(0,ctab_h,Wizard->w(),Wizard->h()); new_ui->tabs(this); Wizard->add(new_ui); @@ -534,6 +534,10 @@ static BrowserWindow *UIcmd_tab_new(CustTabs *tabs, UI *old_ui, int focus) // Copy the layout pointer into the bw data new_bw->render_layout = (void*)layout; + // Clear the window title + if (focus) + new_ui->window()->copy_label(new_ui->label()); + // WORKAROUND: see findbar_toggle() new_ui->findbar_toggle(0); |