Re: TreeView Question: how does one use TreeModelColumn<enum MyEnum>



> Here's what I would like to do:
> -------------------------------------------------------
> enum Checksum_t    {NONE, ADLER32, CRC32, MD5};
>
> class C_Columns : public Gtk::TreeModel::ColumnRecord {
> public:
>   Gtk::TreeModelColumn<Checksum_t> m_chksum_type;
>   C_Columns(){
>      add(m_chksum_type);
>   };
>  };

I'm quite sure that this should work, and is probably done quite often.
Please try creating a simple test case, or creating a small patch for an
existing example.

Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]