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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,3ba4b4047da1d8b3,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!g15g2000pra.googlegroups.com!not-for-mail From: Rick Newsgroups: comp.lang.ada Subject: Exent handler using Gtk.Widget Date: Sat, 20 Jun 2009 20:15:38 -0700 (PDT) Organization: http://groups.google.com Message-ID: <8b13c644-f47a-4ce1-af5b-c073f64767f9@g15g2000pra.googlegroups.com> NNTP-Posting-Host: 123.3.167.215 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1245554138 13546 127.0.0.1 (21 Jun 2009 03:15:38 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 21 Jun 2009 03:15:38 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g15g2000pra.googlegroups.com; posting-host=123.3.167.215; posting-account=q18aiAoAAADbiIPIlD5R8oYVGhuoBvVA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:6557 Date: 2009-06-20T20:15:38-07:00 List-Id: Hi folks I am building a composite wiget as a learning exercise. I declared callback handlers for each of the active widget types I am using : package Window_Callback_Pkg is new Gtk.Handlers.Callback (Gtk.Window.Gtk_Window_Record); package Image_Menu_Item_Callback_Pkg is new Gtk.Handlers.Callback (Gtk.Image_Menu_Item.Gtk_Image_Menu_Item_Record); package Button_Callback_Pkg is new Gtk.Handlers.Callback (Gtk.Button.Gtk_Button_Record); Following communication with folks on the list it has occurred to me that I need not work so hard. I think I could simply write one instantiation : package Widget_Callback_Pkg is new Gtk.Handlers.Callback (Gtk.Widget.Gtk_Widget_Record); which would cover all eventualities. Am I right about this? Has at least one penny dropped? -------------------------------------------- Rick Duley North Perth, Western Australia .-_|\ / \ perth *_.-._/ v --------------------------------------------