1. ----------------------------------------------------------------------- 
  2. --               GtkAda - Ada95 binding for Gtk+/Gnome               -- 
  3. --                                                                   -- 
  4. --                    Copyright (C) 2010-2013, 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. -- As a special exception, if other files instantiate generics from  -- 
  22. -- this unit, or you link this unit with other files to produce an   -- 
  23. -- executable, this  unit  does not  by itself cause  the resulting  -- 
  24. -- executable to be covered by the GNU General Public License. This  -- 
  25. -- exception does not however invalidate any other reasons why the   -- 
  26. -- executable file  might be covered by the  GNU Public License.     -- 
  27. ----------------------------------------------------------------------- 
  28.  
  29. --  <description> 
  30. --  Gtk_Recent_Chooser_Widget is a widget suitable for selecting recently used 
  31. --  files. It is the main building block of a Gtk_Recent_Chooser_Dialog. Most 
  32. --  applications will only need to use the latter; you can use 
  33. --  Gtk_Recent_Chooser_Widget as part of a larger window if you have special 
  34. --  needs. 
  35. -- 
  36. --  Note that Gtk_Recent_Chooser_Widget does not have any methods of its own. 
  37. --  Instead, you should use the functions that work on a Gtk_Recent_Chooser. 
  38. -- 
  39. --  Recently used files are supported since GTK+ 2.10. 
  40. --  </description> 
  41. --  <c_version>2.16.6</c_version> 
  42.  
  43. with Gtk.Box; 
  44. with Gtk.Recent_Manager; 
  45.  
  46. package Gtk.Recent_Chooser_Widget is 
  47.  
  48.    type Gtk_Recent_Chooser_Widget_Record is 
  49.      new Gtk.Box.Gtk_Vbox_Record with private; 
  50.    type Gtk_Recent_Chooser_Widget is 
  51.      access all Gtk_Recent_Chooser_Widget_Record'Class; 
  52.  
  53.    function Get_Type return GType; 
  54.  
  55.    procedure Gtk_New (Widget : out Gtk_Recent_Chooser_Widget); 
  56.    procedure Initialize 
  57.      (Widget : access Gtk_Recent_Chooser_Widget_Record'Class); 
  58.    --  Creates a new Gtk_Recent_Chooser_Widget object.  This is an embeddable 
  59.    --  widget used to access the recently used resources list. 
  60.  
  61.    procedure Gtk_New_For_Manager 
  62.      (Widget  : out Gtk_Recent_Chooser_Widget; 
  63.       Manager : access Gtk.Recent_Manager.Gtk_Recent_Manager_Record'Class); 
  64.    procedure Initialize_For_Manager 
  65.      (Widget  : access Gtk_Recent_Chooser_Widget_Record'Class; 
  66.       Manager : access Gtk.Recent_Manager.Gtk_Recent_Manager_Record'Class); 
  67.    --  Creates a new Gtk_Recent_Chooser_Widget with a specified recent manager. 
  68.    -- 
  69.    --  This is useful if you have implemented your own recent manager, or if 
  70.    --  you have a customized instance of a Gtk_Recent_Manager object. 
  71.  
  72. private 
  73.  
  74.    type Gtk_Recent_Chooser_Widget_Record is 
  75.      new Gtk.Box.Gtk_Vbox_Record with null record; 
  76.  
  77.    pragma Import (C, Get_Type, "gtk_recent_chooser_widget_get_type"); 
  78.  
  79. end Gtk.Recent_Chooser_Widget;