Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * midori_view_new_with_title (const
,gchar *title,
MidoriWebSettings *settings);
gboolean append
midori_view_new_with_title
has been deprecated since version 0.4.3 and should not be used in newly-written code.
Creates a new view with the specified parameters that is visible by default.
title |
a title, or |
|
settings |
a |
|
append |
if |
Since 0.3.0
GtkWidget * midori_view_new_with_item (,
KatzeItem *item);
MidoriWebSettings *settings
midori_view_new_with_item
has been deprecated since version 0.5.8 and should not be used in newly-written code.
Use midori_view_new_from_view instead.
Creates a new view from an item that is visible by default.
Since 0.4.3
GtkWidget * midori_view_new_from_view (,
MidoriView *view,
KatzeItem *item);
MidoriWebSettings *settings
Creates a new view, visible by default.
If a view
is specified the returned new view will share
its settings and if applicable re-use the rendering process.
When view
should be passed:
The new one created is a new tab/ window for the old view
A tab was duplicated
When view
may be passed:
Old and new view belong to the same website or group
Don't pass a view
if:
The new view is a completely new website
The item
may contain title, URI and minimized status and will be copied.
Usually settings
should be passed from an existing view or browser.
view |
a predating, related |
|
item |
a |
|
settings |
a |
Since 0.5.8
void midori_view_set_settings (,
MidoriView *view);
MidoriWebSettings *settings
Assigns a settings instance to the view.
gdouble midori_view_get_progress ();
MidoriView *view
Retrieves the current loading progress as a fraction between 0.0 and 1.0.
void midori_view_set_uri (,
MidoriView *viewconst
);gchar *uri
Opens the specified URI in the view.
Since 0.3.0 a warning is shown if the view is not yet contained in a browser. This is because extensions can't monitor page loading if that happens.
void midori_view_set_html (,
MidoriView *viewconst
,gchar *dataconst
,gchar *uri);
void *web_frame
void midori_view_set_overlay_text (,
MidoriView *viewconst
);gchar *text
Show a specified URI or text on top of the view. Has no effect with < GTK+ 3.2.0.
Since 0.4.5
gboolean midori_view_is_blank ();
MidoriView *view
Determines whether the view is currently empty.
constgchar * midori_view_get_display_uri ();
MidoriView *view
Retrieves a string that is suitable for displaying.
Note that "about:blank" and "about:dial" are represented as "".
You can assume that the string is not NULL
constgchar * midori_view_get_display_title ();
MidoriView *view
Retrieves a string that is suitable for displaying as a title. Most of the time this will be the title or the current URI.
You can assume that the string is not NULL
GdkPixbuf * midori_view_get_icon ();
MidoriView *view
Retrieves the icon of the view, or a default icon. See
midori_view_get_icon_uri()
if you need to distinguish
the origin of an icon.
The returned icon is owned by the view
and must not be modified.
constgchar * midori_view_get_icon_uri ();
MidoriView *view
Retrieves the address of the icon of the view
if the loaded website has an icon, otherwise
NULL
midori_view_get_icon()
will still return a default icon.
The returned string is owned by the view
and must not be freed.
Since 0.2.5
constgchar * midori_view_get_link_uri ();
MidoriView *view
Retrieves the uri of the currently focused link, particularly while the mouse hovers a link or a context menu is being opened.
gboolean midori_view_has_selection ();
MidoriView *view
Determines whether something in the view is selected.
This function returns FALSE
constgchar * midori_view_get_selected_text ();
MidoriView *view
Retrieves the currently selected text.
GtkWidget * midori_view_get_proxy_menu_item ();
MidoriView *view
Retrieves a proxy menu item that is typically added to a Window menu and which on activation switches to the right window/ tab.
The item is created on the first call and will be updated to reflect changes to the icon and title automatically.
The menu item is valid until it is removed from its container.
GtkWidget * midori_view_get_tab_menu ();
MidoriView *view
midori_view_get_tab_menu
has been deprecated since version 0.5.7 and should not be used in newly-written code.
Use MidoriNotebook API instead.
Retrieves a menu that is typically shown when right-clicking a tab label or equivalent representation.
Since 0.1.8
PangoEllipsizeMode midori_view_get_label_ellipsize ();
MidoriView *view
Determines how labels representing the view should be ellipsized, which is helpful for alternative labels.
Since 0.1.9
GtkWidget * midori_view_get_proxy_tab_label ();
MidoriView *view
midori_view_get_proxy_tab_label
has been deprecated since version 0.5.7 and should not be used in newly-written code.
Don't use this label.
Retrieves a proxy tab label that is typically used when adding the view to a notebook.
KatzeItem * midori_view_get_proxy_item ();
MidoriView *view
Retrieves a proxy item that can be used for bookmark storage as well as session management.
The item reflects changes to title (name), URI and MIME type (mime-type).
gfloat midori_view_get_zoom_level ();
MidoriView *view
Determines the current zoom level of the view.
void midori_view_set_zoom_level (,
MidoriView *view);
gfloat zoom_level
Sets the current zoom level of the view.
void midori_view_reload (,
MidoriView *view);
gboolean from_cache
Reloads the view.
gboolean midori_view_can_go_back ();
MidoriView *view
Determines whether the view can go back.
void midori_view_go_back_or_forward (,
MidoriView *view);
gint steps
Goes back or forward in history.
Since 0.4.5
gboolean midori_view_can_go_back_or_forward (,
MidoriView *view);
gint steps
Determines whether the view can go back or forward by number of steps.
Since 0.4.5
constgchar * midori_view_get_previous_page ();
MidoriView *view
Determines the previous sub-page in the view.
Since 0.2.3
constgchar * midori_view_get_next_page ();
MidoriView *view
Determines the next sub-page in the view.
Since 0.2.3
gchar * midori_view_save_source (,
MidoriView *viewconst
,gchar *uriconst
,gchar *outfile);
gboolean use_dom
Saves the data in the view to disk.
view |
a |
|
uri |
an alternative destination URI, or |
|
outfile |
a destination filename, or |
Since 0.4.4
void midori_view_search_text (,
MidoriView *viewconst
,gchar *text,
gboolean case_sensitive);
gboolean forward
Searches a text within the view.
gboolean midori_view_execute_script (,
MidoriView *viewconst
,gchar *script);
gchar **exception
Execute a script on the view.
GdkPixbuf * midori_view_get_snapshot (,
MidoriView *view,
gint width);
gint height
midori_view_get_snapshot
has been deprecated since version 0.5.4 and should not be used in newly-written code.
Take a snapshot of the view at the given dimensions. The view has to be mapped on the screen.
If width and height are negative, the resulting image is going to be optimized for speed.
Since 0.2.1
GtkWidget * midori_view_get_web_view ();
MidoriView *view
midori_view_get_web_view
has been deprecated since version 0.4.8 and should not be used in newly-written code.
Use midori_tab_get_web_view()
Since 0.2.5
MidoriView * midori_view_get_for_widget ();
GtkWidget *web_view
Determines the view appropriate for the specified widget.
void midori_view_populate_popup (,
MidoriView *view,
GtkWidget *menu);
gboolean manual
midori_view_populate_popup
has been deprecated since version 0.5.5 and should not be used in newly-written code.
Use midori_view_get_page_context_action()
Populates the given menu
with context menu items
according to the position of the mouse pointer. This
can be used in situations where a custom hotkey
opens the context menu or the default behaviour
needs to be intercepted.
manual
should usually be TRUE
menu
was created by the
Since 0.2.5
GtkWidget * midori_view_add_info_bar (,
MidoriView *view,
GtkMessageType message_typeconst
,gchar *message,
GCallback response_cb,
gpointer user_dataconst
,gchar *first_button_text...
);
Adds an infobar (or equivalent) to the view. Activation of a button invokes the specified callback. The infobar is automatically destroyed if the location changes or reloads.
view |
a |
|
message_type |
a |
|
message |
a message string |
|
response_cb |
a response callback |
|
user_data |
user data passed to the callback |
|
first_button_text |
button text or stock ID |
|
... |
first response ID, then more text - response ID pairs |
Since 0.2.9
constgchar * midori_view_fallback_extension (,
MidoriView *viewconst
);gchar *extension
GList * midori_view_get_resources ();
MidoriView *view
Obtain a list of the resources loaded by the page shown in the view.
void midori_view_list_plugins (,
MidoriView *view,
GString *markup);
gboolean html
void midori_view_list_video_formats (,
MidoriView *view,
GString *formats);
gboolean html
void midori_view_set_colors (,
MidoriView *view,
GdkColor *fg_color);
GdkColor *bg_color
midori_view_set_colors
has been deprecated since version 0.5.7 and should not be used in newly-written code.
Use fg_color/ bg_color on Midori.Tab.
Sets colors on the label.