diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2013-09-16 18:36:54 -0300 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2013-09-16 18:36:54 -0300 |
commit | 5bc56051a92ed2355dbfa2b93e89774fd445e6d9 (patch) | |
tree | ef2d7861be619acf6a4c44672ab33b00e3bf082a /src/ui.cc | |
parent | b2be12828a20c54b325a4f31ca62959ea12f642b (diff) |
Made show_url dillorc option work again (BUG#1128)
Some apps that embed dillo or work in kiosk mode find good use for it.
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 ) |