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