From e63a085bb01b783057e0cba91725f3af884d3292 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Sun, 30 Dec 2007 00:24:40 +0000 Subject: Port ephy-window.c to the new API, remove old API. Closes bug #506005 svn path=/trunk/; revision=7836 --- embed/ephy-embed.c | 75 ------------------------------------------------------ 1 file changed, 75 deletions(-) (limited to 'embed/ephy-embed.c') diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index 48fcee4e9..267b353fc 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -676,81 +676,6 @@ ephy_embed_scroll_pixels (EphyEmbed *embed, iface->scroll_pixels (embed, dx, dy); } -/** - * ephy_embed_shistory_n_items: - * @embed: an #EphyEmbed - * - * Returns the number of items in @embed's history. In other words, returns the - * number of pages @embed has visited. - * - * The number is upper-bound by Mozilla's browser.sessionhistory.max_entries - * preference. - * - * Return value: the number of items in @embed's history - **/ -int -ephy_embed_shistory_n_items (EphyEmbed *embed) -{ - EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed); - return iface->shistory_n_items (embed); -} - -/** - * ephy_embed_shistory_get_nth: - * @embed: an #EphyEmbed - * @nth: index of the desired page in @embed's browser history - * @is_relative: if %TRUE, add @embed's current history position to @nth - * @url: returned value of the history entry's URL - * @title: returned value of the history entry's title - * - * Fetches the @url and @title of the @nth item in @embed's session history. - * If @is_relative is %TRUE, @nth is an offset from the browser's current - * history position. For example, calling this function with @is_relative %TRUE - * and @nth %0 will return the URL and title of the current page. - **/ -void -ephy_embed_shistory_get_nth (EphyEmbed *embed, - int nth, - gboolean is_relative, - char **url, - char **title) -{ - EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed); - iface->shistory_get_nth (embed, nth, is_relative, url, title); -} - -/** - * ephy_embed_shistory_get_pos: - * @embed: an #EphyEmbed - * - * Returns @embed's current position in its history. If the user never uses the - * "Back" button, this number will be the same as the return value of - * ephy_embed_shistory_n_items(). - * - * Return value: @embed's current position in its history - **/ -int -ephy_embed_shistory_get_pos (EphyEmbed *embed) -{ - EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed); - return iface->shistory_get_pos (embed); -} - -/** - * ephy_embed_shistory_go_nth: - * @embed: an #EphyEmbed - * @nth: desired history index - * - * Opens the webpage at location @nth in @embed's history. - **/ -void -ephy_embed_shistory_go_nth (EphyEmbed *embed, - int nth) -{ - EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed); - iface->shistory_go_nth (embed, nth); -} - /** * ephy_embed_shistory_copy: * @source: the #EphyEmbed to copy the history from -- cgit v1.2.3