NetSurf
|
Go to the source code of this file.
Functions | |
nserror | nsgtk_notebook_create (GtkBuilder *builder, GtkNotebook **notebook_out) |
create notebook More... | |
void | nsgtk_tab_add (struct gui_window *window, GtkWidget *tab_contents, bool background, const char *title, GdkPixbuf *icon_pixbuf) |
Add new gui window page to notebook. More... | |
nserror | nsgtk_tab_add_page (GtkNotebook *notebook, GtkWidget *tab_contents, bool background, const char *title, GdkPixbuf *icon_pixbuf) |
Add new page to a notebook. More... | |
nserror | nsgtk_tab_set_title (GtkWidget *page, const char *title) |
set the tab title More... | |
nserror | nsgtk_tab_set_icon (GtkWidget *page, GdkPixbuf *pixbuf) |
set the tab icon More... | |
void | nsgtk_tab_options_changed (GtkNotebook *notebook) |
nserror | nsgtk_tab_close_current (GtkNotebook *notebook) |
nserror | nsgtk_tab_prev (GtkNotebook *notebook) |
nserror | nsgtk_tab_next (GtkNotebook *notebook) |
nserror nsgtk_notebook_create | ( | GtkBuilder * | builder, |
GtkNotebook ** | notebook_out | ||
) |
create notebook
creates a notebook for use inside a window, creates the special add page(tab) and attaches all signals.
builder | the gtk builder object to create notbook from |
notebook_out | reciveds the created notebook |
Definition at line 380 of file tabs.c.
References NSERROR_OK, nsgtk_tab_add_newtab(), nsgtk_tab_options_changed(), nsgtk_tab_page_reordered(), nsgtk_tab_switch_page(), nsgtk_tab_switch_page_after(), and nsgtk_tab_visibility_update().
Referenced by nsgtk_new_scaffolding().
void nsgtk_tab_add | ( | struct gui_window * | window, |
GtkWidget * | tab_contents, | ||
bool | background, | ||
const char * | title, | ||
GdkPixbuf * | icon_pixbuf | ||
) |
Add new gui window page to notebook.
Definition at line 452 of file tabs.c.
References nsgtk_get_scaffold(), nsgtk_scaffolding_notebook(), nsgtk_tab_add_page(), and gui_window::title.
Referenced by gui_window_create().
nserror nsgtk_tab_add_page | ( | GtkNotebook * | notebook, |
GtkWidget * | tab_contents, | ||
bool | background, | ||
const char * | title, | ||
GdkPixbuf * | icon_pixbuf | ||
) |
Add new page to a notebook.
Definition at line 418 of file tabs.c.
References NSERROR_OK, nsgtk_tab_label_setup(), and gui_window::title.
Referenced by cutomize_button_clicked_cb(), and nsgtk_tab_add().
nserror nsgtk_tab_close_current | ( | GtkNotebook * | notebook | ) |
Definition at line 527 of file tabs.c.
References NSERROR_OK, and nsgtk_window_destroy_browser().
Referenced by nsgtk_on_closetab_activate_menu().
nserror nsgtk_tab_next | ( | GtkNotebook * | notebook | ) |
Definition at line 568 of file tabs.c.
References NSERROR_OK.
Referenced by nsgtk_on_nexttab_activate_menu().
void nsgtk_tab_options_changed | ( | GtkNotebook * | notebook | ) |
Definition at line 372 of file tabs.c.
References nsgtk_tab_orientation(), and nsgtk_tab_visibility_update().
Referenced by nsgtk_notebook_create(), and nsgtk_window_update_all().
nserror nsgtk_tab_prev | ( | GtkNotebook * | notebook | ) |
Definition at line 560 of file tabs.c.
References NSERROR_OK.
Referenced by nsgtk_on_prevtab_activate_menu().
nserror nsgtk_tab_set_icon | ( | GtkWidget * | page, |
GdkPixbuf * | pixbuf | ||
) |
set the tab icon
The tab icon will be set to the pixbuf parameter
page | The page widget that was added to the notebook |
pixbuf | The pixbuf to set the icon to. |
Definition at line 470 of file tabs.c.
References gui_window::favicon, NSERROR_BAD_PARAMETER, NSERROR_INVALID, and NSERROR_OK.
Referenced by gui_window_set_icon(), next_throbber_frame(), and throbber().
nserror nsgtk_tab_set_title | ( | GtkWidget * | page, |
const char * | title | ||
) |
set the tab title
The tab title will be set to the parameter
page | The page widget that was added to the notebook |
title | The title text which may not be NULL. |
Definition at line 498 of file tabs.c.
References NSERROR_BAD_PARAMETER, NSERROR_INVALID, NSERROR_OK, and gui_window::title.
Referenced by gui_window_set_title().