Mercurial > dillo_port1.3
changeset 1979:f10139946f43
Reenabled "focus_new_tab" dillorc pref (also SHIFT-middleclick to revert)
author | Jorge Arellano Cid <jcid@dillo.org> |
---|---|
date | Thu, 21 Apr 2011 14:02:08 -0300 |
parents | 3172b6199fd1 |
children | 95f3007dbbfc |
files | src/uicmd.cc |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/uicmd.cc Thu Apr 21 13:22:00 2011 -0300 +++ b/src/uicmd.cc Thu Apr 21 14:02:08 2011 -0300 @@ -207,7 +207,7 @@ btn->copy_label(tab_label); btn->clear_visible_focus(); btn->box(FL_PLASTIC_ROUND_UP_BOX); - btn->color(tabcolor_active); + btn->color(focus ? tabcolor_active : tabcolor_inactive); btn->ui(new_ui); add(btn); btn->redraw(); @@ -394,7 +394,8 @@ CustTabs *DilloTabs = new CustTabs(ww, wh, 16); win->end(); - new_bw = UIcmd_tab_new(DilloTabs, 1); + int focus = 1; + new_bw = UIcmd_tab_new(DilloTabs, focus); win->resizable(Gui); win->show(); @@ -417,7 +418,7 @@ MSG(" UIcmd_tab_new\n"); // Create and set the UI - UI *new_ui = tabs->add_new_tab(1); + UI *new_ui = tabs->add_new_tab(focus); Gui = new_ui; // Now create the Dw render layout and viewport