Re: [Vala] Problems with connectors
- From: Fred van Zwieten <fvzwieten gmail com>
- To: Luca Bruno <lethalman88 gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Problems with connectors
- Date: Sun, 24 Jul 2011 11:03:04 +0200
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 <fvzwieten gmail com>:
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 <lethalman88 gmail com>:
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]