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