1. ----------------------------------------------------------------------- 
  2. --               GtkAda - Ada95 binding for Gtk+/Gnome               -- 
  3. --                                                                   -- 
  4. --   Copyright (C) 1998-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. -- -- -- -- -- -- -- -- -- -- -- --
  23. ----------------------------------------------------------------------- 
  24.  
  25. --  <description> 
  26. --  This package contains a special type of menu item, which is displayed as 
  27. --  a hashed line, and which is used to tear off a menu (ie detach it from the 
  28. --  menu bar, and into its own toplevel window, so that the user can keep it 
  29. --  visible at all time). 
  30. --  </description> 
  31. --  <c_version>2.8.17</c_version> 
  32. --  <group>Menus and Toolbars</group> 
  33.  
  34. with Gtk.Menu_Item; 
  35.  
  36. package Gtk.Tearoff_Menu_Item is 
  37.  
  38.    type Gtk_Tearoff_Menu_Item_Record is 
  39.      new Menu_Item.Gtk_Menu_Item_Record with private; 
  40.    type Gtk_Tearoff_Menu_Item is access all Gtk_Tearoff_Menu_Item_Record'Class; 
  41.  
  42.    procedure Gtk_New (Menu_Item : out Gtk_Tearoff_Menu_Item); 
  43.    procedure Initialize 
  44.      (Menu_Item : access Gtk_Tearoff_Menu_Item_Record'Class); 
  45.    --  Creates or Initializes a menu item 
  46.  
  47.    function Get_Type return Gtk.Gtk_Type; 
  48.    --  Return the internal value associated with a Gtk_Tearoff_Menu_Item. 
  49.  
  50.    ---------------- 
  51.    -- Properties -- 
  52.    ---------------- 
  53.  
  54.    --  <properties> 
  55.    --  The following properties are defined for this widget. See 
  56.    --  Glib.Properties for more information on properties. 
  57.    -- 
  58.    --  </properties> 
  59.  
  60. private 
  61.    type Gtk_Tearoff_Menu_Item_Record is new Menu_Item.Gtk_Menu_Item_Record 
  62.      with null record; 
  63.  
  64.    pragma Import (C, Get_Type, "gtk_tearoff_menu_item_get_type"); 
  65. end Gtk.Tearoff_Menu_Item;