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

Greetz,
Fred



2011/7/24 Luca Bruno <[email protected]>:
> On Sun, Jul 24, 2011 at 09:54:02AM +0200, Fred van Zwieten wrote:
>> When I try to compile this I get this error:
>>
>> scrapbook2.vala:29.47-29.63: error: Argument 1: Cannot convert from
>> `ScrapItem.on_button_pressed' to `Goo.CanvasItem.button_press_event'
>>               scrap_item_group.button_press_event.connect(on_button_pressed);
>>                                                           ^^^^^^^^^^^^^^^^^
>
> Your on_button_pressed must use Gdk.EventButton not Gdk.Event to match the
> signal.
>
> --
> 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