Re: [java-gnome-hackers] GTK, DisplayManager and multihead X
Brought to you by:
afcowie
From: Vreixo F. L. <met...@ya...> - 2008-05-21 13:53:20
|
--- Em qua, 21/5/08, Andrew Cowie <an...@op...> escreveu: > Vreixo suggested something like "UnknownSurface" Not really! My approach is to use as proxy the nearest parent we have a proxy for. For example, if in GStreamer we don't have a proxy for a given plugin that provides, for example, a XXXElement, we just proxy it as a GstElement. While not so good solution as having the concrete type proxied, it makes our bindings work properly, and at the same time it hides implementation details we actually don't need to expose. > I'd > rather just see > the bindings improve when people need them to. This is not a good idea for things like GStreamer, where users can install 3rd party plugins. While it may be (it is) a good idea to add coverage for common plugins, it would be really bad to have a bindings architechture that doesn't work for "all" plugins... The "use parent proxy if actual type is unknown" approach works ok, and it is type safe, it just hides implementation details. In cases where those implementation details need to be exposed, then adding the missing coverage is the only solution, but it works ok as a general purpose approach. Cheers Vreixo Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento! http://br.mail.yahoo.com/ |