[pygtk] gtk_clipboard_set_with_data: (skip)

Pavel Holejsovsky pavel.holejsovsky at gmail.com
Fri Jul 1 20:25:34 WST 2011


Hi Giuseppe,

On 7/1/2011 10:21 AM, Giuseppe Penone wrote:
> I'm a GTK+ developer that used to work in pygtk2 and now ported the code
> to pygobject introspection.
> For my (GPL) application http://giuspen.com/cherrytree I absolutely need
> the function gtk_clipboard_set_with_data
> that I see you marhed as NON introspectable.
> I wanted to ask you that function will ever be binded/what alternative
> should I use instead.

I marked the function as (skip) because AFAIK current version of 
gobject-introspection really can't handle it; the reason is that this 
function shares single user_data field for 2 closures (get_func and 
clear_func), and this is not supported.

In order to be supported by current introspection, a new function would 
have to be added into GTK, which has one user_data for each callback.

An alternate solution is to provide some 'manual binding', i.e. binding 
this function directly, not through introspection.  Sorry, I'm not 
involved with python so I'm not sure how it works.  Maybe asking at 
irc://irc.gnome.org/python could help?

Sorry that I cannot be more helpful,
Pavel


More information about the pygtk mailing list