diff options
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r-- | src/ephy-shell.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c index 3f39fe67a..3d8fc523f 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -23,7 +23,9 @@ #include "config.h" #include "ephy-shell.h" +#ifndef HAVE_WEBKIT2 #include "ephy-adblock-manager.h" +#endif #include "ephy-bookmarks-editor.h" #include "ephy-bookmarks-import.h" #include "ephy-debug.h" @@ -477,9 +479,11 @@ ephy_shell_constructed (GObject *object) /* FIXME: not sure if this is the best place to put this stuff. */ ephy_shell_get_lockdown (EPHY_SHELL (object)); - + +#ifndef HAVE_WEBKIT2 if (ephy_embed_shell_get_mode (EPHY_EMBED_SHELL (object)) != EPHY_EMBED_SHELL_MODE_TEST) ephy_embed_shell_get_adblock_manager (EPHY_EMBED_SHELL (object)); +#endif if (G_OBJECT_CLASS (ephy_shell_parent_class)->constructed) G_OBJECT_CLASS (ephy_shell_parent_class)->constructed (object); |