Re: [gtkmm] Actions / UIManager and OO programming style
- From: Murray Cumming <murrayc murrayc com>
- To: Christer Palm <palm nogui se>
- Cc: gtkmm-list <gtkmm-list gnome org>, gtk-list <gtk-list gnome org>
- Subject: Re: [gtkmm] Actions / UIManager and OO programming style
- Date: Wed, 30 Jun 2004 17:24:48 +0200
On Tue, 2004-06-29 at 22:37 +0200, Christer Palm wrote:
> Murray Cumming wrote:
> >>Second, Action doesn't have any useful public/protected constructors.
> >
> >
> > There are no public constructors because they are meant to be used via
> > RefPtr. There are protected constructors, so you can derive. If you need
> > an extra constructor then I would be happy to look at a patch.
> >
>
> I looked at the protected constructor but it didn't look too useful at
> the "user" level, neither is it documented [== a big warning sign saying
> "this is internal stuff - use at your own risk"]. I will spend some more
> time with it and see if I can make anything useful out of it, though.
>
> RefPtr's are nice, but at the expense of extensibility - I don't know.
> Perhaps that's something to keep in mind when doing the wrapper design?
Nothing about RefPtr stops you from deriving.
There are protected constructors, so you can derive. If you need an
extra constructor then I would be happy to look at a patch.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]