From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5bddcaa4ae64b29d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-20 05:30:42 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: gtkada Date: 20 Sep 2002 08:19:55 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3D8AF8D4.7090800@wanadoo.fr> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1032525016 26021 128.183.220.71 (20 Sep 2002 12:30:16 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 20 Sep 2002 12:30:16 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:29214 Date: 2002-09-20T12:30:16+00:00 List-Id: Sami Evangelista writes: > hello > is it possible to connect a handler to a drawing_area when the user > click on this drawing area. You'll get better help on GtkAda from the GtkAda mailing list. See http://libre.act-europe.fr/GtkAda/ (way down near the bottom) for instructions on subscribing. > I have tried to connect my handler to the "button_press" signal of > the Gtk_Drawing_Area like this : > > --------------------------------------------------------- > Widget_Cb.Connect(Gtk_Widget(Current_Da), "button_press", > Widget_Cb.To_Marshaller(On_Sub_Net_Button_Press'Access)); > --------------------------------------------------------- > > it compiles well but at the execution the follwing error occurs : > > --------------------------------------------------------- > Gtk-WARNING **: gtk_signal_connect_full(): could not find signal > "button_press" in the `GtkDrawingArea' class ancestry > --------------------------------------------------------- The list of signals valid for each widget is given in the Ada package spec, as comments. So read the spec for Gtk_Drawing_Area. I don't have GtkAda installed here, so I can't do that right now. -- -- Stephe