XedNotebook

XedNotebook

Functions

Signals

void tab-added Run First
void tab-close-request Run Last
void tab-detached Run First
void tab-removed Run First
void tabs-reordered Run First

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkNotebook
                    ╰── XedNotebook

Description

Functions

xed_notebook_new ()

GtkWidget *
xed_notebook_new (void);

Creates a new XedNotebook object.

Returns

a new XedNotebook


xed_notebook_add_tab ()

void
xed_notebook_add_tab (XedNotebook *nb,
                      XedTab *tab,
                      gint position,
                      gboolean jump_to);

Adds the specified tab to the nb .

Parameters

nb

a XedNotebook

 

tab

a XedTab

 

position

the position where the tab should be added

 

jump_to

TRUE to set the tab as active

 

xed_notebook_remove_tab ()

void
xed_notebook_remove_tab (XedNotebook *nb,
                         XedTab *tab);

Removes tab from nb .

Parameters

nb

a XedNotebook

 

tab

a XedTab

 

xed_notebook_remove_all_tabs ()

void
xed_notebook_remove_all_tabs (XedNotebook *nb);

Removes all XedTab from nb .

Parameters

nb

a XedNotebook

 

xed_notebook_get_all_tabs ()

GList *
xed_notebook_get_all_tabs (XedNotebook *nb);

Gets all XedTab from nb .

Parameters

nb

a XedNotebook

 

Returns

GList of all tabs.

[element-type GtkWidget][transfer container]


xed_notebook_reorder_tab ()

void
xed_notebook_reorder_tab (XedNotebook *src,
                          XedTab *tab,
                          gint dest_position);

Reorders the page containing tab , so that it appears in dest_position position. If dest_position is greater than or equal to the number of tabs of the destination notebook or negative, tab will be moved to the end of the tabs.

Parameters

src

a XedNotebook

 

tab

a XedTab

 

dest_position

the position for tab

 

xed_notebook_move_tab ()

void
xed_notebook_move_tab (XedNotebook *src,
                       XedNotebook *dest,
                       XedTab *tab,
                       gint dest_position);

Moves tab from src to dest . If dest_position is greater than or equal to the number of tabs of the destination nootebook or negative, tab will be moved to the end of the tabs.

Parameters

src

a XedNotebook

 

dest

a XedNotebook

 

tab

a XedTab

 

dest_position

the position for tab

 

xed_notebook_set_close_buttons_sensitive ()

void
xed_notebook_set_close_buttons_sensitive
                               (XedNotebook *nb,
                                gboolean sensitive);

Sets whether the close buttons in the tabs of nb are sensitive.

Parameters

nb

a XedNotebook

 

sensitive

TRUE to make the buttons sensitive

 

xed_notebook_get_close_buttons_sensitive ()

gboolean
xed_notebook_get_close_buttons_sensitive
                               (XedNotebook *nb);

Whether the close buttons are sensitive.

Parameters

nb

a XedNotebook

 

Returns

TRUE if the close buttons are sensitive


xed_notebook_set_tab_drag_and_drop_enabled ()

void
xed_notebook_set_tab_drag_and_drop_enabled
                               (XedNotebook *nb,
                                gboolean enable);

Sets whether drag and drop of tabs in the nb is enabled.

Parameters

nb

a XedNotebook

 

enable

TRUE to enable the drag and drop

 

xed_notebook_get_tab_drag_and_drop_enabled ()

gboolean
xed_notebook_get_tab_drag_and_drop_enabled
                               (XedNotebook *nb);

Whether the drag and drop is enabled in the nb .

Parameters

nb

a XedNotebook

 

Returns

TRUE if the drag and drop is enabled.


xed_notebook_set_tab_scrolling_enabled ()

void
xed_notebook_set_tab_scrolling_enabled
                               (XedNotebook *nb,
                                gboolean enable);

Sets whether tab scrolling in the nb is enabled.

Parameters

nb

a XedNotebook

 

enable

TRUE to enable tab scrolling

 

xed_notebook_get_tab_scrolling_enabled ()

gboolean
xed_notebook_get_tab_scrolling_enabled
                               (XedNotebook *nb);

Whether notebook tab scrolling is enabled

Parameters

nb

a XedNotebook

 

Returns

TRUE if tab scrolling is enabled

Signal Details

The “tab-added” signal

void
user_function (XedNotebook *xednotebook,
               XedTab      *arg1,
               gpointer     user_data)

Flags: Run First


The “tab-close-request” signal

void
user_function (XedNotebook *xednotebook,
               XedTab      *arg1,
               gpointer     user_data)

Flags: Run Last


The “tab-detached” signal

void
user_function (XedNotebook *xednotebook,
               XedTab      *arg1,
               gpointer     user_data)

Flags: Run First


The “tab-removed” signal

void
user_function (XedNotebook *xednotebook,
               XedTab      *arg1,
               gpointer     user_data)

Flags: Run First


The “tabs-reordered” signal

void
user_function (XedNotebook *xednotebook,
               gpointer     user_data)

Flags: Run First