![]() |
![]() |
![]() |
pluma Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Signals |
PlumaNotebookPrivate; struct PlumaNotebook; GtkWidget * pluma_notebook_new (void
); void pluma_notebook_add_tab (PlumaNotebook *nb
,PlumaTab *tab
,gint position
,gboolean jump_to
); void pluma_notebook_remove_tab (PlumaNotebook *nb
,PlumaTab *tab
); void pluma_notebook_remove_all_tabs (PlumaNotebook *nb
); void pluma_notebook_reorder_tab (PlumaNotebook *src
,PlumaTab *tab
,gint dest_position
); void pluma_notebook_move_tab (PlumaNotebook *src
,PlumaNotebook *dest
,PlumaTab *tab
,gint dest_position
); void pluma_notebook_set_always_show_tabs (PlumaNotebook *nb
,gboolean show_tabs
); void pluma_notebook_set_close_buttons_sensitive (PlumaNotebook *nb
,gboolean sensitive
); gboolean pluma_notebook_get_close_buttons_sensitive (PlumaNotebook *nb
); void pluma_notebook_set_tab_drag_and_drop_enabled (PlumaNotebook *nb
,gboolean enable
); gboolean pluma_notebook_get_tab_drag_and_drop_enabled (PlumaNotebook *nb
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkNotebook +----PlumaNotebook
"tab-added" :Run First
"tab-close-request" :Run Last
"tab-detached" :Run First
"tab-removed" :Run First
"tabs-reordered" :Run First
GtkWidget * pluma_notebook_new (void
);
Creates a new PlumaNotebook object.
Returns : |
a new PlumaNotebook |
void pluma_notebook_add_tab (PlumaNotebook *nb
,PlumaTab *tab
,gint position
,gboolean jump_to
);
Adds the specified tab
to the nb
.
|
a PlumaNotebook |
|
a PlumaTab |
|
the position where the tab should be added |
|
TRUE to set the tab as active |
void pluma_notebook_remove_tab (PlumaNotebook *nb
,PlumaTab *tab
);
Removes tab
from nb
.
|
a PlumaNotebook |
|
a PlumaTab |
void pluma_notebook_remove_all_tabs (PlumaNotebook *nb
);
Removes all PlumaTab from nb
.
|
a PlumaNotebook |
void pluma_notebook_reorder_tab (PlumaNotebook *src
,PlumaTab *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.
|
a PlumaNotebook |
|
a PlumaTab |
|
the position for tab
|
void pluma_notebook_move_tab (PlumaNotebook *src
,PlumaNotebook *dest
,PlumaTab *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.
|
a PlumaNotebook |
|
a PlumaNotebook |
|
a PlumaTab |
|
the position for tab
|
void pluma_notebook_set_always_show_tabs (PlumaNotebook *nb
,gboolean show_tabs
);
Sets the visibility of the tabs in the nb
.
|
a PlumaNotebook |
|
TRUE to always show the tabs |
void pluma_notebook_set_close_buttons_sensitive (PlumaNotebook *nb
,gboolean sensitive
);
Sets whether the close buttons in the tabs of nb
are sensitive.
|
a PlumaNotebook |
|
TRUE to make the buttons sensitive |
gboolean pluma_notebook_get_close_buttons_sensitive
(PlumaNotebook *nb
);
Whether the close buttons are sensitive.
|
a PlumaNotebook |
Returns : |
TRUE if the close buttons are sensitive |
void pluma_notebook_set_tab_drag_and_drop_enabled (PlumaNotebook *nb
,gboolean enable
);
Sets whether drag and drop of tabs in the nb
is enabled.
|
a PlumaNotebook |
|
TRUE to enable the drag and drop |
gboolean pluma_notebook_get_tab_drag_and_drop_enabled
(PlumaNotebook *nb
);
Whether the drag and drop is enabled in the nb
.
|
a PlumaNotebook |
Returns : |
TRUE if the drag and drop is enabled. |
"tab-added"
signalvoid user_function (PlumaNotebook *plumanotebook,
PlumaTab *arg1,
gpointer user_data) : Run First
"tab-close-request"
signalvoid user_function (PlumaNotebook *plumanotebook,
PlumaTab *arg1,
gpointer user_data) : Run Last
"tab-detached"
signalvoid user_function (PlumaNotebook *plumanotebook,
PlumaTab *arg1,
gpointer user_data) : Run First
"tab-removed"
signalvoid user_function (PlumaNotebook *plumanotebook,
PlumaTab *arg1,
gpointer user_data) : Run First
"tabs-reordered"
signalvoid user_function (PlumaNotebook *plumanotebook,
gpointer user_data) : Run First