From 5ac4d4bcff5fdaabdfe29135c93016c8067dc5b2 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sat, 24 Aug 2002 19:06:06 +0000 Subject: fixed parent relative issue --- src/Theme.cc | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/src/Theme.cc b/src/Theme.cc index dd5b561..d7d24ed 100644 --- a/src/Theme.cc +++ b/src/Theme.cc @@ -41,7 +41,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Theme.cc,v 1.25 2002/08/04 15:41:26 fluxgen Exp $ +// $Id: Theme.cc,v 1.26 2002/08/24 19:06:06 fluxgen Exp $ #ifndef _GNU_SOURCE #define _GNU_SOURCE @@ -382,27 +382,46 @@ void Theme::loadMenuStyle() { void Theme::loadWindowStyle() { + //read textures + readDatabaseTexture("window.title.focus", "Window.Title.Focus", &m_windowstyle.t_focus, WhitePixel(m_display, m_screennum)); + if ( (m_windowstyle.t_focus.type() & FbTk::Texture::PARENTRELATIVE) ) { + cerr<<"Warning: window.title.focus type is ParentRelative. Using flat solid!"<