No changes, just get rid of wxDataViewColumn::GetConstGtkHandle().
If both const and non-const accessors are needed, it's custom to use the same name for both but in this case we don't even need them as the const version can always be used, so simply remove the weird and badly named (because the returned handle is not const at all) GetConstGtkHandle(). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
3dd4d0ec9e
commit
b3a8aa924a
@ -76,8 +76,7 @@ public:
|
|||||||
virtual int GetFlags() const { return GetFromIndividualFlags(); }
|
virtual int GetFlags() const { return GetFromIndividualFlags(); }
|
||||||
|
|
||||||
// implementation
|
// implementation
|
||||||
GtkWidget* GetGtkHandle() { return m_column; }
|
GtkWidget* GetGtkHandle() const { return m_column; }
|
||||||
GtkWidget* GetConstGtkHandle() const { return m_column; }
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// holds the GTK handle
|
// holds the GTK handle
|
||||||
|
@ -4735,7 +4735,7 @@ bool wxDataViewCtrl::ClearColumns()
|
|||||||
|
|
||||||
int wxDataViewCtrl::GetColumnPosition( const wxDataViewColumn *column ) const
|
int wxDataViewCtrl::GetColumnPosition( const wxDataViewColumn *column ) const
|
||||||
{
|
{
|
||||||
GtkTreeViewColumn *gtk_column = GTK_TREE_VIEW_COLUMN(column->GetConstGtkHandle());
|
GtkTreeViewColumn *gtk_column = GTK_TREE_VIEW_COLUMN(column->GetGtkHandle());
|
||||||
|
|
||||||
GList *list = gtk_tree_view_get_columns( GTK_TREE_VIEW(m_treeview) );
|
GList *list = gtk_tree_view_get_columns( GTK_TREE_VIEW(m_treeview) );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user