X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/11f20f99ee9593276c96f9fbebc3aa190dae01a0..b3eb776ad6e73ff50d3d75e3b7c8f418154feae6:/src/gtk/dataview.cpp diff --git a/src/gtk/dataview.cpp b/src/gtk/dataview.cpp index 58bdbbb501..2d8a29c111 100644 --- a/src/gtk/dataview.cpp +++ b/src/gtk/dataview.cpp @@ -1105,11 +1105,10 @@ gtk_wx_cell_renderer_render (GtkCellRenderer *renderer, wxRect renderrect( rect.x, rect.y, rect.width, rect.height ); wxWindowDC* dc = (wxWindowDC*) cell->GetDC(); wxWindowDCImpl *impl = (wxWindowDCImpl *) dc->GetImpl(); - if (impl->m_gdkwindow == NULL) - { - impl->m_gdkwindow = window; - impl->SetUpDC(); - } + // Reinitilise GDK window everytime as drawing can also + // be done into DnD drop window. + impl->m_gdkwindow = window; + impl->SetUpDC(); int state = 0; if (flags & GTK_CELL_RENDERER_SELECTED) @@ -3875,7 +3874,7 @@ bool wxDataViewCtrl::Create(wxWindow *parent, wxWindowID id, gtk_tree_view_set_rules_hint( GTK_TREE_VIEW(m_treeview), (style & wxDV_ROW_LINES) != 0 ); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (m_widget), - GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS); + GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_widget_show (m_treeview); m_parent->DoAddChild( this );