Re: libglademm proposed change: arbitrary constructors for get_widget_derived



Dnia 04-05-2005, śro o godzinie 18:17 +0200, Murray Cumming napisał(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. 

> 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=134161

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

-- 
Marek Materzok <tilk lucifer czad org>




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