This file is indexed.

/usr/share/ada/adainclude/gtkada/gtk-stock.ads is in libgtkada16.1.0-dev 17.0.2017-2.

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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
------------------------------------------------------------------------------
--                                                                          --
--      Copyright (C) 1998-2000 E. Briot, J. Brobecker and A. Charlet       --
--                     Copyright (C) 2000-2017, AdaCore                     --
--                                                                          --
-- This library is free software;  you can redistribute it and/or modify it --
-- under terms of the  GNU General Public License  as published by the Free --
-- Software  Foundation;  either version 3,  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 MERCHAN- --
-- TABILITY or FITNESS FOR A PARTICULAR PURPOSE.                            --
--                                                                          --
--                                                                          --
--                                                                          --
--                                                                          --
--                                                                          --
-- You should have received a copy of the GNU General Public License and    --
-- a copy of the GCC Runtime Library Exception along with this program;     --
-- see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    --
-- <http://www.gnu.org/licenses/>.                                          --
--                                                                          --
------------------------------------------------------------------------------

pragma Ada_2005;

pragma Warnings (Off, "*is already use-visible*");
with Gdk.Types;            use Gdk.Types;
with Interfaces.C.Strings; use Interfaces.C.Strings;

package Gtk.Stock is

   Stock_About : constant UTF8_String := "gtk-about";
   Stock_Add : constant UTF8_String := "gtk-add";
   Stock_Apply : constant UTF8_String := "gtk-apply";
   Stock_Bold : constant UTF8_String := "gtk-bold";
   Stock_Cancel : constant UTF8_String := "gtk-cancel";
   Stock_Caps_Lock_Warning : constant UTF8_String := "gtk-caps-lock-warning";
   Stock_Cdrom : constant UTF8_String := "gtk-cdrom";
   Stock_Clear : constant UTF8_String := "gtk-clear";
   Stock_Close : constant UTF8_String := "gtk-close";
   Stock_Color_Picker : constant UTF8_String := "gtk-color-picker";
   Stock_Connect : constant UTF8_String := "gtk-connect";
   Stock_Convert : constant UTF8_String := "gtk-convert";
   Stock_Copy : constant UTF8_String := "gtk-copy";
   Stock_Cut : constant UTF8_String := "gtk-cut";
   Stock_Delete : constant UTF8_String := "gtk-delete";
   Stock_Dialog_Authentication : constant UTF8_String := "gtk-dialog-authentication";
   Stock_Dialog_Error : constant UTF8_String := "gtk-dialog-error";
   Stock_Dialog_Info : constant UTF8_String := "gtk-dialog-info";
   Stock_Dialog_Question : constant UTF8_String := "gtk-dialog-question";
   Stock_Dialog_Warning : constant UTF8_String := "gtk-dialog-warning";
   Stock_Directory : constant UTF8_String := "gtk-directory";
   Stock_Discard : constant UTF8_String := "gtk-discard";
   Stock_Disconnect : constant UTF8_String := "gtk-disconnect";
   Stock_Dnd : constant UTF8_String := "gtk-dnd";
   Stock_Dnd_Multiple : constant UTF8_String := "gtk-dnd-multiple";
   Stock_Edit : constant UTF8_String := "gtk-edit";
   Stock_Execute : constant UTF8_String := "gtk-execute";
   Stock_File : constant UTF8_String := "gtk-file";
   Stock_Find : constant UTF8_String := "gtk-find";
   Stock_Find_And_Replace : constant UTF8_String := "gtk-find-and-replace";
   Stock_Floppy : constant UTF8_String := "gtk-floppy";
   Stock_Fullscreen : constant UTF8_String := "gtk-fullscreen";
   Stock_Go_Back : constant UTF8_String := "gtk-go-back";
   Stock_Go_Down : constant UTF8_String := "gtk-go-down";
   Stock_Go_Forward : constant UTF8_String := "gtk-go-forward";
   Stock_Go_Up : constant UTF8_String := "gtk-go-up";
   Stock_Goto_Bottom : constant UTF8_String := "gtk-goto-bottom";
   Stock_Goto_First : constant UTF8_String := "gtk-goto-first";
   Stock_Goto_Last : constant UTF8_String := "gtk-goto-last";
   Stock_Goto_Top : constant UTF8_String := "gtk-goto-top";
   Stock_Harddisk : constant UTF8_String := "gtk-harddisk";
   Stock_Help : constant UTF8_String := "gtk-help";
   Stock_Home : constant UTF8_String := "gtk-home";
   Stock_Indent : constant UTF8_String := "gtk-indent";
   Stock_Index : constant UTF8_String := "gtk-index";
   Stock_Info : constant UTF8_String := "gtk-info";
   Stock_Italic : constant UTF8_String := "gtk-italic";
   Stock_Jump_To : constant UTF8_String := "gtk-jump-to";
   Stock_Justify_Center : constant UTF8_String := "gtk-justify-center";
   Stock_Justify_Fill : constant UTF8_String := "gtk-justify-fill";
   Stock_Justify_Left : constant UTF8_String := "gtk-justify-left";
   Stock_Justify_Right : constant UTF8_String := "gtk-justify-right";
   Stock_Leave_Fullscreen : constant UTF8_String := "gtk-leave-fullscreen";
   Stock_Media_Forward : constant UTF8_String := "gtk-media-forward";
   Stock_Media_Next : constant UTF8_String := "gtk-media-next";
   Stock_Media_Pause : constant UTF8_String := "gtk-media-pause";
   Stock_Media_Play : constant UTF8_String := "gtk-media-play";
   Stock_Media_Previous : constant UTF8_String := "gtk-media-previous";
   Stock_Media_Record : constant UTF8_String := "gtk-media-record";
   Stock_Media_Rewind : constant UTF8_String := "gtk-media-rewind";
   Stock_Media_Stop : constant UTF8_String := "gtk-media-stop";
   Stock_Missing_Image : constant UTF8_String := "gtk-missing-image";
   Stock_Network : constant UTF8_String := "gtk-network";
   Stock_New : constant UTF8_String := "gtk-new";
   Stock_No : constant UTF8_String := "gtk-no";
   Stock_Ok : constant UTF8_String := "gtk-ok";
   Stock_Open : constant UTF8_String := "gtk-open";
   Stock_Orientation_Landscape : constant UTF8_String := "gtk-orientation-landscape";
   Stock_Orientation_Portrait : constant UTF8_String := "gtk-orientation-portrait";
   Stock_Orientation_Reverse_Landscape : constant UTF8_String := "gtk-orientation-reverse-landscape";
   Stock_Orientation_Reverse_Portrait : constant UTF8_String := "gtk-orientation-reverse-portrait";
   Stock_Page_Setup : constant UTF8_String := "gtk-page-setup";
   Stock_Paste : constant UTF8_String := "gtk-paste";
   Stock_Preferences : constant UTF8_String := "gtk-preferences";
   Stock_Print : constant UTF8_String := "gtk-print";
   Stock_Print_Error : constant UTF8_String := "gtk-print-error";
   Stock_Print_Paused : constant UTF8_String := "gtk-print-paused";
   Stock_Print_Preview : constant UTF8_String := "gtk-print-preview";
   Stock_Print_Report : constant UTF8_String := "gtk-print-report";
   Stock_Print_Warning : constant UTF8_String := "gtk-print-warning";
   Stock_Properties : constant UTF8_String := "gtk-properties";
   Stock_Quit : constant UTF8_String := "gtk-quit";
   Stock_Redo : constant UTF8_String := "gtk-redo";
   Stock_Refresh : constant UTF8_String := "gtk-refresh";
   Stock_Remove : constant UTF8_String := "gtk-remove";
   Stock_Revert_To_Saved : constant UTF8_String := "gtk-revert-to-saved";
   Stock_Save : constant UTF8_String := "gtk-save";
   Stock_Save_As : constant UTF8_String := "gtk-save-as";
   Stock_Select_All : constant UTF8_String := "gtk-select-all";
   Stock_Select_Color : constant UTF8_String := "gtk-select-color";
   Stock_Select_Font : constant UTF8_String := "gtk-select-font";
   Stock_Sort_Ascending : constant UTF8_String := "gtk-sort-ascending";
   Stock_Sort_Descending : constant UTF8_String := "gtk-sort-descending";
   Stock_Spell_Check : constant UTF8_String := "gtk-spell-check";
   Stock_Stop : constant UTF8_String := "gtk-stop";
   Stock_Strikethrough : constant UTF8_String := "gtk-strikethrough";
   Stock_Undelete : constant UTF8_String := "gtk-undelete";
   Stock_Underline : constant UTF8_String := "gtk-underline";
   Stock_Undo : constant UTF8_String := "gtk-undo";
   Stock_Unindent : constant UTF8_String := "gtk-unindent";
   Stock_Yes : constant UTF8_String := "gtk-yes";
   Stock_Zoom_100 : constant UTF8_String := "gtk-zoom-100";
   Stock_Zoom_Fit : constant UTF8_String := "gtk-zoom-fit";
   Stock_Zoom_In : constant UTF8_String := "gtk-zoom-in";
   Stock_Zoom_Out : constant UTF8_String := "gtk-zoom-out";

   type Gtk_Stock_Item is private;
   function From_Object_Free (B : access Gtk_Stock_Item) return Gtk_Stock_Item;
   pragma Inline (From_Object_Free);


   type Gtk_Stock_Item_Array is array (Natural range <>) of Gtk_Stock_Item;

   -------------
   -- Methods --
   -------------

   function Copy (Self : Gtk_Stock_Item) return Gtk_Stock_Item;
   pragma Import (C, Copy, "gtk_stock_item_copy");
   pragma Obsolescent (Copy);
   --  Copies a stock item, mostly useful for language bindings and not in
   --  applications.
   --  Deprecated since 3.10, 1

   ----------------------
   -- GtkAda additions --
   ----------------------

   procedure Gtk_New
     (Item               : out Gtk_Stock_Item;
      Stock_Id           : String;
      Label              : UTF8_String;
      Modifier           : Gdk.Types.Gdk_Modifier_Type;
      Keyval             : Gdk.Types.Gdk_Key_Type;
      Translation_Domain : String);
   --  Create a new stock item.

   procedure Free (Item : in out Gtk_Stock_Item);
   --  Free memory allocated in Item.

   procedure Add (Item : Gtk_Stock_Item);
   --  Register Item.
   --  If an item already exists with the same stock ID as one of the items,
   --  the old item gets replaced. The stock item is copied, so GtkAda does
   --  not hold any pointer into item and item can be freed. Use
   --  Add_Static if item is persistent and GtkAda need not copy the array.

   ---------------
   -- Functions --
   ---------------

   procedure Add (Items : Gtk_Stock_Item_Array);
   pragma Obsolescent (Add);
   --  Registers each of the stock items in Items. If an item already exists
   --  with the same stock ID as one of the Items, the old item gets replaced.
   --  The stock items are copied, so GTK+ does not hold any pointer into Items
   --  and Items can be freed. Use Gtk.Stock.Add_Static if Items is persistent
   --  and GTK+ need not copy the array.
   --  Deprecated since 3.10, 1
   --  "items": a Gtk.Stock.Gtk_Stock_Item or array of items

   procedure Add_Static (Items : Gtk_Stock_Item_Array);
   pragma Obsolescent (Add_Static);
   --  Same as Gtk.Stock.Add, but doesn't copy Items, so Items must persist
   --  until application exit.
   --  Deprecated since 3.10, 1
   --  "items": a Gtk.Stock.Gtk_Stock_Item or array of
   --  Gtk.Stock.Gtk_Stock_Item

   procedure Lookup
      (Stock_Id : UTF8_String;
       Item     : out Gtk_Stock_Item;
       Success  : out Boolean);
   pragma Obsolescent (Lookup);
   --  Fills Item with the registered values for Stock_Id, returning True if
   --  Stock_Id was known.
   --  Deprecated since 3.10, 1
   --  "stock_id": a stock item name
   --  "item": stock item to initialize with values

private
type Gtk_Stock_Item is record
   Stock_Id : Interfaces.C.Strings.chars_ptr;
   Label : Interfaces.C.Strings.chars_ptr;
   Modifier : Gdk.Types.Gdk_Modifier_Type;
   Keyval : Guint;
   Translation_Domain : Interfaces.C.Strings.chars_ptr;
end record;
pragma Convention (C, Gtk_Stock_Item);

end Gtk.Stock;