/usr/share/ada/adainclude/gnomeada/gnome-dialog.ads 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 145 146 147 148 149 150 151 152 153 154 155 | -----------------------------------------------------------------------
-- GtkAda - Ada95 binding for the Gimp Toolkit --
-- --
-- Copyright (C) 2000 Helix Code, Inc. --
-- Copyright (C) 2000-2001 ACT-Europe --
-- --
-- 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.Window;
with Gtk.Editable;
with Gdk.Types;
with Glib; use Glib;
with Gtkada.Types; use Gtkada.Types;
package Gnome.Dialog is
type Gnome_Dialog_Record is new Gtk.Window.Gtk_Window_Record
with private;
type Gnome_Dialog is access all Gnome_Dialog_Record'Class;
procedure Gnome_New
(Dialog : out Gnome_Dialog;
Title : String;
Buttons : Chars_Ptr_Array);
-- Create a new Gnome_Dialog
procedure Initialize
(Dialog : access Gnome_Dialog_Record'Class;
Title : String;
Buttons : Chars_Ptr_Array);
-- Internal initialization function
function Get_Type return Gtk.Gtk_Type;
-- Return the internal value associated with a Gnome_Dialog
procedure Append_Button
(Dialog : access Gnome_Dialog_Record;
Name : String);
-- Append button to dialog (meant for subclasses)
procedure Append_Button
(Dialog : access Gnome_Dialog_Record;
Name : String;
Pixmap : String);
-- Append button with pixmap
procedure Append_Buttons
(Dialog : access Gnome_Dialog_Record;
Buttons : Chars_Ptr_Array);
procedure Append_Buttons
(Dialog : access Gnome_Dialog_Record;
Names : Chars_Ptr_Array;
Pixmaps : Chars_Ptr_Array);
-- procedure Button_Connect
-- (Dialog : access Gnome_Dialog_Record;
-- Button : Gint;
-- Callback : Gtk_Signal_Func;
-- Data : gpointer);
-- procedure Button_Connect_Object
-- (Dialog : access Gnome_Dialog_Record;
-- Button : Gint;
-- Callback : Gtk_Signal_Func;
-- Obj : access Object_Record'Class);
procedure Close (Dialog : access Gnome_Dialog_Record);
-- Close this dialog
procedure Close_Hides
(Dialog : access Gnome_Dialog_Record;
Just_Hide : Boolean);
-- Set whether close hides or destroys
procedure Editable_Enters
(Dialog : access Gnome_Dialog_Record;
Editable : access Gtk.Editable.Gtk_Editable_Record'Class);
-- Connect activate signal from editable to return
procedure Grab_Focus
(Dialog : access Gnome_Dialog_Record;
Button : Gint);
function Run (Dialog : access Gnome_Dialog_Record) return Gint;
function Run_And_Close (Dialog : access Gnome_Dialog_Record) return Gint;
-- Runs this dialog box, and return button # pressed
procedure Set_Accelerator
(Dialog : access Gnome_Dialog_Record;
Button : Gint;
Accel_Key : Gdk.Types.Gdk_Key_Type;
Accel_Mods : Gdk.Types.Gdk_Modifier_Type);
-- Set accelerators for a button
procedure Set_Close
(Dialog : access Gnome_Dialog_Record;
Click_Closes : Boolean);
-- Whether to close after emitting clicked signal
procedure Set_Default
(Dialog : access Gnome_Dialog_Record;
Button : Gint);
-- Set the default dialog button
procedure Set_Parent
(Dialog : access Gnome_Dialog_Record;
Parent : access Gtk.Window.Gtk_Window_Record'Class);
-- Set the parent over which this dialog can be centered.
procedure Set_Sensitive
(Dialog : access Gnome_Dialog_Record;
Button : Gint;
Setting : Boolean);
-- Set button sensitivity
-------------
-- Signals --
-------------
-- <signals>
-- The following new signals are defined for this widget:
--
-- - "clicked"
-- procedure Handler
-- (Widget : access Gnome_Dialog_Record'Class;
-- Button_Number : Gint)
--
-- - "close"
-- function Handler
-- (Widget : access Gnome_Dialog_Record'Class) return Boolean
--
-- </signals>
private
type Gnome_Dialog_Record is new Gtk.Window.Gtk_Window_Record
with null record;
pragma Import (C, Get_Type, "gnome_dialog_get_type");
end Gnome.Dialog;
|