mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
Do nothing on calls to XFormsToolbar::show, hide if the toolbar is
already visiblehidden respectively. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8735 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
37b93beec5
commit
a81c35023a
@ -1,3 +1,8 @@
|
||||
2004-05-04 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* XFormsToolbar.C (show, hide): do nothing if the toolbar is
|
||||
already visible/invisible, respectively.
|
||||
|
||||
2004-05-04 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* XWorkArea.C (XWorkArea): set the color of the background, hidden
|
||||
|
@ -280,7 +280,10 @@ void C_ToolbarCB(FL_OBJECT * ob, long ac)
|
||||
|
||||
void XFormsToolbar::hide(bool update_metrics)
|
||||
{
|
||||
toolbar_->set(Box::Invisible);
|
||||
if (!toolbar_->visible())
|
||||
return;
|
||||
|
||||
toolbar_->set(Box::Invisible);
|
||||
if (update_metrics)
|
||||
owner_.updateMetrics();
|
||||
}
|
||||
@ -288,7 +291,10 @@ void XFormsToolbar::hide(bool update_metrics)
|
||||
|
||||
void XFormsToolbar::show(bool update_metrics)
|
||||
{
|
||||
toolbar_->set(Box::Visible);
|
||||
if (toolbar_->visible())
|
||||
return;
|
||||
|
||||
toolbar_->set(Box::Visible);
|
||||
toolbar_->show();
|
||||
if (update_metrics)
|
||||
owner_.updateMetrics();
|
||||
|
Loading…
Reference in New Issue
Block a user