fix handling of zero handleWidth in themes

This commit is contained in:
rathnor 2003-10-30 20:27:51 +00:00
parent a07d7d0e73
commit d617c5288f
2 changed files with 8 additions and 2 deletions

View file

@ -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

View file

@ -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