From f43a0d1c1fe3e156d49dd11b55715d1ac7215677 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Tue, 26 Jun 2012 17:36:04 +0200 Subject: ephy-notebook: do not assume the type of the child widget in 'remove' Since commit 325cf071d1 in GTK+ the 'remove' method will be called also with the tab label widget, so do not assert when the type is not EphyEmbed, just do nothing. --- src/ephy-notebook.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c index 1b8eeb0b3..6a43412f0 100644 --- a/src/ephy-notebook.c +++ b/src/ephy-notebook.c @@ -764,7 +764,8 @@ ephy_notebook_remove (GtkContainer *container, int position, curr; EphyWebView *view; - g_assert (EPHY_IS_EMBED (tab_widget)); + if (!EPHY_IS_EMBED (tab_widget)) + return; /* Remove the page from the focused pages list */ priv->focused_pages = g_list_remove (priv->focused_pages, tab_widget); -- cgit v1.2.3