GtrNotebook: GTranslator Reference Manual

## GtrNotebook GtrNotebook |

## Functions

GtkWidget * | gtr_notebook_new ()
void | gtr_notebook_add_page ()
void | gtr_notebook_remove_page ()
void | gtr_notebook_remove_all_pages ()
GtrTab * | gtr_notebook_get_page ()
GtkWidget * | gtr_notebook_get_header ()
void | gtr_notebook_enable_save ()
void | gtr_notebook_update_undo_buttons ()
void | gtr_notebook_reset_sort ()

## Description

## Functions

### gtr_notebook_new ()

    GtkWidget *
    gtr_notebook_new ();

Creates a new GtrNotebook.

#### Returns

a new GtrNotebook object

### gtr_notebook_add_page ()

    void
    gtr_notebook_add_page (GtrNotebook *notebook,
                           GtrTab *tab);

Adds a new GtrTab to `notebook` .

#### Parameters

notebook | a GtrNotebook |
tab | a GtrTab |

### gtr_notebook_remove_page ()

    void
    gtr_notebook_remove_page (GtrNotebook *notebook,
                              gint page_num);

Removes a page from the notebook given its index in the notebook.

#### Parameters

notebook | a GtrNotebook |
page_num | the index of a notebook page, starting from 0. |

### gtr_notebook_remove_all_pages ()

    void
    gtr_notebook_remove_all_pages (GtrNotebook *notebook);

Removes all tabs from from `notebook`

#### Parameters

notebook | a GtrNotebook |

### gtr_notebook_get_page ()

    GtrTab *
    gtr_notebook_get_page (GtrNotebook *notebook);

Gets the selected page in the GtrNotebook.

#### Parameters

notebook | a GtrNotebook |

#### Returns

the selected page in the `notebook` .

[transfer none]

### gtr_notebook_get_header ()

    GtkWidget *
    gtr_notebook_get_header (GtrNotebook *notebook);

### gtr_notebook_enable_save ()

    void
    gtr_notebook_enable_save (GtrNotebook *notebook,
                              gboolean enable);

### gtr_notebook_update_undo_buttons ()

    void
    gtr_notebook_update_undo_buttons (GtrNotebook *notebook,
                                      GtrView *view);

### gtr_notebook_reset_sort ()

    void
    gtr_notebook_reset_sort (GtrNotebook *notebook);

## Types and Values