diff options
author | Sebastian Geerken <devnull@localhost> | 2013-10-14 20:25:21 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2013-10-14 20:25:21 +0200 |
commit | a86189a5307f05974429277414909f14888669d5 (patch) | |
tree | 8a2f963b13adf2d56c2a506f3458f852308af9c1 /src/ui.cc | |
parent | bd6a97f011cd71bcd679b7fba09fa60f9fb2e0a8 (diff) | |
parent | 8de011d8d7357509c487b3de5e052dfc52730b2b (diff) |
Merge with main repo.
Diffstat (limited to 'src/ui.cc')
-rw-r--r-- | src/ui.cc | 22 |
1 files changed, 14 insertions, 8 deletions
@@ -455,12 +455,16 @@ void UI::make_location(int ww) b->set_tooltip("Clear the URL box.\nMiddle-click to paste a URL."); p_xpos += b->w(); - CustInput *i = new CustInput(p_xpos,0,ww-p_xpos-32,lh,0); - Location = i; - i->when(FL_WHEN_ENTER_KEY); - i->callback(location_cb, this); - i->set_tooltip("Location"); - p_xpos += i->w(); + LocationGroup = new Fl_Group(p_xpos,0,ww-p_xpos-32,lh,0); + LocationGroup->begin(); + CustInput *i = new CustInput(p_xpos,0,ww-p_xpos-32,lh,0); + Location = i; + i->when(FL_WHEN_ENTER_KEY); + i->callback(location_cb, this); + i->set_tooltip("Location"); + p_xpos += i->w(); + LocationGroup->box(FL_THIN_UP_BOX); // or FL_FLAT_BOX + LocationGroup->end(); Search = b = new CustButton(p_xpos,0,16,lh,0); b->image(icons->ImgSearch); @@ -567,7 +571,7 @@ void UI::make_panel(int ww) make_toolbar(ww,bh); make_filemenu_button(); make_location(ww); - NavBar->resizable(Location); + NavBar->resizable(LocationGroup); make_progress_bars(0,1); NavBar->box(FL_THIN_UP_FRAME); NavBar->end(); @@ -581,7 +585,7 @@ void UI::make_panel(int ww) p_xpos = 0; make_filemenu_button(); make_location(ww); - LocBar->resizable(Location); + LocBar->resizable(LocationGroup); LocBar->end(); LocBar->rearrange(); TopGroup->insert(*LocBar,0); @@ -945,6 +949,8 @@ void UI::customize() Tools->hide(); if ( !prefs.show_clear_url ) Clear->hide(); + if ( !prefs.show_url ) + Location->hide(); if ( !prefs.show_search ) Search->hide(); if ( !prefs.show_help ) |