aboutsummaryrefslogtreecommitdiff
path: root/src/Tab.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Tab.cc')
-rw-r--r--src/Tab.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Tab.cc b/src/Tab.cc
index 2cc3c84..6c87b6e 100644
--- a/src/Tab.cc
+++ b/src/Tab.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Tab.cc,v 1.38 2002/11/12 16:13:24 rathnor Exp $ 22// $Id: Tab.cc,v 1.39 2002/11/12 22:57:03 fluxgen Exp $
23 23
24#include "Tab.hh" 24#include "Tab.hh"
25 25
@@ -358,6 +358,10 @@ void Tab::shade() {
358// TODO: the "draw in pressed mode" 358// TODO: the "draw in pressed mode"
359//----------------------------------- 359//-----------------------------------
360void Tab::draw(bool pressed) const { 360void Tab::draw(bool pressed) const {
361 XClearWindow(m_display, m_tabwin);
362
363 if (m_win->getTitle().size() == 0) // we don't have anything to draw
364 return;
361 365
362 GC gc = ((m_win->isFocused()) ? m_win->getScreen()->getWindowStyle()->tab.l_text_focus_gc : 366 GC gc = ((m_win->isFocused()) ? m_win->getScreen()->getWindowStyle()->tab.l_text_focus_gc :
363 m_win->getScreen()->getWindowStyle()->tab.l_text_unfocus_gc); 367 m_win->getScreen()->getWindowStyle()->tab.l_text_unfocus_gc);
@@ -404,9 +408,7 @@ void Tab::draw(bool pressed) const {
404 break; 408 break;
405 default: 409 default:
406 break; 410 break;
407 } 411 }
408
409 XClearWindow(m_display, m_tabwin);
410 412
411 m_win->getScreen()->getWindowStyle()->tab.font.drawText( 413 m_win->getScreen()->getWindowStyle()->tab.font.drawText(
412 m_tabwin, 414 m_tabwin,