Method

Adw.TabView.add_page

Declaration [src]

AdwTabPage*
adw_tab_view_add_page (
  AdwTabView* self,
  GtkWidget* child,
  AdwTabPage* parent
)

Description [src]

Adds child to self with parent as the parent.

This function can be used to automatically position new pages, and to select the correct page when this page is closed while being selected (see adw_tab_view_close_page()).

If parent is NULL, this function is equivalent to adw_tab_view_append().

Parameters

child GtkWidget*
 

a widget to add

 Ownership is not transferred to the callee
parent AdwTabPage
 

a parent page for child

 Can be NULL
 Ownership is not transferred to the callee

Return value

Returns: AdwTabPage

the page object representing child

Ownership is not transferred to the caller