aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-shell.c
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2013-02-08 04:00:06 +0800
committerXan Lopez <xan@igalia.com>2013-02-08 04:00:06 +0800
commit370d8d7a79ee3b4270f67fe4664875b288a6f89a (patch)
treea28e19b27d49dfd9bbc8464b245abf337f0a62ff /src/ephy-shell.c
parentb0fff802887880765e36bbfb8ff56c91ecc4666e (diff)
downloadgsoc2013-epiphany-370d8d7a79ee3b4270f67fe4664875b288a6f89a.tar
gsoc2013-epiphany-370d8d7a79ee3b4270f67fe4664875b288a6f89a.tar.gz
gsoc2013-epiphany-370d8d7a79ee3b4270f67fe4664875b288a6f89a.tar.bz2
gsoc2013-epiphany-370d8d7a79ee3b4270f67fe4664875b288a6f89a.tar.lz
gsoc2013-epiphany-370d8d7a79ee3b4270f67fe4664875b288a6f89a.tar.xz
gsoc2013-epiphany-370d8d7a79ee3b4270f67fe4664875b288a6f89a.tar.zst
gsoc2013-epiphany-370d8d7a79ee3b4270f67fe4664875b288a6f89a.zip
ephy-shell: return the proper types for EphySession and GNetworkMonitor
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r--src/ephy-shell.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 5236f2aff..81fd0d4c5 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -119,7 +119,7 @@ ephy_shell_startup_continue (EphyShell *shell)
EphyShellStartupContext *ctx;
EphySession *session;
- session = EPHY_SESSION (ephy_shell_get_session (shell));
+ session = ephy_shell_get_session (shell);
g_assert (session != NULL);
ctx = shell->priv->startup_context;
@@ -267,7 +267,7 @@ ephy_shell_activate (GApplication *application)
EphyShellStartupContext *ctx;
ctx = shell->priv->startup_context;
- ephy_session_resume (EPHY_SESSION (ephy_shell_get_session (shell)),
+ ephy_session_resume (ephy_shell_get_session (shell),
ctx->user_time, NULL, session_load_cb, shell);
} else
ephy_shell_startup_continue (shell);
@@ -919,7 +919,7 @@ ephy_shell_new_tab (EphyShell *shell,
*
* Return value: (transfer none): the current session.
**/
-GObject *
+EphySession *
ephy_shell_get_session (EphyShell *shell)
{
g_return_val_if_fail (EPHY_IS_SHELL (shell), NULL);
@@ -927,7 +927,7 @@ ephy_shell_get_session (EphyShell *shell)
if (shell->priv->session == NULL)
shell->priv->session = g_object_new (EPHY_TYPE_SESSION, NULL);
- return G_OBJECT (shell->priv->session);
+ return shell->priv->session;
}
/**
@@ -950,7 +950,7 @@ ephy_shell_get_bookmarks (EphyShell *shell)
*
* Return value: (transfer none):
**/
-GObject *
+GNetworkMonitor *
ephy_shell_get_net_monitor (EphyShell *shell)
{
EphyShellPrivate *priv = shell->priv;
@@ -958,7 +958,7 @@ ephy_shell_get_net_monitor (EphyShell *shell)
if (priv->network_monitor == NULL)
priv->network_monitor = g_network_monitor_get_default ();
- return G_OBJECT (priv->network_monitor);
+ return priv->network_monitor;
}
/**
@@ -1141,7 +1141,7 @@ ephy_shell_close_all_windows (EphyShell *shell)
g_return_val_if_fail (EPHY_IS_SHELL (shell), FALSE);
- ephy_session_close (EPHY_SESSION (ephy_shell_get_session (shell)));
+ ephy_session_close (ephy_shell_get_session (shell));
windows = shell->priv->windows;
while (windows) {