Re: AW: [gtkmm] Segfault when calling the MenuItem superconstructor.
- From: Murray Cumming <murrayc usa net>
- To: "Hopfes, Harald" <Harald Hopfes Hopfes sysde eads net>
- Cc: "'gtkmm-list gnome org'" <gtkmm-list gnome org>
- Subject: Re: AW: [gtkmm] Segfault when calling the MenuItem superconstructor.
- Date: 28 Aug 2002 15:19:45 +0100
On Wed, 2002-08-28 at 15:07, Hopfes, Harald wrote:
> Hi!
>
> In the method
>
> MenuItem::add_accel_label
>
> I found the following:
>
> pLabel->property_xalign() = 0.0;
>
> but property_xalign() returns by value. What sense does it make to
> set a value that is only temporary available?
property_align() returns a proxy object, which has an overloaded
operator=(). It makes sense if operator=() does something worthwhiel.
You could change it to use set_value() if you really think that it's a
problem.
> Could somebody also check, if the other stuff inside
>
> MenuItem::add_accel_label
>
> is correct?
Please be more specific. And does this have anything to do with the
subject?
--
Murray Cumming
murrayc usa net
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]