aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-shell.c
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2011-12-12 05:31:44 +0800
committerXan Lopez <xan@igalia.com>2011-12-12 05:31:44 +0800
commitb370ee25bcc3c464b57e4c090ce8adc6677f8f96 (patch)
tree101fb252e625cbcd0756b0d9feac7530855642ad /src/ephy-shell.c
parent41b6a04b3e147adebfad65b634f4f54a15328064 (diff)
downloadgsoc2013-epiphany-b370ee25bcc3c464b57e4c090ce8adc6677f8f96.tar
gsoc2013-epiphany-b370ee25bcc3c464b57e4c090ce8adc6677f8f96.tar.gz
gsoc2013-epiphany-b370ee25bcc3c464b57e4c090ce8adc6677f8f96.tar.bz2
gsoc2013-epiphany-b370ee25bcc3c464b57e4c090ce8adc6677f8f96.tar.lz
gsoc2013-epiphany-b370ee25bcc3c464b57e4c090ce8adc6677f8f96.tar.xz
gsoc2013-epiphany-b370ee25bcc3c464b57e4c090ce8adc6677f8f96.tar.zst
gsoc2013-epiphany-b370ee25bcc3c464b57e4c090ce8adc6677f8f96.zip
ephy-shell: add warning message about incorrect usage of ephy_shell_new_tab_full
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r--src/ephy-shell.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index e1645cf2c..6643e90e2 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -662,7 +662,8 @@ ephy_shell_new_tab_full (EphyShell *shell,
/* FIXME this assumes the tab is the direct notebook child */
position = gtk_notebook_page_num (GTK_NOTEBOOK (nb),
GTK_WIDGET (previous_embed)) + 1;
- }
+ } else
+ g_warning ("Requested to append new tab after parent, but 'previous_embed' was NULL");
if (flags & EPHY_NEW_TAB_FROM_EXTERNAL) {
/* If the active embed is blank, us e that to open the url and jump to it */