Re: libglademm proposed change: arbitrary constructors for get_widget_derived

Marek Materzok <[email protected]> Wed, 04 May 2005 22:17:26 +0200
Newsgroups gmane.comp.gnome.gnomemm
Message-ID <[email protected]>
Dnia 04-05-2005, =B6ro o godzinie 18:17 +0200, Murray Cumming napisa=B3(a=
):

> I think it's slightly useful. It allows you to use a derived widget but
> do things to that widget's children outside of the class, instead of
> inside. Personally, I think the derived widget should not want you to
> mess around with its (normally protected) child widgets directly like
> this. Can you persuade me that it's useful?

I've used it to create a pattern, in which all access to children was
inside the class, but I could have additional parameters to the
constructor of that class.=20

> If you revise the patch, please put it in bugzilla:
> http://www.gtkmm.org/bugs.shtml#CreatingPatches

Added, bug #303044.

> This idea might also be interesting. I _still_ have not looked at it
> properly:
> http://bugzilla.gnome.org/show_bug.cgi?id=3D134161

I'm shocked. I'm doing nearly the same thing in my code, but using the
changes to glademm from my patch. This idea seems cleaner than mine,
because in my version I use a static factory function, and here just a
constructor is needed. I'll test this idea.

Regards

--=20
Marek Materzok <[email protected]>