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-2007 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. --  <c_version>2.8.17</c_version> 
  31. --  <group>Obsolescent widgets</group> 
  32.  
  33. with Gtk.Item; 
  34.  
  35. package Gtk.List_Item is 
  36.    pragma Obsolescent; 
  37.  
  38.    type Gtk_List_Item_Record is new Gtk.Item.Gtk_Item_Record with private; 
  39.    type Gtk_List_Item is access all Gtk_List_Item_Record'Class; 
  40.  
  41.    procedure Gtk_New 
  42.      (List_Item : out Gtk_List_Item; 
  43.       Label     : UTF8_String := ""); 
  44.    procedure Initialize 
  45.      (List_Item : access Gtk_List_Item_Record'Class; 
  46.       Label     : UTF8_String := ""); 
  47.    --  Creates or initializes a new list item 
  48.  
  49.    function Get_Type return Gtk.Gtk_Type; 
  50.    --  Return the internal value associated with a Gtk_List_Item. 
  51.  
  52.    procedure Gtk_Select (List_Item : access Gtk_List_Item_Record); 
  53.  
  54.    procedure Deselect (List_Item : access Gtk_List_Item_Record); 
  55.  
  56.    ------------- 
  57.    -- Signals -- 
  58.    ------------- 
  59.  
  60.    --  <signals> 
  61.    --  The following new signals are defined for this widget: 
  62.    -- 
  63.    --  </signals> 
  64.  
  65.    Signal_End_Selection     : constant Glib.Signal_Name := "end_selection"; 
  66.    Signal_Extend_Selection  : constant Glib.Signal_Name := "extend_selection"; 
  67.    Signal_Scroll_Horizontal : constant Glib.Signal_Name := "scroll_horizontal"; 
  68.    Signal_Scroll_Vertical   : constant Glib.Signal_Name := "scroll_vertical"; 
  69.    Signal_Select_All        : constant Glib.Signal_Name := "select_all"; 
  70.    Signal_Start_Selection   : constant Glib.Signal_Name := "start_selection"; 
  71.    Signal_Toggle_Add_Mode   : constant Glib.Signal_Name := "toggle_add_mode"; 
  72.    Signal_Toggle_Focus_Row  : constant Glib.Signal_Name := "toggle_focus_row"; 
  73.    Signal_Undo_Selection    : constant Glib.Signal_Name := "undo_selection"; 
  74.    Signal_Unselect_All      : constant Glib.Signal_Name := "unselect_all"; 
  75.  
  76. private 
  77.    type Gtk_List_Item_Record is new Gtk.Item.Gtk_Item_Record with null record; 
  78.  
  79.    pragma Import (C, Get_Type, "gtk_list_item_get_type"); 
  80. end Gtk.List_Item; 
  81.  
  82. --  The following subprogram never had a binding, and is now obsolescent: 
  83. --  No binding: gtk_list_item_new