Re: Drag_dest_set



On Jul 8, 2012, at 1:20 AM, Robert Park wrote:

> On Fri, Jul 6, 2012 at 4:52 PM, John Ralls <jralls ceridwen us> wrote:
>> WTF? Button and Label are both descendants of GtkWidget, which, according to the PyGObject tutorial [0] is supposed
>> to implement drag_dest_set(). The example in the tutorial also fails with this error.
> 
> Something's wrong with your setup:
> 
> $ python
> Python 2.7.3 (default, Apr 30 2012, 21:18:11)
> [GCC 4.7.0 20120416 (Red Hat 4.7.0-2)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> from gi.repository import Gtk
>>>> Gtk.Button.drag_dest_set
> <unbound method Button.drag_dest_set>

So it turns out to be a quartz-backend problem: The general gtkdnd.c file contains annotations for g-ir-scanner, but gtkdnd-quartz.c doesn't. After I copied over the comment for gtk_drag_dest_set to gtkdnd-quartz.c, recompiled, and reinstalled, the method is properly attached to Gtk.Widget and its descendants.

Fixing that for all of the functions should keep me busy for a few days. ;-)

Regards,
John Ralls



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]