[pygtk] Trying to wrap a gobject
gabriele lanaro
gabriele.lanaro at gmail.com
Mon Jul 20 16:51:41 WST 2009
Hi, I'm try to wrap the eggtrayicon like in the tutorial at this page:
http://www.ibm.com/developerworks/linux/library/l-wrap/
The tutorial il very old, but It's better than the faq, so I have a problem:
I generate with h2defs and eggtrayicon.h the trayicon.defs file
I wrote a trayicon.override
I wrote a simple Makefile to generate the trayicon.c
Now I encounter this error:
pygobject-codegen-2.0 --prefix trayicon\
--register `pkg-config --variable=defsdir pygtk-2.0`/gdk-types.defs \
--register `pkg-config --variable=defsdir pygtk-2.0`/gtk-types.defs \
--override trayicon.override \
trayicon.defs > trayicon.c
Could not write getter for GdkDevice.axes: No ArgType for GdkDeviceAxis*
Could not write getter for GdkDevice.keys: No ArgType for GdkDeviceKey*
Could not write getter for GdkDragContext.targets: No ArgType for GList*
Could not write getter for GdkDrawable.handle: No ArgType for gulong*
Traceback (most recent call last):
File "/usr/share/pygobject/2.0/codegen/codegen.py", line 1717, in <module>
sys.exit(main(sys.argv))
File "/usr/share/pygobject/2.0/codegen/codegen.py", line 1708, in main
sw.write(py_ssize_t_clean)
File "/usr/share/pygobject/2.0/codegen/codegen.py", line 1340, in write
self.write_classes()
File "/usr/share/pygobject/2.0/codegen/codegen.py", line 1438, in
write_classes
instance.write_class()
File "/usr/share/pygobject/2.0/codegen/codegen.py", line 284, in
write_class
substdict['tp_getset'] = self.write_getsets()
File "/usr/share/pygobject/2.0/codegen/codegen.py", line 703, in
write_getsets
handler.write_return(ftype, 0, info)
File "/usr/share/pygobject/2.0/codegen/argtypes.py", line 89, in
write_return
self.__class__.__name__
RuntimeError: write_return not implemented for UCharArg
make: *** [trayicon.c] Error 1
-------------- parte successiva --------------
Un allegato HTML ? stato rimosso...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20090720/91119e3b/attachment.htm
-------------- parte successiva --------------
Un allegato non testuale ? stato rimosso....
Nome: eggtrayicon.c
Tipo: text/x-csrc
Dimensione: 12310 bytes
Descrizione: non disponibile
Url: http://www.daa.com.au/pipermail/pygtk/attachments/20090720/91119e3b/attachment.c
-------------- parte successiva --------------
Un allegato non testuale ? stato rimosso....
Nome: eggtrayicon.h
Tipo: text/x-chdr
Dimensione: 2527 bytes
Descrizione: non disponibile
Url: http://www.daa.com.au/pipermail/pygtk/attachments/20090720/91119e3b/attachment.h
-------------- parte successiva --------------
Un allegato non testuale ? stato rimosso....
Nome: trayicon.override
Tipo: application/octet-stream
Dimensione: 242 bytes
Descrizione: non disponibile
Url: http://www.daa.com.au/pipermail/pygtk/attachments/20090720/91119e3b/attachment.obj
More information about the pygtk
mailing list