[epiphany] ephy-shell: add warning message about incorrect usage of ephy_shell_new_tab_full



commit b370ee25bcc3c464b57e4c090ce8adc6677f8f96
Author: Xan Lopez <xan igalia com>
Date:   Sun Dec 11 22:31:44 2011 +0100

    ephy-shell: add warning message about incorrect usage of ephy_shell_new_tab_full

 src/ephy-shell.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index e1645cf..6643e90 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 */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]