Skip to content

Commit 0a40640

Browse files
Merge branch 'topic/W525-011' into 'master'
W525-011: Add a Get_Tab_Label function for MDI_Child See merge request eng/ide/gtkada!8
2 parents 6c660db + 1e26939 commit 0a40640

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/gtkada-mdi.adb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2154,6 +2154,17 @@ package body Gtkada.MDI is
21542154
end if;
21552155
end Get_Tab_Orientation;
21562156

2157+
-------------------
2158+
-- Get_Tab_Label --
2159+
-------------------
2160+
2161+
function Get_Tab_Label
2162+
(Child : not null access MDI_Child_Record'Class)
2163+
return Gtk.Label.Gtk_Label is
2164+
begin
2165+
return Child.Tab_Label;
2166+
end Get_Tab_Label;
2167+
21572168
----------------------------------
21582169
-- Button_Pressed_On_Title_Icon --
21592170
----------------------------------

src/gtkada-mdi.ads

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,11 @@ package Gtkada.MDI is
405405
return Tab_Orientation_Type;
406406
-- Return the child's tab orientation
407407

408+
function Get_Tab_Label
409+
(Child : not null access MDI_Child_Record'Class)
410+
return Gtk.Label.Gtk_Label;
411+
-- Return the child's tab label
412+
408413
function Get_Child_Notebook
409414
(Child : access MDI_Child_Record'Class) return Gtk.Notebook.Gtk_Notebook;
410415
-- Return the notebook that directly contains Child

0 commit comments

Comments
 (0)