Re: [Vala] Problems with connectors



On Sun, Jul 24, 2011 at 11:53:19AM +0200, Fred van Zwieten wrote:
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);
                                                    ^^^^^^^^^^^^^^^^^

That documentation is old, now it uses Gdk.EventButton :P

http://valadoc.org/references/goocanvas/0.11.5/Goo.CanvasItem.button_press_event.html

Anyway, that error message must be improved eheh.

-- 
http://www.debian.org - The Universal Operating System



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