From 6cd53379464115f67164986922055f7b914db310 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sun, 12 Nov 2006 12:47:12 +0000 Subject: [PATCH] Fix for GTK+1 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 4f76d244cb..4cce420c0f 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -52,7 +52,7 @@ #include "wx/mac/private.h" #endif -#ifdef __WXGTK__ +#ifdef __WXGTK20__ #include "wx/gtk/private.h" #include "wx/gtk/win_gtk.h" #endif @@ -1448,7 +1448,7 @@ void wxListLineData::Draw( wxDC *dc ) wxListItemAttr *attr = GetAttr(); if ( SetAttributes(dc, attr, highlighted) ) -#ifndef __WXGTK__ +#ifndef __WXGTK20__ { dc->DrawRectangle( m_gi->m_rectHighlight ); } @@ -1513,7 +1513,7 @@ void wxListLineData::DrawInReportMode( wxDC *dc, // GetAttr() and move these lines into the loop below wxListItemAttr *attr = GetAttr(); if ( SetAttributes(dc, attr, highlighted) ) -#ifndef __WXGTK__ +#ifndef __WXGTK20__ { dc->DrawRectangle( rectHL ); } @@ -2796,7 +2796,7 @@ void wxListMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) ) if ( m_hasFocus ) { wxRect rect( GetLineHighlightRect( m_current ) ); -#ifndef __WXGTK__ +#ifndef __WXGTK20__ dc.SetPen( *wxBLACK_PEN ); dc.SetBrush( *wxTRANSPARENT_BRUSH ); dc.DrawRectangle( rect ); -- 2.45.2