diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2011-08-26 19:25:39 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-03-07 04:49:43 +0800 |
commit | 1721164d2a3573df3681eb944199d036b10f159d (patch) | |
tree | aa10da7aba3c63c3e935cbe82582990139e518df /embed/ephy-embed-shell.c | |
parent | 428ae4cb1c656f2c05121b1889b88435306b7334 (diff) | |
download | gsoc2013-epiphany-1721164d2a3573df3681eb944199d036b10f159d.tar.gz gsoc2013-epiphany-1721164d2a3573df3681eb944199d036b10f159d.tar.zst gsoc2013-epiphany-1721164d2a3573df3681eb944199d036b10f159d.zip |
Add a EphyBrowseHistory instance to EphyEmbedShell
Diffstat (limited to 'embed/ephy-embed-shell.c')
-rw-r--r-- | embed/ephy-embed-shell.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c index f0332b26b..63fe5c1d3 100644 --- a/embed/ephy-embed-shell.c +++ b/embed/ephy-embed-shell.c @@ -37,6 +37,7 @@ #include "ephy-favicon-cache.h" #include "ephy-file-helpers.h" #include "ephy-history.h" +#include "ephy-browse-history.h" #include "ephy-print-utils.h" @@ -52,6 +53,7 @@ struct _EphyEmbedShellPrivate { EphyHistory *global_history; + EphyBrowseHistory *global_browse_history; GList *downloads; EphyFaviconCache *favicon_cache; EphyEmbedSingle *embed_single; @@ -143,6 +145,12 @@ ephy_embed_shell_finalize (GObject *object) g_object_unref (shell->priv->global_history); } + if (shell->priv->global_browse_history) + { + LOG ("Unref browse history"); + g_object_unref (shell->priv->global_browse_history); + } + if (shell->priv->embed_single) { LOG ("Unref embed single"); @@ -199,6 +207,25 @@ ephy_embed_shell_get_global_history (EphyEmbedShell *shell) return G_OBJECT (shell->priv->global_history); } +/** + * ephy_embed_shell_get_global_browse_history: + * @shell: the #EphyEmbedShell + * + * Return value: (transfer none): + **/ +GObject * +ephy_embed_shell_get_global_browse_history (EphyEmbedShell *shell) +{ + g_return_val_if_fail (EPHY_IS_EMBED_SHELL (shell), NULL); + + if (shell->priv->global_browse_history == NULL) + { + shell->priv->global_browse_history = ephy_browse_history_new (); + } + + return G_OBJECT (shell->priv->global_browse_history); +} + static GObject * impl_get_embed_single (EphyEmbedShell *shell) { |