Re: Missing function in Glib::Property ?
- From: Murray Cumming <murrayc murrayc com>
- To: Johannes Lorenz <johannes89 mailueberfall de>
- Cc: gtkmm-list gnome org
- Subject: Re: Missing function in Glib::Property ?
- Date: Fri, 26 Sep 2008 13:43:13 +0200
On Thu, 2008-09-25 at 00:51 +0200, Johannes Lorenz wrote:
> Hi,
>
> I do not know if this is really a bug, but I better tell you of it. It might also be a fault of mine (sry).
>
> I am writing my own cell renderer (inherited from CellRenderer) and want to create a read only property, but it does not work.
>
> Glib::Property< MultipleChoiceString > property_mcs_; // property declaration
> Glib::PropertyProxy< MultipleChoiceString > property_mcs() { return property_mcs_.get_proxy(); } // works
> Glib::PropertyProxy_ReadOnly< MultipleChoiceString > property_mcs() const { return property_mcs_.get_proxy(); } // error
>
> The third line causes an error because calling get_proxy on the property does not keep the property constant.
Do you mean a compilation error? Does the mutable keyword help?
> Maybe, one should add a function for a Property that returns a PropertyProxy_ReadOnly? How else could this problem be solved?
>
> Thank you for answers in advance,
> Johannes
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]