Sorry,
Forgot to include the new code fragment:
private bool on_button_pressed(Gtk.Widget Widget, Gdk.EventButton event) {
// .....
return true;
}
Greetz,
Fred
2011/7/24 Fred van Zwieten <[email protected]>:
> Hi Luca,
>
> Sounds logical, but the problem stays:
>
> 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);
>
> ^^^^^^^^^^^^^^^^^
>
> 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