This file is indexed.

/usr/share/ada/adainclude/gnomeada/gnome-gentry.adb is in libgnomeada2.24.4-dev 2.24.4dfsg-1.

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
-----------------------------------------------------------------------
--              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 Gtk.Widget; use Gtk.Widget;
with Gtk; use Gtk;
with System;

package body Gnome.GEntry is

   ---------------
   -- Gnome_New --
   ---------------

   procedure Gnome_New
     (Widget     : out Gnome_GEntry;
      History_Id : String) is
   begin
      Widget := new Gnome_GEntry_Record;
      Initialize (Widget, History_Id);
   end Gnome_New;

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

   procedure Initialize
     (Widget     : access Gnome_GEntry_Record'Class;
      History_Id : String)
   is
      function Internal (History_Id : String) return System.Address;
      pragma Import (C, Internal, "gnome_entry_new");
   begin
      Set_Object (Widget, Internal (History_Id & ASCII.NUL));
   end Initialize;

   --------------------------
   -- Entry_Append_History --
   --------------------------

   procedure Entry_Append_History
     (Gentry : access Gnome_GEntry_Record;
      Save   : Gint;
      Text   : String)
   is
      procedure Internal
        (Gentry : System.Address;
         Save   : Gint;
         Text   : String);
      pragma Import (C, Internal, "gnome_entry_append_history");
   begin
      Internal (Get_Object (Gentry),
                Save,
                Text & ASCII.NUL);
   end Entry_Append_History;

   ---------------------
   -- Entry_Gtk_Entry --
   ---------------------

   function Entry_Gtk_Entry (Gentry : access Gnome_GEntry_Record)
                             return Gtk.Widget.Gtk_Widget
   is
      function Internal (Gentry : System.Address)
                         return System.Address;
      pragma Import (C, Internal, "gnome_entry_gtk_entry");
   begin
      return Widget.Convert (Internal (Get_Object (Gentry)));
   end Entry_Gtk_Entry;

   ---------------------------
   -- Entry_Prepend_History --
   ---------------------------

   procedure Entry_Prepend_History
     (Gentry : access Gnome_GEntry_Record;
      Save   : Gint;
      Text   : String)
   is
      procedure Internal
        (Gentry : System.Address;
         Save   : Gint;
         Text   : String);
      pragma Import (C, Internal, "gnome_entry_prepend_history");
   begin
      Internal (Get_Object (Gentry),
                Save,
                Text & ASCII.NUL);
   end Entry_Prepend_History;

   --------------------------
   -- Entry_Set_History_Id --
   --------------------------

   procedure Entry_Set_History_Id
     (Gentry     : access Gnome_GEntry_Record;
      History_Id : String)
   is
      procedure Internal
        (Gentry     : System.Address;
         History_Id : String);
      pragma Import (C, Internal, "gnome_entry_set_history_id");
   begin
      Internal (Get_Object (Gentry),
                History_Id & ASCII.NUL);
   end Entry_Set_History_Id;

   -------------------------
   -- Entry_Set_Max_Saved --
   -------------------------

   procedure Entry_Set_Max_Saved
     (Gentry    : access Gnome_GEntry_Record;
      Max_Saved : Guint)
   is
      procedure Internal
        (Gentry    : System.Address;
         Max_Saved : Guint);
      pragma Import (C, Internal, "gnome_entry_set_max_saved");
   begin
      Internal (Get_Object (Gentry),
                Max_Saved);
   end Entry_Set_Max_Saved;

end Gnome.GEntry;