Re: GtkBuilder report



Tristan Van Berkom wrote:
> On Tue, 2007-01-23 at 13:21 -0200, Johan Dahlin wrote:
[..]
>>> Showstoppers:
>>> =============
[..]
>> Which other parts are incomplete, could you provide a list of interfaces
>> you'd like to have documented.
>> GtkBuildable is mainly interesting for third party application developers
>> which would like to make their widgets supported by the GtkBuilder.
>> What kind of documentation would you like to see here?
> 
> specifically, I would like to see the meanings of each vfunc described
> in the buildable iface, so that buildable implementors have an easy
> time understanding the design.
> 
>> Can you help out and provide a hand to make this effort going?
> 
> Ofcourse, I'll do anything to get builder into 2.12 ;-)

I'm interested in that too, but we're still waiting for Matthias to review
the code.


>>>   - Packing properties are only introspected on GtkContainer objects
>>>
>>>     Currently only GtkContainer derived objects can have thier packing
>>>     properties recognized and introspected - any GObject that parents
>>>     another GObject delagate must explicitly implement GtkBuildable and
>>>     handle packing properties manually.
>>>
>>>     I'd propose this (yeah it sounds wild but its really simple):
>>>       - Create GContainerIface with add/remove get/set_child_property
>>>       - Implement GContainerIface on GtkContainer itself
>>>       - use the GContainerIface api from the builder
>> The current implementation is correct here.
>> Packing properties as you refer to is something which is specific to the
>> GtkContainer widget. If you want to support similar properties for your own
>> type you'd need to end up duplicating large chunks of GtkContainer anyway,
>> (child_set_property, child_get_property etc), adding support for
>> GtkBuildable on top of that is a small task.
> 
> Wholeheartedly disagree ;-) - IMO this is quite incorrect.

Okay, but it's a different discussion from getting GtkBuilder into 2.12.
-- 
Johan Dahlin <jdahlin async com br>
Async Open Source



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