1. ----------------------------------------------------------------------- 
  2. --               GtkAda - Ada95 binding for Gtk+/Gnome               -- 
  3. --                                                                   -- 
  4. --      Copyright (C) 2000 E. Briot, J. Brobecker and A. Charlet     -- 
  5. --                Copyright (C) 2000-2006 AdaCore                    -- 
  6. --                                                                   -- 
  7. -- This library is free software; you can redistribute it and/or     -- 
  8. -- modify it under the terms of the GNU General Public               -- 
  9. -- License as published by the Free Software Foundation; either      -- 
  10. -- version 2 of the License, or (at your option) any later version.  -- 
  11. --                                                                   -- 
  12. -- This library is distributed in the hope that it will be useful,   -- 
  13. -- but WITHOUT ANY WARRANTY; without even the implied warranty of    -- 
  14. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU -- 
  15. -- General Public License for more details.                          -- 
  16. --                                                                   -- 
  17. -- You should have received a copy of the GNU General Public         -- 
  18. -- License along with this library; if not, write to the             -- 
  19. -- Free Software Foundation, Inc., 59 Temple Place - Suite 330,      -- 
  20. -- Boston, MA 02111-1307, USA.                                       -- 
  21. --                                                                   -- 
  22. -- As a special exception, if other files instantiate generics from  -- 
  23. -- this unit, or you link this unit with other files to produce an   -- 
  24. -- executable, this  unit  does not  by itself cause  the resulting  -- 
  25. -- executable to be covered by the GNU General Public License. This  -- 
  26. -- exception does not however invalidate any other reasons why the   -- 
  27. -- executable file  might be covered by the  GNU Public License.     -- 
  28. ----------------------------------------------------------------------- 
  29.  
  30. --  <description> 
  31. --  A Gtk_Border_Combo is a special kind of combo box that allows the 
  32. --  user to select the border to apply to cells in a spreadsheet. 
  33. --  Its main usage seems to be with a Gtk_Sheet. 
  34. --  </description> 
  35. --  <c_version>gtkextra 2.1.1</c_version> 
  36. --  <group>Selectors</group> 
  37.  
  38. with Gtk.Extra.Combo_Button; 
  39.  
  40. package Gtk.Extra.Border_Combo is 
  41.  
  42.    type Gtk_Border_Combo_Record is 
  43.      new Gtk.Extra.Combo_Button.Gtk_Combo_Button_Record with private; 
  44.    type Gtk_Border_Combo is access all Gtk_Border_Combo_Record'Class; 
  45.  
  46.    procedure Gtk_New (Widget : out Gtk_Border_Combo); 
  47.    --  Create a new border combo. 
  48.    --  The button contains the currently selected border. 
  49.  
  50.    procedure Initialize (Widget : access Gtk_Border_Combo_Record'Class); 
  51.    --  Internal initialization function. 
  52.    --  See the section "Creating your own widgets" in the documentation. 
  53.  
  54.    function Get_Type return Gtk.Gtk_Type; 
  55.    --  Return the internal value associated with a Gtk_Border_Combo. 
  56.  
  57.    ------------- 
  58.    -- Signals -- 
  59.    ------------- 
  60.  
  61.    --  <signals> 
  62.    --  The following new signals are defined for this widget: 
  63.    -- 
  64.    --  - "changed" 
  65.    --  procedure Handler (Combo : access Gtk_Border_Combo_Record'Class; 
  66.    --                     Selection : Gint); 
  67.    -- 
  68.    --  Emitted when a new font has been selected. 
  69.    --  Selection is the number of the selection font. 
  70.    --  </signals> 
  71. private 
  72.    type Gtk_Border_Combo_Record is 
  73.      new Gtk.Extra.Combo_Button.Gtk_Combo_Button_Record with null record; 
  74.    pragma Import (C, Get_Type, "gtk_border_combo_get_type"); 
  75. end Gtk.Extra.Border_Combo;