Yes, I tried that too, but still no go:

    private bool on_button_pressed(Goo.CanvasItem Item, Gdk.Event Event) {
//        ...
    }



scrapbook2.vala:29.41-29.57: error: Argument 1: Cannot convert from
`ScrapItem.on_button_pressed' to `Goo.CanvasItem.button_press_event'
                scrap_item.button_press_event.connect(on_button_pressed);
                                                      ^^^^^^^^^^^^^^^^^


Greetz,
Fred



2011/7/24 Luca Bruno <[email protected]>:
> On Sun, Jul 24, 2011 at 11:35:46AM +0200, Fred van Zwieten wrote:
>> BTW: If I look in the interface synopsis on CanvasItem
>> (http://www.vala-project.org/doc/references/goocanvas.vapi/Goo/CanvasItem.htm)
>> it says to use Gdk.Event
>
> Sorry I didn't read the error well, thought we were talking of Gtk.Widget.
> In such case, it's the first parameter to be wrong... it must not be 
> Gtk.Widget
> but Goo.CanvasItem.
>
> --
> http://www.debian.org - The Universal Operating System
>
_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to