[java-gnome-hackers] Create a Nautilus binding
Brought to you by:
afcowie
From: Jack H. <jac...@gm...> - 2008-07-25 18:11:27
|
Hi guys, I was thinking about creating a Nautilus binding, but couldn't find any tutorial about how to get started with writing my own binding. I read some source code and tried putting some .defs files (created by 'demux nautilus.defs') in the src/defs directory. The new files got picked up and I saw some .c and .java source files created in the 'generated' directory. First it complained about some nautilus types are not defined, I figured that 'import-header' was missing from the .defs files. It seemed that I was on the right track, but I got stuck at one particular file 'generated/bindings/org/gnome/nautilus/NautilusFileInfo.c' complaining "NautilusFileInfo undeclared". I looked at the generated .c file, it doesn't have the #include line generated for the header file that I added to its .defs file. Other generated .c files all have the proper header files included according to their .defs files, but not this one. So my questions are: 1) Is there a tutorial for creating bindings? 2) Am I on the right track? 3) Why the header file isn't included? Thanks in advance! Jack Hong |