Re: GtkGC shared auto-release



Torsten Schoenfeld <kaffeetisch gmx de> writes:

How about calling the package Gtk2::Ex::GCPool or similar?

That could be ok.

That is, have Gtk2::Ex::GCPool->get bless the gc
into Gtk2::Ex::GCPool::CustomGC and put the @ISA mangling and DESTROY in
that package.

That'd make live easier for further subclassing would it?

Apart from the "get" to create I've only got in mind a "new" with a
slightly friendlier interface so you can just say a widget or window
instead of digging out colormap and depth explicitly.



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