1. ------------------------------------------------------------------------------ 
  2. --                  GtkAda - Ada95 binding for Gtk+/Gnome                   -- 
  3. --                                                                          -- 
  4. --                     Copyright (C) 2000-2014, AdaCore                     -- 
  5. --                                                                          -- 
  6. -- This library is free software;  you can redistribute it and/or modify it -- 
  7. -- under terms of the  GNU General Public License  as published by the Free -- 
  8. -- Software  Foundation;  either version 3,  or (at your  option) any later -- 
  9. -- version. This library is distributed in the hope that it will be useful, -- 
  10. -- but WITHOUT ANY WARRANTY;  without even the implied warranty of MERCHAN- -- 
  11. -- TABILITY or FITNESS FOR A PARTICULAR PURPOSE.                            -- 
  12. --                                                                          -- 
  13. -- As a special exception under Section 7 of GPL version 3, you are granted -- 
  14. -- additional permissions described in the GCC Runtime Library Exception,   -- 
  15. -- version 3.1, as published by the Free Software Foundation.               -- 
  16. --                                                                          -- 
  17. -- You should have received a copy of the GNU General Public License and    -- 
  18. -- a copy of the GCC Runtime Library Exception along with this program;     -- 
  19. -- see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    -- 
  20. -- <http://www.gnu.org/licenses/>.                                          -- 
  21. --                                                                          -- 
  22. ------------------------------------------------------------------------------ 
  23.  
  24. --  <description> 
  25. -- 
  26. --  This package provides the most commonly used instantiations of 
  27. --  Gtk.Handlers 
  28. -- 
  29. --  Gate takes advantage of these pre-instantiated packages. 
  30. -- 
  31. --  </description> 
  32. --  <group>Signal handling</group> 
  33.  
  34. with Gtk.Handlers; 
  35. pragma Elaborate_All (Gtk.Handlers); 
  36.  
  37. with Glib.Object; 
  38. with Gtk.Widget; 
  39.  
  40. package Gtkada.Handlers is 
  41.  
  42.    package Widget_Callback is new 
  43.      Gtk.Handlers.Callback (Gtk.Widget.Gtk_Widget_Record); 
  44.  
  45.    package Return_Callback is new Gtk.Handlers.Return_Callback 
  46.      (Gtk.Widget.Gtk_Widget_Record, Boolean); 
  47.    --  Emit_By_Name shouldn't be used, since it should really return a Gboolean 
  48.  
  49.    package Object_Callback is new 
  50.      Gtk.Handlers.Callback (Glib.Object.GObject_Record); 
  51.  
  52.    package Object_Return_Callback is new Gtk.Handlers.Return_Callback 
  53.      (Glib.Object.GObject_Record, Boolean); 
  54.  
  55. end Gtkada.Handlers;