#include "wx/module.h"
#endif
+#include "wx/gtk/dc.h"
+
#include <gtk/gtk.h>
// ----------------------------------------------------------------------------
GdkWindow* gdk_window = NULL;
#if wxUSE_NEW_DC
- wxImplDC *impl = dc.GetImpl();
- wxGTKImplDC *gtk_impl = wxDynamicCast( impl, wxGTKImplDC );
+ wxDCImpl *impl = dc.GetImpl();
+ wxGTKDCImpl *gtk_impl = wxDynamicCast( impl, wxGTKDCImpl );
if (gtk_impl)
gdk_window = gtk_impl->GetGDKWindow();
#else
GdkWindow* gdk_window = NULL;
#if wxUSE_NEW_DC
- wxImplDC *impl = dc.GetImpl();
- wxGTKImplDC *gtk_impl = wxDynamicCast( impl, wxGTKImplDC );
+ wxDCImpl *impl = dc.GetImpl();
+ wxGTKDCImpl *gtk_impl = wxDynamicCast( impl, wxGTKDCImpl );
if (gtk_impl)
gdk_window = gtk_impl->GetGDKWindow();
#else
GdkWindow* gdk_window = NULL;
#if wxUSE_NEW_DC
- wxImplDC *impl = dc.GetImpl();
- wxGTKImplDC *gtk_impl = wxDynamicCast( impl, wxGTKImplDC );
+ wxDCImpl *impl = dc.GetImpl();
+ wxGTKDCImpl *gtk_impl = wxDynamicCast( impl, wxGTKDCImpl );
if (gtk_impl)
gdk_window = gtk_impl->GetGDKWindow();
#else
// are derived from it) and use its m_window.
GdkWindow* gdk_window = NULL;
#if wxUSE_NEW_DC
- wxImplDC *impl = dc.GetImpl();
- wxGTKImplDC *gtk_impl = wxDynamicCast( impl, wxGTKImplDC );
+ wxDCImpl *impl = dc.GetImpl();
+ wxGTKDCImpl *gtk_impl = wxDynamicCast( impl, wxGTKDCImpl );
if (gtk_impl)
gdk_window = gtk_impl->GetGDKWindow();
#else
GdkWindow* gdk_window = NULL;
#if wxUSE_NEW_DC
- wxImplDC *impl = dc.GetImpl();
- wxGTKImplDC *gtk_impl = wxDynamicCast( impl, wxGTKImplDC );
+ wxDCImpl *impl = dc.GetImpl();
+ wxGTKDCImpl *gtk_impl = wxDynamicCast( impl, wxGTKDCImpl );
if (gtk_impl)
gdk_window = gtk_impl->GetGDKWindow();
#else
GdkWindow* gdk_window = NULL;
#if wxUSE_NEW_DC
- wxImplDC *impl = dc.GetImpl();
- wxGTKImplDC *gtk_impl = wxDynamicCast( impl, wxGTKImplDC );
+ wxDCImpl *impl = dc.GetImpl();
+ wxGTKDCImpl *gtk_impl = wxDynamicCast( impl, wxGTKDCImpl );
if (gtk_impl)
gdk_window = gtk_impl->GetGDKWindow();
#else
{
GdkWindow* gdk_window = NULL;
#if wxUSE_NEW_DC
- wxImplDC *impl = dc.GetImpl();
- wxGTKImplDC *gtk_impl = wxDynamicCast( impl, wxGTKImplDC );
+ wxDCImpl *impl = dc.GetImpl();
+ wxGTKDCImpl *gtk_impl = wxDynamicCast( impl, wxGTKDCImpl );
if (gtk_impl)
gdk_window = gtk_impl->GetGDKWindow();
#else
state,
NULL,
win->m_wxwindow,
- "treeview",
+ // Detail "treeview" causes warning with GTK+ 2.12 Clearlooks theme:
+ // "... no property named `row-ending-details'"
+ // Using "treeview-middle" would fix the warning, but the right
+ // edge of the focus rect is not getting erased properly either.
+ // Better to not specify this detail unless the drawing is fixed.
+ NULL,
dc.LogicalToDeviceX(rect.x),
dc.LogicalToDeviceY(rect.y),
rect.width,
{
GdkWindow* gdk_window = NULL;
#if wxUSE_NEW_DC
- wxImplDC *impl = dc.GetImpl();
- wxGTKImplDC *gtk_impl = wxDynamicCast( impl, wxGTKImplDC );
+ wxDCImpl *impl = dc.GetImpl();
+ wxGTKDCImpl *gtk_impl = wxDynamicCast( impl, wxGTKDCImpl );
if (gtk_impl)
gdk_window = gtk_impl->GetGDKWindow();
#else