From d617c5288fe37972b474f86b653e5541553f93de Mon Sep 17 00:00:00 2001 From: rathnor Date: Thu, 30 Oct 2003 20:27:51 +0000 Subject: fix handling of zero handleWidth in themes --- ChangeLog | 3 +++ src/FbWinFrame.cc | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9bd1f4f..f2915a0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ (Format: Year/Month/Day) Changes for 0.9.6: +*03/10/30: + * Fix handling of theme's with a zero handleWidth (Simon) + FbWinFrame.cc *03/10/28: * Fix building with --disable-slit (Simon) Screen.cc diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc index 0d84fd6..862ec29 100644 --- a/src/FbWinFrame.cc +++ b/src/FbWinFrame.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWinFrame.cc,v 1.60 2003/10/28 02:17:02 rathnor Exp $ +// $Id: FbWinFrame.cc,v 1.61 2003/10/30 20:27:51 rathnor Exp $ #include "FbWinFrame.hh" @@ -434,7 +434,7 @@ bool FbWinFrame::hideHandle() { } bool FbWinFrame::showHandle() { - if (m_use_handle) + if (m_use_handle || theme().handleWidth() == 0) return false; m_handle.show(); @@ -954,6 +954,9 @@ void FbWinFrame::init() { m_update_timer.setTimeout(10L); m_update_timer.fireOnce(true); + if (theme().handleWidth() == 0) + m_use_handle = false; + m_disable_shape = false; m_current_label = 0; // no focused button at first -- cgit v0.11.2