GTK+ cell renderers are not widget, so use a

correct type.
  Also found a way to set cell background and
   probably other styles.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2007-05-09 10:38:15 +00:00
parent 8ecb322ecb
commit ed38aa559c
3 changed files with 21 additions and 7 deletions

View File

@@ -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)