aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2013-02-10 01:11:22 +0800
committerXan Lopez <xan@igalia.com>2013-02-10 01:11:22 +0800
commit21c195f175176781065124e676c5e6654825ee76 (patch)
treed1f3f310dead0ed94c43487c3d7b40a2f5be4ad1 /src
parentae27048386eec40d288100c83df6905b9c259d1a (diff)
downloadgsoc2013-epiphany-21c195f175176781065124e676c5e6654825ee76.tar
gsoc2013-epiphany-21c195f175176781065124e676c5e6654825ee76.tar.gz
gsoc2013-epiphany-21c195f175176781065124e676c5e6654825ee76.tar.bz2
gsoc2013-epiphany-21c195f175176781065124e676c5e6654825ee76.tar.lz
gsoc2013-epiphany-21c195f175176781065124e676c5e6654825ee76.tar.xz
gsoc2013-epiphany-21c195f175176781065124e676c5e6654825ee76.tar.zst
gsoc2013-epiphany-21c195f175176781065124e676c5e6654825ee76.zip
ephy-shell: add g_return_val_if_fails to ephy_shell_new_tab_full
Diffstat (limited to 'src')
-rw-r--r--src/ephy-shell.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 85a92eb83..7fd01d7de 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -736,6 +736,15 @@ ephy_shell_new_tab_full (EphyShell *shell,
gboolean is_empty = FALSE;
int position = -1;
+ g_return_val_if_fail (EPHY_IS_SHELL (shell), NULL);
+ g_return_val_if_fail (EPHY_IS_WINDOW (parent_window) || !parent_window, NULL);
+ g_return_val_if_fail (EPHY_IS_EMBED (previous_embed) || !previous_embed, NULL);
+#ifdef HAVE_WEBKIT2
+ g_return_val_if_fail (WEBKIT_IS_URI_REQUEST (request) || !request, NULL);
+#else
+ g_return_val_if_fail (WEBKIT_IS_NETWORK_REQUEST (request) || !request, NULL);
+#endif
+
embed_shell = EPHY_EMBED_SHELL (shell);
if (flags & EPHY_NEW_TAB_OPEN_PAGE) open_page = TRUE;