1. ----------------------------------------------------------------------- 
  2. --               GtkAda - Ada95 binding for Gtk+/Gnome               -- 
  3. --                                                                   -- 
  4. --                    Copyright (C) 2010, AdaCore                    -- 
  5. --                                                                   -- 
  6. -- This library is free software; you can redistribute it and/or     -- 
  7. -- modify it under the terms of the GNU General Public               -- 
  8. -- License as published by the Free Software Foundation; either      -- 
  9. -- version 2 of the License, or (at your option) any later version.  -- 
  10. --                                                                   -- 
  11. -- This library is distributed in the hope that it will be useful,   -- 
  12. -- but WITHOUT ANY WARRANTY; without even the implied warranty of    -- 
  13. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU -- 
  14. -- General Public License for more details.                          -- 
  15. --                                                                   -- 
  16. -- You should have received a copy of the GNU General Public         -- 
  17. -- License along with this library; if not, write to the             -- 
  18. -- Free Software Foundation, Inc., 59 Temple Place - Suite 330,      -- 
  19. -- Boston, MA 02111-1307, USA.                                       -- 
  20. --                                                                   -- 
  21. -- -- -- -- -- -- -- -- -- -- -- --
  22. ----------------------------------------------------------------------- 
  23.  
  24. --  <description> 
  25. --  Gtk_Recent_Chooser_Widget is a widget suitable for selecting recently used 
  26. --  files. It is the main building block of a Gtk_Recent_Chooser_Dialog. Most 
  27. --  applications will only need to use the latter; you can use 
  28. --  Gtk_Recent_Chooser_Widget as part of a larger window if you have special 
  29. --  needs. 
  30. -- 
  31. --  Note that Gtk_Recent_Chooser_Widget does not have any methods of its own. 
  32. --  Instead, you should use the functions that work on a Gtk_Recent_Chooser. 
  33. -- 
  34. --  Recently used files are supported since GTK+ 2.10. 
  35. --  </description> 
  36. --  <c_version>2.16.6</c_version> 
  37.  
  38. with Gtk.Box; 
  39. with Gtk.Recent_Manager; 
  40.  
  41. package Gtk.Recent_Chooser_Widget is 
  42.  
  43.    type Gtk_Recent_Chooser_Widget_Record is 
  44.      new Gtk.Box.Gtk_Vbox_Record with private; 
  45.    type Gtk_Recent_Chooser_Widget is 
  46.      access all Gtk_Recent_Chooser_Widget_Record'Class; 
  47.  
  48.    function Get_Type return GType; 
  49.  
  50.    procedure Gtk_New (Widget : out Gtk_Recent_Chooser_Widget); 
  51.    procedure Initialize 
  52.      (Widget : access Gtk_Recent_Chooser_Widget_Record'Class); 
  53.    --  Creates a new Gtk_Recent_Chooser_Widget object.  This is an embeddable 
  54.    --  widget used to access the recently used resources list. 
  55.  
  56.    procedure Gtk_New_For_Manager 
  57.      (Widget  : out Gtk_Recent_Chooser_Widget; 
  58.       Manager : access Gtk.Recent_Manager.Gtk_Recent_Manager_Record'Class); 
  59.    procedure Initialize_For_Manager 
  60.      (Widget  : access Gtk_Recent_Chooser_Widget_Record'Class; 
  61.       Manager : access Gtk.Recent_Manager.Gtk_Recent_Manager_Record'Class); 
  62.    --  Creates a new Gtk_Recent_Chooser_Widget with a specified recent manager. 
  63.    -- 
  64.    --  This is useful if you have implemented your own recent manager, or if 
  65.    --  you have a customized instance of a Gtk_Recent_Manager object. 
  66.  
  67. private 
  68.  
  69.    type Gtk_Recent_Chooser_Widget_Record is 
  70.      new Gtk.Box.Gtk_Vbox_Record with null record; 
  71.  
  72.    pragma Import (C, Get_Type, "gtk_recent_chooser_widget_get_type"); 
  73.  
  74. end Gtk.Recent_Chooser_Widget;