From b370ee25bcc3c464b57e4c090ce8adc6677f8f96 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Sun, 11 Dec 2011 22:31:44 +0100 Subject: ephy-shell: add warning message about incorrect usage of ephy_shell_new_tab_full --- src/ephy-shell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ -- cgit v1.2.3