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_Dialog is a dialog box suitable for displaying the 
  31. --  recently used documents. This widgets works by putting a 
  32. --  Gtk_Recent_Chooser_Widget inside a Gtk_Dialog. It exposes the 
  33. --  Gtk_Recent_Chooser_Iface interface, so you can use all the 
  34. --  Gtk_Recent_Chooser functions on the recent chooser dialog as well as those 
  35. --  for Gtk_Dialog. 
  36. -- 
  37. --  Note that Gtk_Recent_Chooser_Dialog does not have any methods of its own. 
  38. --  Instead, you should use the functions that work on a Gtk_Recent_Chooser. 
  39. --  </description> 
  40. --  <c_version>2.16.6</c_version> 
  41.  
  42. with Gtk.Dialog; 
  43. with Gtk.Recent_Manager; 
  44. with Gtk.Window; 
  45.  
  46. package Gtk.Recent_Chooser_Dialog is 
  47.  
  48.    type Gtk_Recent_Chooser_Dialog_Record is 
  49.      new Gtk.Dialog.Gtk_Dialog_Record with private; 
  50.    type Gtk_Recent_Chooser_Dialog is 
  51.      access all Gtk_Recent_Chooser_Dialog_Record'Class; 
  52.  
  53.    function Get_Type return GType; 
  54.  
  55.    procedure Gtk_New 
  56.      (Widget : out Gtk_Recent_Chooser_Dialog; 
  57.       Title  : String; 
  58.       Parent : access Gtk.Window.Gtk_Window_Record'Class); 
  59.    procedure Initialize 
  60.      (Widget : access Gtk_Recent_Chooser_Dialog_Record'Class; 
  61.       Title  : String; 
  62.       Parent : access Gtk.Window.Gtk_Window_Record'Class); 
  63.    --  Creates a new Gtk_Recent_Chooser_Dialog. 
  64.    --  Use Gtk.Dialog.Add_Button to add button/response pairs to this widget. 
  65.  
  66.    procedure Gtk_New_For_Manager 
  67.      (Widget  : out Gtk_Recent_Chooser_Dialog; 
  68.       Title   : String; 
  69.       Parent  : access Gtk.Window.Gtk_Window_Record'Class; 
  70.       Manager : access Gtk.Recent_Manager.Gtk_Recent_Manager_Record'Class); 
  71.    procedure Initialize_For_Manager 
  72.      (Widget  : access Gtk_Recent_Chooser_Dialog_Record'Class; 
  73.       Title   : String; 
  74.       Parent  : access Gtk.Window.Gtk_Window_Record'Class; 
  75.       Manager : access Gtk.Recent_Manager.Gtk_Recent_Manager_Record'Class); 
  76.    --  Creates a new Gtk_Recent_Chooser_Dialog with a specified recent manager. 
  77.    --  Use Gtk.Dialog.Add_Button to add button/response pairs to this widget. 
  78.  
  79. private 
  80.  
  81.    type Gtk_Recent_Chooser_Dialog_Record is 
  82.      new Gtk.Dialog.Gtk_Dialog_Record with null record; 
  83.  
  84.    pragma Import (C, Get_Type, "gtk_recent_chooser_dialog_get_type"); 
  85.  
  86. end Gtk.Recent_Chooser_Dialog;