1. ------------------------------------------------------------------------------ 
  2. --                  GtkAda - Ada95 binding for Gtk+/Gnome                   -- 
  3. --                                                                          -- 
  4. --                     Copyright (C) 2008-2014, AdaCore                     -- 
  5. --                                                                          -- 
  6. -- This library is free software;  you can redistribute it and/or modify it -- 
  7. -- under terms of the  GNU General Public License  as published by the Free -- 
  8. -- Software  Foundation;  either version 3,  or (at your  option) any later -- 
  9. -- version. This library is distributed in the hope that it will be useful, -- 
  10. -- but WITHOUT ANY WARRANTY;  without even the implied warranty of MERCHAN- -- 
  11. -- TABILITY or FITNESS FOR A PARTICULAR PURPOSE.                            -- 
  12. --                                                                          -- 
  13. -- As a special exception under Section 7 of GPL version 3, you are granted -- 
  14. -- additional permissions described in the GCC Runtime Library Exception,   -- 
  15. -- version 3.1, as published by the Free Software Foundation.               -- 
  16. --                                                                          -- 
  17. -- You should have received a copy of the GNU General Public License and    -- 
  18. -- a copy of the GCC Runtime Library Exception along with this program;     -- 
  19. -- see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    -- 
  20. -- <http://www.gnu.org/licenses/>.                                          -- 
  21. --                                                                          -- 
  22. ------------------------------------------------------------------------------ 
  23.  
  24. with Gdk.Display;  use Gdk.Display; 
  25.  
  26. package Gdk.Display_Manager is 
  27.  
  28.    type Display_Manager is new Glib.C_Proxy; 
  29.  
  30.    function Display_Manager_Get return Display_Manager; 
  31.    --  Return the global Display Manager. 
  32.    --  This function must be called after the initial call to Gtk.Main.Init. 
  33.  
  34.    procedure Set_Default_Display 
  35.      (Manager : Display_Manager; 
  36.       Display : Gdk_Display); 
  37.    --  Set Display as the default display. 
  38.  
  39. private 
  40.    pragma Import (C, Display_Manager_Get, "gdk_display_manager_get"); 
  41.  
  42. end Gdk.Display_Manager;