diff options
author | Xan Lopez <xan@src.gnome.org> | 2007-12-30 00:58:41 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2007-12-30 00:58:41 +0800 |
commit | 845fb8717fa53f67893f5f4b17bbdb711e11da2f (patch) | |
tree | 40fdb192f2025e51e85eac83be3fa725a694d6b0 /embed/ephy-embed.c | |
parent | 9c053200d3fbc1f8d7b6a0a70dab807d7461b716 (diff) | |
download | gsoc2013-epiphany-845fb8717fa53f67893f5f4b17bbdb711e11da2f.tar.gz gsoc2013-epiphany-845fb8717fa53f67893f5f4b17bbdb711e11da2f.tar.zst gsoc2013-epiphany-845fb8717fa53f67893f5f4b17bbdb711e11da2f.zip |
Add new embed history interfaces.
svn path=/trunk/; revision=7832
Diffstat (limited to 'embed/ephy-embed.c')
-rw-r--r-- | embed/ephy-embed.c | 79 |
1 files changed, 78 insertions, 1 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index 042e323e0..48fcee4e9 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -1138,7 +1138,7 @@ ephy_embed_get_loading_title (EphyEmbed *embed) * Returns whether the @embed's toplevel is visible or not. Used * mostly for popup visibility management. * - * Return value; %TRUE if @embed's "visibility" property is set + * Return value: %TRUE if @embed's "visibility" property is set **/ gboolean ephy_embed_get_visibility (EphyEmbed *embed) @@ -1146,3 +1146,80 @@ ephy_embed_get_visibility (EphyEmbed *embed) EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed); return iface->get_visibility (embed); } + +/** + * ephy_embed_get_backward_history: + * @embed: an #EphyEmbed + * + * Returns a #GList of #EphyHistoryItem compromising the + * history items preceding the current location. + * + * Return value: a #GList with the preceding history items + **/ +GList* +ephy_embed_get_backward_history (EphyEmbed *embed) +{ + EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed); + return iface->get_backward_history (embed); +} + +/** + * ephy_embed_get_forward_history: + * @embed: an #EphyEmbed + * + * Returns a #GList of #EphyHistoryItem compromising the + * history items succeeding the current location. + * + * Return value: a #GList with the succeeding history items + **/ +GList* +ephy_embed_get_forward_history (EphyEmbed *embed) +{ + EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed); + return iface->get_forward_history (embed); +} + +/** + * ephy_embed_get_previous_history_item: + * @embed: an #EphyEmbed + * + * Returns the preceding #EphyHistoryItem in the history list. + * + * Return value: the preceding #EphyHistoryItem + **/ +EphyHistoryItem* +ephy_embed_get_previous_history_item (EphyEmbed *embed) +{ + EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed); + return iface->get_previous_history_item (embed); +} + +/** + * ephy_embed_get_next_history_item: + * @embed: an #EphyEmbed + * + * Returns the succeeding #EphyHistoryItem in the history list. + * + * Return value: the succeeding #EphyHistoryItem + **/ +EphyHistoryItem* +ephy_embed_get_next_history_item (EphyEmbed *embed) +{ + EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed); + return iface->get_next_history_item (embed); +} + +/** + * ephy_embed_go_to_history_item: + * @embed: an #EphyEmbed + * @history_item: an #EphyHistoryItem + * + * Opens the webpage specified by @history_item in @embed's history. + * + **/ +void +ephy_embed_go_to_history_item (EphyEmbed *embed, EphyHistoryItem *history_item) +{ + EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed); + iface->go_to_history_item (embed, history_item); +} |