mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 14:15:32 +00:00
Fix problem with toolbars always visible at startup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8789 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0eeec0cf18
commit
c8600dc0a1
@ -1,3 +1,9 @@
|
||||
2004-06-01 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* LayoutEngine.C (c-tor): initialize visible_ as false.
|
||||
(set): only invoke hide() if the widget was visible and is to
|
||||
be no longer.
|
||||
|
||||
2004-05-28 Lars Gullik Bjonnes <larsbj@gullik.net>
|
||||
|
||||
* forms/Makefile.am (MAINTAINERCLEANFILES): rename as DISTCLEANFILES
|
||||
|
@ -97,7 +97,7 @@ Box::Packing Box::default_packing_ = Box::Shrink;
|
||||
|
||||
|
||||
Box::Box(dimension_t min_w, dimension_t min_h)
|
||||
: visible_(false),
|
||||
: visible_(true),
|
||||
min_w_(min_w),
|
||||
min_h_(min_h),
|
||||
w_(min_w),
|
||||
@ -193,7 +193,7 @@ Box::PreferedVisibility Box::preferedVisibility() const
|
||||
void Box::set(PreferedVisibility pv)
|
||||
{
|
||||
prefered_visibility_ = pv;
|
||||
if (pv == Invisible)
|
||||
if (pv == Invisible && visible_)
|
||||
hide();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user