From: Rick <rickduley@gmail.com>
Subject: Exent handler using Gtk.Widget
Date: Sat, 20 Jun 2009 20:15:38 -0700 (PDT)
Date: 2009-06-20T20:15:38-07:00 [thread overview]
Message-ID: <8b13c644-f47a-4ce1-af5b-c073f64767f9@g15g2000pra.googlegroups.com> (raw)
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
--------------------------------------------
reply other threads:[~2009-06-21 3:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox