the main Gtk struct
the main Gtk struct as a void*
The GtkNotebookTab is not documented
Append a page with a widget and a text for a label
The ::create-window signal is emitted when a detachable tab is dropped on the root window. A handler for this signal can create a window containing a notebook where the tab will be attached. It is also responsible for moving/resizing the window and adding the necessary properties to the notebook (e.g. the "group" ). The default handler uses the global window creation hook, if one has been set with gtk_notebook_set_window_creation_hook(). Since 2.12
the ::page-added signal is emitted in the notebook right after a page is added to the notebook. Since 2.10
the ::page-removed signal is emitted in the notebook right after a page is removed from the notebook. Since 2.10
the ::page-reordered signal is emitted in the notebook right after a page has been reordered. Since 2.10
Emitted when the user or a function changes the current page. See Also GtkContainer For functions that apply to every GtkContainer
Appends a page to notebook.
Appends a page to notebook, specifying the widget to use as the label in the popup menu.
Prepends a page to notebook.
Prepends a page to notebook, specifying the widget to use as the label in the popup menu.
Insert a page into notebook at the given position.
Insert a page into notebook at the given position, specifying the widget to use as the label in the popup menu.
Removes a page from the notebook given its index in the notebook.
Finds the index of the page which contains the given child widget.
Switches to the next page. Nothing happens if the current page is the last page.
Switches to the previous page. Nothing happens if the current page is the first page.
Reorders the page containing child, so that it appears in position position. If position is greater than or equal to the number of children in the list or negative, child will be moved to the end of the list.
Sets the edge at which the tabs for switching pages in the notebook are drawn.
Sets whether to show the tabs for the notebook or not.
Sets whether a bevel will be drawn around the notebook pages. This only has a visual effect when the tabs are not shown. See gtk_notebook_set_show_tabs().
Sets whether the tab label area will have arrows for scrolling if there are too many tabs to fit in the area.
Warning gtk_notebook_set_tab_border is deprecated and should not be used in newly-written code. Sets the width the border around the tab labels in a notebook. This is equivalent to calling gtk_notebook_set_tab_hborder (notebook, border_width) followed by gtk_notebook_set_tab_vborder (notebook, border_width).
Enables the popup menu: if the user clicks with the right mouse button on the tab labels, a menu with all the pages will be popped up.
Disables the popup menu.
Returns the page number of the current page.
Retrieves the menu label widget of the page containing child.
Returns the child widget contained in page number page_num.
Gets the number of pages in a notebook. Since 2.2
Returns the tab label widget for the page child. NULL is returned if child is not in notebook or if no tab label has specifically been set for child.
Warning gtk_notebook_query_tab_label_packing has been deprecated since version 2.20 and should not be used in newly-written code. Modify the "tab-expand" and "tab-fill" child properties instead. Query the packing attributes for the tab label of the page containing child.
Warning gtk_notebook_set_homogeneous_tabs is deprecated and should not be used in newly-written code. Sets whether the tabs must have all the same size or not.
Changes the menu label for the page containing child.
Creates a new label and sets it as the menu label of child.
Warning gtk_notebook_set_tab_hborder is deprecated and should not be used in newly-written code. Sets the width of the horizontal border of tab labels.
Changes the tab label for child. If NULL is specified for tab_label, then the page will have the label 'page N'.
Warning gtk_notebook_set_tab_label_packing has been deprecated since version 2.20 and should not be used in newly-written code. Modify the "tab-expand" and "tab-fill" child properties instead. Modifying the packing of the tab label is a deprecated feature and shouldn't be done anymore. Sets the packing parameters for the tab label of the page containing child. See gtk_box_pack_start() for the exact meaning of the parameters.
Creates a new label and sets it as the tab label for the page containing child.
Warning gtk_notebook_set_tab_vborder is deprecated and should not be used in newly-written code. Sets the width of the vertical border of tab labels.
Sets whether the notebook tab can be reordered via drag and drop or not. Since 2.10
Sets whether the tab can be detached from notebook to another notebook or widget. Note that 2 notebooks must share a common group identificator (see gtk_notebook_set_group_id()) to allow automatic tabs interchange between them. If you want a widget to interact with a notebook through DnD (i.e.: accept dragged tabs from it) it must be set as a drop destination and accept the target "GTK_NOTEBOOK_TAB". The notebook will fill the selection with a GtkWidget** pointing to the child widget that corresponds to the dropped tab. If you want a notebook to accept drags from other widgets, you will have to set your own DnD code to do it. Since 2.10
Retrieves the text of the menu label for the page containing child.
Returns whether the tab label area has arrows for scrolling. See gtk_notebook_set_scrollable().
Returns whether a bevel will be drawn around the notebook pages. See gtk_notebook_set_show_border().
Returns whether the tabs of the notebook are shown. See gtk_notebook_set_show_tabs().
Retrieves the text of the tab label for the page containing child.
Gets the edge at which the tabs for switching pages in the notebook are drawn.
Gets whether the tab can be reordered via drag and drop or not. Since 2.10
Returns whether the tab contents can be detached from notebook. Since 2.10
Returns the horizontal width of a tab border. Since 2.22
Returns the vertical width of a tab border. Since 2.22
Switches to the page number page_num. Note that due to historical reasons, GtkNotebook refuses to switch to a page unless the child widget is visible. Therefore, it is recommended to show child widgets before adding them to a notebook.
Warning gtk_notebook_set_group_id has been deprecated since version 2.12 and should not be used in newly-written code. use gtk_notebook_set_group_name() instead. Sets an group identificator for notebook, notebooks sharing the same group identificator will be able to exchange tabs via drag and drop. A notebook with group identificator -1 will not be able to exchange tabs with any other notebook. Since 2.10
Warning gtk_notebook_get_group_id has been deprecated since version 2.12 and should not be used in newly-written code. use gtk_notebook_get_group_name() instead. Gets the current group identificator for notebook. Since 2.10
Warning gtk_notebook_set_group has been deprecated since version 2.24 and should not be used in newly-written code. Use gtk_notebook_set_group_name() instead Sets a group identificator pointer for notebook, notebooks sharing the same group identificator pointer will be able to exchange tabs via drag and drop. A notebook with a NULL group identificator will not be able to exchange tabs with any other notebook. Since 2.12
Warning gtk_notebook_get_group has been deprecated since version 2.24 and should not be used in newly-written code. Use gtk_notebook_get_group_name() instead Gets the current group identificator pointer for notebook. Since 2.12
Sets a group name for notebook. Notebooks with the same name will be able to exchange tabs via drag and drop. A notebook with a NULL group name will not be able to exchange tabs with any other notebook. Since 2.24
Gets the current group name for notebook. Note that this funtion can emphasis not be used together with gtk_notebook_set_group() or gtk_notebook_set_group_id(). Since 2.24
Sets widget as one of the action widgets. Depending on the pack type the widget will be placed before or after the tabs. You can use a GtkBox if you need to pack more than one widget on the same side. Note that action widgets are "internal" children of the notebook and thus not included in the list returned from gtk_container_foreach(). Since 2.20
Gets one of the action widgets. See gtk_notebook_set_action_widget(). Since 2.20
Warning gtk_notebook_set_window_creation_hook has been deprecated since version 2.24 and should not be used in newly-written code. Use the "create-window" signal instead Installs a global function used to create a window when a detached tab is dropped in an empty area. Since 2.10