X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9861f022c31f3f46b694f77cb166b02452a63b6d..1663c65500c557d53e94493b7cf59331852c064d:/include/wx/gtk/dataview.h diff --git a/include/wx/gtk/dataview.h b/include/wx/gtk/dataview.h index cb4043722c..acef40fa2e 100644 --- a/include/wx/gtk/dataview.h +++ b/include/wx/gtk/dataview.h @@ -34,7 +34,7 @@ public: int align = wxDVR_DEFAULT_ALIGNMENT ); // implementation - GtkWidget* GetGtkHandle() { return m_renderer; } + GtkCellRenderer* GetGtkHandle() { return m_renderer; } virtual void SetMode( wxDataViewCellMode mode ); virtual wxDataViewCellMode GetMode() const; @@ -43,7 +43,7 @@ public: virtual int GetAlignment() const; protected: - GtkWidget *m_renderer; + GtkCellRenderer *m_renderer; protected: DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewRenderer) @@ -317,6 +317,9 @@ public: static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); + GtkWidget *GtkGetTreeView() { return m_treeview; } + wxWindow *GetMainWindow() { return (wxWindow*) this; } + private: friend class wxDataViewCtrlDC; friend class wxDataViewColumn; @@ -326,6 +329,9 @@ private: virtual void OnInternalIdle(); + void GtkEnableSelectionEvents(); + void GtkDisableSelectionEvents(); + private: DECLARE_DYNAMIC_CLASS(wxDataViewCtrl) DECLARE_NO_COPY_CLASS(wxDataViewCtrl)