EphyWindow

EphyWindow — Epiphany's main GtkWindow widget

Synopsis

struct              EphyWindow;
EphyWindow *        ephy_window_new                     (void);
EphyWindow *        ephy_window_new_with_chrome         (EphyWebViewChrome chrome,
                                                         gboolean is_popup);
GtkUIManager *      ephy_window_get_ui_manager          (EphyWindow *window);
GtkWidget *         ephy_window_get_notebook            (EphyWindow *window);
void                ephy_window_load_url                (EphyWindow *window,
                                                         const char *url);
void                ephy_window_set_zoom                (EphyWindow *window,
                                                         float zoom);
void                ephy_window_activate_location       (EphyWindow *window);
EphyEmbedEvent *    ephy_window_get_context_event       (EphyWindow *window);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkWidget
               +----GtkContainer
                     +----GtkBin
                           +----GtkWindow
                                 +----GtkApplicationWindow
                                       +----EphyWindow

Implemented Interfaces

EphyWindow implements AtkImplementorIface, GtkBuildable, GActionGroup, GActionMap, EphyLink and EphyEmbedContainer.

Description

EphyWindow is Epiphany's main widget.

Details

struct EphyWindow

struct EphyWindow;


ephy_window_new ()

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

ephy_window_new_with_chrome ()

EphyWindow *        ephy_window_new_with_chrome         (EphyWebViewChrome chrome,
                                                         gboolean is_popup);

Identical to ephy_window_new(), but allows you to specify a chrome.

chrome :

an EphyWebViewChrome

is_popup :

whether the new window is a popup window

Returns :

a new EphyWindow

ephy_window_get_ui_manager ()

GtkUIManager *      ephy_window_get_ui_manager          (EphyWindow *window);

Returns this window's UI manager.

window :

an EphyWindow

Returns :

an GtkUIManager. [transfer none]

ephy_window_get_notebook ()

GtkWidget *         ephy_window_get_notebook            (EphyWindow *window);

Returns the GtkNotebook used by this window.

window :

an EphyWindow

Returns :

the window's GtkNotebook. [transfer none]

ephy_window_load_url ()

void                ephy_window_load_url                (EphyWindow *window,
                                                         const char *url);

Loads a new url in the active tab of window. Unlike ephy_web_view_load_url(), this function activates the embed.

window :

a EphyWindow

url :

the url to load

ephy_window_set_zoom ()

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).

window :

an EphyWindow

zoom :

the desired zoom level

ephy_window_activate_location ()

void                ephy_window_activate_location       (EphyWindow *window);

Activates the location entry on window's toolbar.

window :

an EphyWindow

ephy_window_get_context_event ()

EphyEmbedEvent *    ephy_window_get_context_event       (EphyWindow *window);

Returns the EphyEmbedEvent for the current context menu. Use this to get the event from the action callback.

window :

an EphyWindow

Returns :

an EphyEmbedEvent, or NULL. [transfer none]