This file is indexed.

/usr/share/ada/adainclude/gnomeada/bonobo-dock.adb is in libgnomeada2.24.1-dev 2.24.1-14.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
-----------------------------------------------------------------------
--              GtkAda - Ada95 binding for Gtk+/Gnome                --
--                                                                   --
--                  Copyright (C) 2001-2006                          --
--                         AdaCore                                   --
--                                                                   --
-- This library is free software; you can redistribute it and/or     --
-- modify it under the terms of the GNU General Public               --
-- License as published by the Free Software Foundation; either      --
-- version 2 of the License, or (at your option) any later version.  --
--                                                                   --
-- This library is distributed in the hope that it will be useful,   --
-- but WITHOUT ANY WARRANTY; without even the implied warranty of    --
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU --
-- General Public License for more details.                          --
--                                                                   --
-- You should have received a copy of the GNU General Public         --
-- License along with this library; if not, write to the             --
-- Free Software Foundation, Inc., 59 Temple Place - Suite 330,      --
-- Boston, MA 02111-1307, USA.                                       --
--                                                                   --
-----------------------------------------------------------------------

with System;

with Gtk.Widget; use Gtk.Widget;

package body Bonobo.Dock is

   ---------------
   -- Bonobo_New --
   ---------------

   procedure Bonobo_New (Widget : out Bonobo_Dock) is
   begin
      Widget := new Bonobo_Dock_Record;
      Bonobo.Dock.Initialize (Widget);
   end Bonobo_New;

   ----------------
   -- Initialize --
   ----------------

   procedure Initialize (Widget : access Bonobo_Dock_Record'Class) is
      function Internal return System.Address;
      pragma Import (C, Internal, "bonobo_dock_new");
   begin
      Set_Object (Widget, Internal);
   end Initialize;

   -----------------------
   -- Add_Floating_Item --
   -----------------------

   procedure Add_Floating_Item
     (Dock        : access Bonobo_Dock_Record;
      Widget      : access Bonobo_Dock_Item_Record;
      X           : Gint;
      Y           : Gint;
      Orientation : Gtk_Orientation)
   is
      procedure Internal
        (Dock        : System.Address;
         Widget      : System.Address;
         X           : Gint;
         Y           : Gint;
         Orientation : Gint);
      pragma Import (C, Internal, "bonobo_dock_add_floating_item");
   begin
      Internal (Get_Object (Dock),
                Get_Object (Widget),
                X,
                Y,
                Gtk_Orientation'Pos (Orientation));
   end Add_Floating_Item;

   --------------
   -- Add_Item --
   --------------

   procedure Add_Item
     (Dock        : access Bonobo_Dock_Record;
      Item        : access Bonobo_Dock_Item_Record;
      Placement   : Bonobo_Dock_Placement;
      Band_Num    : Guint;
      Position    : Gint;
      Offset      : Guint;
      In_New_Band : Boolean)
   is
      procedure Internal
        (Dock        : System.Address;
         Item        : System.Address;
         Placement   : Gint;
         Band_Num    : Guint;
         Position    : Gint;
         Offset      : Guint;
         In_New_Band : Gint);
      pragma Import (C, Internal, "bonobo_dock_add_item");
   begin
      Internal (Get_Object (Dock),
                Get_Object (Item),
                Bonobo_Dock_Placement'Pos (Placement),
                Band_Num,
                Position,
                Offset,
                Boolean'Pos (In_New_Band));
   end Add_Item;

   --------------------------
   -- Allow_Floating_Items --
   --------------------------

   procedure Allow_Floating_Items
     (Dock   : access Bonobo_Dock_Record;
      Enable : Boolean)
   is
      procedure Internal
        (Dock   : System.Address;
         Enable : Gint);
      pragma Import (C, Internal, "bonobo_dock_allow_floating_items");
   begin
      Internal (Get_Object (Dock),
                Boolean'Pos (Enable));
   end Allow_Floating_Items;

   ---------------------
   -- Get_Client_Area --
   ---------------------

   function Get_Client_Area (Dock   : access Bonobo_Dock_Record)
                             return Gtk.Widget.Gtk_Widget
   is
      function Internal (Dock   : System.Address)
                         return System.Address;
      pragma Import (C, Internal, "bonobo_dock_get_client_area");
   begin
      return Convert (Internal (Get_Object (Dock)));
   end Get_Client_Area;

   ----------------------
   -- Get_Item_By_Name --
   ----------------------

   procedure Get_Item_By_Name
     (Dock                 : access Bonobo_Dock_Record;
      Name                 : String;
      Placement            : out Bonobo_Dock_Placement;
      Num_Band             : out Guint;
      Band_Position        : out Guint;
      Offset               : out Guint;
      Dock_Item            : out Bonobo_Dock_Item)
   is
      function Internal
        (Dock                 : System.Address;
         Name                 : String;
         Placement_Return     : access Bonobo_Dock_Placement;
         Num_Band_Return      : access Guint;
         Band_Position_Return : access Guint;
         Offset_Return        : access Guint)
         return System.Address;
      pragma Import (C, Internal, "bonobo_dock_get_item_by_name");

      Local_Placement     : aliased Bonobo_Dock_Placement;
      Local_Num_Band      : aliased Guint;
      Local_Band_Position : aliased Guint;
      Local_Offset        : aliased Guint;
      Stub                : Bonobo_Dock_Item_Record;

   begin
      Dock_Item := Bonobo_Dock_Item (Get_User_Data (Internal
        (Get_Object (Dock),
         Name & ASCII.NUL,
         Local_Placement'Unchecked_Access,
         Local_Num_Band'Unchecked_Access,
         Local_Band_Position'Unchecked_Access,
         Local_Offset'Unchecked_Access), Stub));
      Placement := Local_Placement;
      Num_Band  := Local_Num_Band;
      Band_Position := Local_Band_Position;
      Offset    := Local_Offset;
   end Get_Item_By_Name;

   ---------------------
   -- Set_Client_Area --
   ---------------------

   procedure Set_Client_Area
     (Dock   : access Bonobo_Dock_Record;
      Widget : access Gtk.Widget.Gtk_Widget_Record'Class)
   is
      procedure Internal
        (Dock   : System.Address;
         Widget : System.Address);
      pragma Import (C, Internal, "bonobo_dock_set_client_area");
   begin
      Internal (Get_Object (Dock),
                Get_Object (Widget));
   end Set_Client_Area;

end Bonobo.Dock;