![]() |
![]() |
![]() |
Epiphany Reference Manual | ![]() |
---|---|---|---|---|
EphyWindow; EphyWindow* ephy_window_new (void); EphyWindow* ephy_window_new_with_chrome (EphyEmbedChrome chrome, gboolean is_popup); GtkWidget* ephy_window_get_notebook (EphyWindow *window); GtkWidget* ephy_window_get_toolbar (EphyWindow *window); GtkWidget* ephy_window_get_statusbar (EphyWindow *window); void ephy_window_set_zoom (EphyWindow *window, float zoom); void ephy_window_activate_location (EphyWindow *window); void ephy_window_load_url (EphyWindow *window, const char *url);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkWindow +----EphyWindow
EphyWindow implements AtkImplementorIface, GtkBuildable, EphyEmbedContainer and EphyLink.
An EphyWindow is what the user sees when opening Epiphany. Think of each EphyWindow as a giant container which holds many useful items:
ephy_window_get_toolbar()
.ephy_window_get_statusbar()
.ephy_window_get_notebook()
,
ephy_window_get_tabs()
and ephy_window_get_active_tab()
to reach
them. Manipulate tabs using ephy_window_add_tab()
, ephy_window_remove_tab()
and ephy_window_jump_to_tab()
.
You can also perform simple manipulations of an EphyWindow's active EphyEmbed.
These are restricted to ephy_window_set_zoom()
and ephy_window_load_url()
.
EphyWindow* ephy_window_new (void);
Equivalent to g_object_new()
but returns an EphyWindow so you don't have
to cast it.
Returns : |
a new EphyWindow |
EphyWindow* ephy_window_new_with_chrome (EphyEmbedChrome chrome, gboolean is_popup);
Identical to ephy_window_new()
, but allows you to specify a chrome.
|
an EphyEmbedChrome |
|
whether the new window is a popup window |
Returns : |
a new EphyWindow |
GtkWidget* ephy_window_get_notebook (EphyWindow *window);
Returns the GtkNotebook used by this window.
|
an EphyWindow |
Returns : |
the window 's GtkNotebook
|
GtkWidget* ephy_window_get_toolbar (EphyWindow *window);
Returns this window's toolbar as an EggEditableToolbar.
|
an EphyWindow |
Returns : |
an EggEditableToolbar |
GtkWidget* ephy_window_get_statusbar (EphyWindow *window);
Returns this window's statusbar as an EphyStatusbar.
|
an EphyWindow |
Returns : |
This window's statusbar |
void ephy_window_set_zoom (EphyWindow *window, float zoom);
Sets the zoom on window
's active EphyEmbed. A zoom
of 1.0 corresponds to
100% zoom (normal size).
|
an EphyWindow |
|
the desired zoom level |
void ephy_window_activate_location (EphyWindow *window);
Activates the location entry on window
's toolbar.
|
an EphyWindow |
void ephy_window_load_url (EphyWindow *window, const char *url);
Loads a new url in the active tab of window
.
Unlike ephy_embed_load_url()
, this function activates
the embed.
|
a EphyWindow |
|
the url to load |