Skip to content

Commit 23fca6b

Browse files
Merge branch 'topic/gtkada.4.mold_warning' into 'master'
Fix mold warning in testgtk See merge request eng/ide/gtkada!14
2 parents dc774e1 + 54bd0e5 commit 23fca6b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

testgtk/create_css_accordion.adb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ with Gtk.Container; use Gtk.Container;
3434

3535
package body Create_Css_Accordion is
3636

37+
package FA is new Forall_User_Data (Gtk_Style_Provider);
38+
3739
procedure Run (Frame : access Gtk.Frame.Gtk_Frame_Record'Class) is
3840
Box : Gtk_Box;
3941
Provider : constant Gtk_Css_Provider
4042
:= Gtk_Css_Provider_New;
4143
Error : aliased Glib.Error.GError;
42-
package FA is new Forall_User_Data (Gtk_Style_Provider);
4344

4445
procedure Apply_Css
4546
(Widget : not null access Gtk.Widget.Gtk_Widget_Record'Class;

testgtk/create_css_editor.adb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
3636

3737
package body Create_Css_Editor is
3838

39+
package FA is new Forall_User_Data (Gtk_Style_Provider);
40+
3941
CSS : constant String :=
4042
"/* You can edit the text in this window to change the" & ASCII.LF
4143
& " * appearance of this Window." & ASCII.LF
@@ -94,8 +96,6 @@ package body Create_Css_Editor is
9496
Text_Buffer : Gtk_Text_Buffer;
9597
Text_View : Gtk_Text_View;
9698

97-
package FA is new Forall_User_Data (Gtk_Style_Provider);
98-
9999
procedure Apply_Css
100100
(Widget : not null access Gtk.Widget.Gtk_Widget_Record'Class;
101101
Provider : Gtk_Style_Provider)

0 commit comments

Comments
 (0)