[gtkada] gtkada.canvas signal questions
Steven Carpenter
netbat at pacbell.net
Wed Jul 31 18:16:18 CEST 2002
I know I posted this before, but I am still having problems with this.
Is the item selected signal in the interactive canvas working properly?
Do I have to not use the marshaller and extract the canvas_item from the
signal myself?
I am having some problems figuring out how to use some of the signals in the
gtkada canvas in testgtk. I have the background_click signal working, but
the item_selected signal doesn't seem to work. I am using Gtkada 1.3.12 and
the
relevent code is:
package body create_canvas is
...
package canvas_cb is new Gtk.Handlers.Callback(Interactive_Canvas_Record);
...
procedure select_item(Canvas : Interactive_Canvas_Record'Class,
Item : Canvas_Item) is
...
end select_item;
...
Procuedure Run(Frame : access ...) is
Canvas: Interactive_canvas;
...
begin
...
Canvas_Cb.Connect(Canvas, "item_selected",
Canvas_Cb.To_Marshaller(select_item'access));
...
end run;
end create_canvas;
on compiling I get the error message ~ handler expected, found access to
select_item or something like that.
I used the same format for the background_click signal and it works so I am
not sure what is wrong.
Thanks.
Steven Carpenter
More information about the gtkada
mailing list