GtkNotebook
A tabbed notebook container
The #GtkNotebook widget is a #GtkContainer whose children are pages that
can be switched between using tab labels along one edge.
There are many configuration options for #GtkNotebook. Among other
things, you can choose on which edge the tabs appear
(see gtk_notebook_set_tab_pos()), whether, if there are too many
tabs to fit the notebook should be made bigger or scrolling
arrows added (see gtk_notebook_set_scrollable), and whether there
will be a popup menu allowing the users to switch pages.
(see gtk_notebook_popup_enable(), gtk_notebook_popup_disable())
GtkNotebook as GtkBuildable
The GtkNoteboopk implementation of the GtkBuildable interface
supports placing children into tabs by specifying "tab" as the
"type" attribute of a <child> element. Note that the content
of the tab must be created before the tab can be filled.
A tab child can be specified without specifying a <child>
type attribute.
To add a child widget in the notebooks action area, specify
"action-start" or "action-end" as the "type" attribute of the <child>
element.
A UI definition fragment with GtkNotebook
]]>#GtkContainerFor functions that apply to every #GtkContainer
@notebook: the object which received the signal.
@arg1:
@Returns:
@notebook: the object which received the signal.
@widget:
@arg1:
@arg2:
@Returns:
@notebook: the object which received the signal.
@arg1:
@Returns:
@notebook: the object which received the signal.
@arg1:
@notebook: the object which received the signal.
@widget:
@arg1:
@notebook: the object which received the signal.
@widget:
@arg1:
@notebook: the object which received the signal.
@widget:
@arg1:
@notebook: the object which received the signal.
@arg1:
@Param3:
@Returns:
@notebook: the object which received the signal.
@arg1:
@Returns:
Emitted when the user or a function changes the current page.
@notebook: the object which received the signal.
@page: the new current page
@page_num: the index of the page
Deprecated: 2.20: The tab packing functionality of children should not
be used anymore and support will be removed in the future.
The #GtkNotebookPage is an opaque implementation detail of #GtkNotebook.
@void:
@Returns:
@notebook:
@child:
@tab_label:
@Returns:
@notebook:
@child:
@tab_label:
@menu_label:
@Returns:
@notebook:
@child: the
@tab_label:
@Returns:
@notebook:
@child:
@tab_label:
@menu_label:
@Returns:
@notebook:
@child:
@tab_label:
@position:
@Returns:
@notebook:
@child:
@tab_label:
@menu_label:
@position:
@Returns:
@notebook:
@page_num:
@notebook:
@child:
@Returns:
@notebook:
@notebook:
@notebook:
@child:
@position:
@notebook: the notebook widget
@pos: the position
@notebook:
@show_tabs:
@notebook:
@show_border:
@notebook:
@scrollable:
@notebook:
@notebook:
@notebook: the notebook widget
@Returns: the page number
@notebook:
@child:
@Returns:
@notebook:
@page_num:
@Returns:
@notebook:
@Returns:
@notebook:
@child:
@Returns:
@notebook:
@child:
@menu_label:
@notebook:
@child:
@menu_text:
@notebook:
@child:
@tab_label:
@notebook:
@child:
@tab_text:
@notebook:
@child:
@reorderable:
@notebook:
@child:
@detachable:
@notebook:
@child:
@Returns:
@notebook:
@Returns:
@notebook:
@Returns:
@notebook:
@Returns:
@notebook:
@child:
@Returns:
@notebook:
@Returns:
@notebook:
@child:
@Returns:
@notebook:
@child:
@Returns:
@notebook:
@page_num:
@notebook:
@group:
@notebook:
@Returns:
@notebook:
@widget:
@pack_type:
@notebook:
@pack_type:
@Returns:
A function used by GtkNotebook when a detachable tab is dropped
in the root window, it's used to create a window containing a notebook
where the tab will be attached. This function will also be responsible
of moving/resizing the window and adding the necessary properties to
the notebook (i.e.: group-id).
If the function returns %NULL, the drag will be cancelled.
@source: The source #GtkNotebook of the drag operation
@page: the child #GtkWidget affected
@x: the X coordinate where the drop happens
@y: the Y coordinate where the drop happens
@data: user data
@Returns: The created #GtkNotebook where the tab will be attached, or NULL to cancel the drag
@func:
@data:
@destroy: