Re: [java-gnome-hackers] Create a Nautilus binding
Brought to you by:
afcowie
From: Jack H. <jac...@gm...> - 2008-07-28 21:26:38
|
Hi Andrew, On Mon, Jul 28, 2008 at 12:43 AM, Andrew Cowie < an...@op...> wrote: > On Mon, 2008-07-28 at 00:13 -0400, Jack Hong wrote: > > Hi AfC, > > You can call me Andrew :) > > > 3) the extension module will be a standard nautilus extension module > > written in C; it shall start a JVM, scan some dirs for Java-based > > "provider" implementations, load and register them to the Nautilus > > instance; > > So this is a complex area; for some related thoughts on a similar topic, > see http://article.gmane.org/gmane.comp.gnome.bindings.java.devel/1135 > Thank god the nautilus extension API is not Bonobo based! > I'll look into the rest of your ideas in the next day or two. Sounds > like you are barrelling along; if you've got a branch already I'd be > pleased to start looking at it. > I spent a few more hours hacking on my own branch this morning, I'll let you know as soon as I have something ready for review. I wrote a simple implementation of the nautilus extension module piece and some binding classes. Now I just need to figure out how to instantiate a subclass of GObject directly, I'm very close to having a working prototype. In a common scenario, a native object is either created by calling the something_new constructor or retrieved by calling some other functions like something_copy, etc., the generated part knows how to interact with the native part and then the developer uses the better looking Java binding class that calls the generated part. In other words, you always have the native object first. In my case, I have to instantiate a Java object directly and pass the pointer of the native part of that object to Nautilus. Is there an example for this? > > > Coverage of GList* of things is implemented, though you need > > to mark up > > the .defs data slightly. See Widget's getChildren() and the > > corresponding data in src/defs/GtkWidget.defs > > Sorry, I meant Container. Got it, now my GList* things are correctly generated! > > > AfC > Sydney > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > java-gnome-hackers mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-hackers > > Cheers, Jack |