Fix for GTK+1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -52,7 +52,7 @@
|
|||||||
#include "wx/mac/private.h"
|
#include "wx/mac/private.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK20__
|
||||||
#include "wx/gtk/private.h"
|
#include "wx/gtk/private.h"
|
||||||
#include "wx/gtk/win_gtk.h"
|
#include "wx/gtk/win_gtk.h"
|
||||||
#endif
|
#endif
|
||||||
@@ -1448,7 +1448,7 @@ void wxListLineData::Draw( wxDC *dc )
|
|||||||
wxListItemAttr *attr = GetAttr();
|
wxListItemAttr *attr = GetAttr();
|
||||||
|
|
||||||
if ( SetAttributes(dc, attr, highlighted) )
|
if ( SetAttributes(dc, attr, highlighted) )
|
||||||
#ifndef __WXGTK__
|
#ifndef __WXGTK20__
|
||||||
{
|
{
|
||||||
dc->DrawRectangle( m_gi->m_rectHighlight );
|
dc->DrawRectangle( m_gi->m_rectHighlight );
|
||||||
}
|
}
|
||||||
@@ -1513,7 +1513,7 @@ void wxListLineData::DrawInReportMode( wxDC *dc,
|
|||||||
// GetAttr() and move these lines into the loop below
|
// GetAttr() and move these lines into the loop below
|
||||||
wxListItemAttr *attr = GetAttr();
|
wxListItemAttr *attr = GetAttr();
|
||||||
if ( SetAttributes(dc, attr, highlighted) )
|
if ( SetAttributes(dc, attr, highlighted) )
|
||||||
#ifndef __WXGTK__
|
#ifndef __WXGTK20__
|
||||||
{
|
{
|
||||||
dc->DrawRectangle( rectHL );
|
dc->DrawRectangle( rectHL );
|
||||||
}
|
}
|
||||||
@@ -2796,7 +2796,7 @@ void wxListMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
|
|||||||
if ( m_hasFocus )
|
if ( m_hasFocus )
|
||||||
{
|
{
|
||||||
wxRect rect( GetLineHighlightRect( m_current ) );
|
wxRect rect( GetLineHighlightRect( m_current ) );
|
||||||
#ifndef __WXGTK__
|
#ifndef __WXGTK20__
|
||||||
dc.SetPen( *wxBLACK_PEN );
|
dc.SetPen( *wxBLACK_PEN );
|
||||||
dc.SetBrush( *wxTRANSPARENT_BRUSH );
|
dc.SetBrush( *wxTRANSPARENT_BRUSH );
|
||||||
dc.DrawRectangle( rect );
|
dc.DrawRectangle( rect );
|
||||||
|
Reference in New Issue
Block a user