Skip to content

Commit 7860b85

Browse files
S312-013: Adapt to new 'non initialized aggregate' warning
Change-Id: I1b66d97681bacd4ea475b45e43244037f2d35932
1 parent 300690d commit 7860b85

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/gtkada-canvas_view.ads

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
-- GtkAda - Ada95 binding for Gtk+/Gnome --
33
-- --
44
-- Copyright (C) 1998-2000 E. Briot, J. Brobecker and A. Charlet --
5-
-- Copyright (C) 1998-2018, AdaCore --
5+
-- Copyright (C) 1998-2020, AdaCore --
66
-- --
77
-- This library is free software; you can redistribute it and/or modify it --
88
-- under terms of the GNU General Public License as published by the Free --
@@ -1258,6 +1258,21 @@ package Gtkada.Canvas_View is
12581258
-- This record describes high-level aspects of user interaction with the
12591259
-- canvas.
12601260

1261+
Null_Canvas_Event_Details : constant Canvas_Event_Details :=
1262+
Canvas_Event_Details'
1263+
(Event_Type => Custom,
1264+
Button => 0,
1265+
State => 0,
1266+
Key => 0,
1267+
Root_Point => (0.0, 0.0),
1268+
M_Point => (0.0, 0.0),
1269+
Item => null,
1270+
Toplevel_Item => null,
1271+
T_Point => (0.0, 0.0),
1272+
I_Point => (0.0, 0.0),
1273+
Allowed_Drag_Area => (0.0, 0.0, 0.0, 0.0),
1274+
Allow_Snapping => False);
1275+
12611276
procedure Initialize_Details
12621277
(Self : not null access Canvas_View_Record'Class;
12631278
Details : out Canvas_Event_Details);

0 commit comments

Comments
 (0)