changeset 1980:95f3007dbbfc

Made button visibility prefs work again for: search, help and file menu
author Jorge Arellano Cid <jcid@dillo.org>
date Thu, 21 Apr 2011 17:46:42 -0300
parents f10139946f43
children 3640968ba259
files src/ui.cc
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ui.cc	Thu Apr 21 14:02:08 2011 -0300
+++ b/src/ui.cc	Thu Apr 21 17:46:42 2011 -0300
@@ -538,7 +538,7 @@
    if (prefs.show_tooltip)
       btn->tooltip("File menu");
    btn->clear_visible_focus();
-   if (!prefs.show_filemenu && PanelSize != P_large)
+   if (!prefs.show_filemenu)
       btn->hide();
    return btn;
 }
@@ -607,6 +607,7 @@
           LocBar = new CustGroup(0,0,ww,lh);
           LocBar->begin();
            make_location(ww);
+           LocBar->resizable(Location);
           LocBar->end();
           TopGroup->insert(*LocBar,1);
        } else {
@@ -1004,7 +1005,10 @@
 // if ( !prefs.show_progress_box )
 //    ProgBox->hide();
 
-   NavBar->rearrange();
+   if (NavBar)
+      NavBar->rearrange();
+   if (LocBar)
+      LocBar->rearrange();
 }
 
 /*