aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-06-26 23:36:04 +0800
committerXan Lopez <xan@igalia.com>2012-06-26 23:37:52 +0800
commitf43a0d1c1fe3e156d49dd11b55715d1ac7215677 (patch)
tree721587f1e498b820a8b242bfcbd52d6f6b6bcd57 /src
parente12d0362236c12feb2a972629a982b5e8b799822 (diff)
downloadgsoc2013-epiphany-f43a0d1c1fe3e156d49dd11b55715d1ac7215677.tar
gsoc2013-epiphany-f43a0d1c1fe3e156d49dd11b55715d1ac7215677.tar.gz
gsoc2013-epiphany-f43a0d1c1fe3e156d49dd11b55715d1ac7215677.tar.bz2
gsoc2013-epiphany-f43a0d1c1fe3e156d49dd11b55715d1ac7215677.tar.lz
gsoc2013-epiphany-f43a0d1c1fe3e156d49dd11b55715d1ac7215677.tar.xz
gsoc2013-epiphany-f43a0d1c1fe3e156d49dd11b55715d1ac7215677.tar.zst
gsoc2013-epiphany-f43a0d1c1fe3e156d49dd11b55715d1ac7215677.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-notebook.c3
1 files changed, 2 insertions, 1 deletions
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);