![]() |
![]() |
![]() |
gedit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Signals |
GeditNotebookPrivate; GeditNotebook; GtkWidget * gedit_notebook_new (void
); void gedit_notebook_add_tab (GeditNotebook *nb
,GeditTab *tab
,gint position
,gboolean jump_to
); void gedit_notebook_remove_tab (GeditNotebook *nb
,GeditTab *tab
); void gedit_notebook_remove_all_tabs (GeditNotebook *nb
); void gedit_notebook_reorder_tab (GeditNotebook *src
,GeditTab *tab
,gint dest_position
); void gedit_notebook_move_tab (GeditNotebook *src
,GeditNotebook *dest
,GeditTab *tab
,gint dest_position
); void gedit_notebook_set_always_show_tabs (GeditNotebook *nb
,gboolean show_tabs
); void gedit_notebook_set_close_buttons_sensitive (GeditNotebook *nb
,gboolean sensitive
); gboolean gedit_notebook_get_close_buttons_sensitive (GeditNotebook *nb
); void gedit_notebook_set_tab_drag_and_drop_enabled (GeditNotebook *nb
,gboolean enable
); gboolean gedit_notebook_get_tab_drag_and_drop_enabled (GeditNotebook *nb
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkNotebook +----GeditNotebook
"tab-added" : Run First "tab-close-request" : Run Last "tab-detached" : Run First "tab-removed" : Run First "tabs-reordered" : Run First
GtkWidget * gedit_notebook_new (void
);
Creates a new GeditNotebook object.
Returns : |
a new GeditNotebook |
void gedit_notebook_add_tab (GeditNotebook *nb
,GeditTab *tab
,gint position
,gboolean jump_to
);
Adds the specified tab
to the nb
.
|
a GeditNotebook |
|
a GeditTab |
|
the position where the tab should be added
|
|
TRUE to set the tab as active
|
void gedit_notebook_remove_tab (GeditNotebook *nb
,GeditTab *tab
);
Removes tab
from nb
.
|
a GeditNotebook |
|
a GeditTab |
void gedit_notebook_remove_all_tabs (GeditNotebook *nb
);
Removes all GeditTab from nb
.
|
a GeditNotebook |
void gedit_notebook_reorder_tab (GeditNotebook *src
,GeditTab *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 GeditNotebook |
|
a GeditTab |
|
the position for tab
|
void gedit_notebook_move_tab (GeditNotebook *src
,GeditNotebook *dest
,GeditTab *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 GeditNotebook |
|
a GeditNotebook |
|
a GeditTab |
|
the position for tab
|
void gedit_notebook_set_always_show_tabs (GeditNotebook *nb
,gboolean show_tabs
);
Sets the visibility of the tabs in the nb
.
|
a GeditNotebook |
|
TRUE to always show the tabs
|
void gedit_notebook_set_close_buttons_sensitive (GeditNotebook *nb
,gboolean sensitive
);
Sets whether the close buttons in the tabs of nb
are sensitive.
|
a GeditNotebook |
|
TRUE to make the buttons sensitive
|
gboolean gedit_notebook_get_close_buttons_sensitive
(GeditNotebook *nb
);
Whether the close buttons are sensitive.
|
a GeditNotebook |
Returns : |
TRUE if the close buttons are sensitive
|
void gedit_notebook_set_tab_drag_and_drop_enabled (GeditNotebook *nb
,gboolean enable
);
Sets whether drag and drop of tabs in the nb
is enabled.
|
a GeditNotebook |
|
TRUE to enable the drag and drop
|
gboolean gedit_notebook_get_tab_drag_and_drop_enabled
(GeditNotebook *nb
);
Whether the drag and drop is enabled in the nb
.
|
a GeditNotebook |
Returns : |
TRUE if the drag and drop is enabled.
|
"tab-added"
signalvoid user_function (GeditNotebook *geditnotebook, GeditTab *arg1, gpointer user_data) : Run First
"tab-close-request"
signalvoid user_function (GeditNotebook *geditnotebook, GeditTab *arg1, gpointer user_data) : Run Last
"tab-detached"
signalvoid user_function (GeditNotebook *geditnotebook, GeditTab *arg1, gpointer user_data) : Run First
"tab-removed"
signalvoid user_function (GeditNotebook *geditnotebook, GeditTab *arg1, gpointer user_data) : Run First
"tabs-reordered"
signalvoid user_function (GeditNotebook *geditnotebook, gpointer user_data) : Run First