Support diabling items in GTK+, see #12686: Allow disabling of wxDVC items

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2010-12-19 19:43:46 +00:00
parent 98f8e6666b
commit 9fc221aa81
2 changed files with 19 additions and 2 deletions

View File

@@ -77,6 +77,8 @@ public:
// specific attributes: can return NULL if this renderer doesn't render any
// text
virtual GtkCellRendererText *GtkGetTextRenderer() const { return NULL; }
wxDataViewCellMode GtkGetMode() { return m_mode; }
protected:
virtual void GtkOnCellChanged(const wxVariant& value,
@@ -84,8 +86,9 @@ protected:
unsigned col);
GtkCellRenderer *m_renderer;
int m_alignment;
GtkCellRenderer *m_renderer;
int m_alignment;
wxDataViewCellMode m_mode;
// true if we hadn't changed any visual attributes or restored them since
// doing this