aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2013-03-21 20:35:08 +0800
committerXan Lopez <xan@igalia.com>2013-03-21 20:35:08 +0800
commit98202699e523cb7a8f7ed3fd90b2320ac2dac295 (patch)
tree0e950b1767326f85ff26c665f7dce5d260a717b9
parent6f0c6b15e006dc4ad85b2ea5e3b688164d335de1 (diff)
downloadgsoc2013-epiphany-98202699e523cb7a8f7ed3fd90b2320ac2dac295.tar
gsoc2013-epiphany-98202699e523cb7a8f7ed3fd90b2320ac2dac295.tar.gz
gsoc2013-epiphany-98202699e523cb7a8f7ed3fd90b2320ac2dac295.tar.bz2
gsoc2013-epiphany-98202699e523cb7a8f7ed3fd90b2320ac2dac295.tar.lz
gsoc2013-epiphany-98202699e523cb7a8f7ed3fd90b2320ac2dac295.tar.xz
gsoc2013-epiphany-98202699e523cb7a8f7ed3fd90b2320ac2dac295.tar.zst
gsoc2013-epiphany-98202699e523cb7a8f7ed3fd90b2320ac2dac295.zip
ephy-embed-shell: remove non WebKit2 bits
-rw-r--r--embed/ephy-embed-shell.c52
-rw-r--r--embed/ephy-embed-shell.h4
2 files changed, 0 insertions, 56 deletions
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c
index e64fab833..ba6c840e3 100644
--- a/embed/ephy-embed-shell.c
+++ b/embed/ephy-embed-shell.c
@@ -22,9 +22,6 @@
#include <config.h>
#include "ephy-embed-shell.h"
-#ifndef HAVE_WEBKIT2
-#include "ephy-adblock-manager.h"
-#endif
#include "ephy-debug.h"
#include "ephy-download.h"
#include "ephy-embed-private.h"
@@ -35,9 +32,7 @@
#include "ephy-history-service.h"
#include "ephy-profile-utils.h"
#include "ephy-snapshot-service.h"
-#ifdef HAVE_WEBKIT2
#include "ephy-web-extension.h"
-#endif
#include <glib/gi18n.h>
#include <gtk/gtk.h>
@@ -54,19 +49,14 @@ struct _EphyEmbedShellPrivate
GList *downloads;
EphyEmbedSingle *embed_single;
EphyEncodings *encodings;
-#ifndef HAVE_WEBKIT2
- EphyAdBlockManager *adblock_manager;
-#endif
GtkPageSetup *page_setup;
GtkPrintSettings *print_settings;
EphyEmbedShellMode mode;
EphyFrecentStore *frecent_store;
guint single_initialised : 1;
-#ifdef HAVE_WEBKIT2
GDBusProxy *web_extension;
guint web_extension_watch_name_id;
guint web_extension_form_auth_save_signal_id;
-#endif
};
enum
@@ -107,7 +97,6 @@ ephy_embed_shell_dispose (GObject *object)
g_clear_object (&priv->frecent_store);
g_clear_object (&priv->global_history_service);
g_clear_object (&priv->embed_single);
-#ifdef HAVE_WEBKIT2
if (priv->web_extension_watch_name_id > 0) {
g_bus_unwatch_name (priv->web_extension_watch_name_id);
priv->web_extension_watch_name_id = 0;
@@ -118,9 +107,6 @@ ephy_embed_shell_dispose (GObject *object)
priv->web_extension_form_auth_save_signal_id = 0;
}
g_clear_object (&priv->web_extension);
-#else
- g_clear_object (&priv->adblock_manager);
-#endif
G_OBJECT_CLASS (ephy_embed_shell_parent_class)->dispose (object);
}
@@ -140,7 +126,6 @@ ephy_embed_shell_finalize (GObject *object)
G_OBJECT_CLASS (ephy_embed_shell_parent_class)->finalize (object);
}
-#if HAVE_WEBKIT2
static void
web_extension_form_auth_save_requested (GDBusConnection *connection,
const char *sender_name,
@@ -228,7 +213,6 @@ ephy_embed_shell_watch_web_extension (EphyEmbedShell *shell)
shell, NULL);
g_free (service_name);
}
-#endif
/**
* ephy_embed_shell_get_global_history_service:
@@ -433,9 +417,7 @@ ephy_embed_shell_init (EphyEmbedShell *shell)
shell->priv->downloads = NULL;
-#if HAVE_WEBKIT2
ephy_embed_shell_watch_web_extension (shell);
-#endif
}
static void
@@ -589,38 +571,6 @@ ephy_embed_shell_get_default (void)
return embed_shell;
}
-/**
- * ephy_embed_shell_get_adblock_manager:
- * @shell: the #EphyEmbedShell
- *
- * Returns the adblock manager.
- *
- * Return value: (transfer none): the adblock manager
- **/
-GObject *
-ephy_embed_shell_get_adblock_manager (EphyEmbedShell *shell)
-{
-#ifndef HAVE_WEBKIT2
- EphyEmbedShellPrivate *priv;
-
- g_return_val_if_fail (EPHY_IS_EMBED_SHELL (shell), NULL);
-
- priv = shell->priv;
-
- if (priv->adblock_manager == NULL) {
- priv->adblock_manager = g_object_new (EPHY_TYPE_ADBLOCK_MANAGER, NULL);
-
- ephy_adblock_manager_set_blocker (priv->adblock_manager,
- g_object_new (EPHY_TYPE_ADBLOCK, NULL));
- }
-
- return G_OBJECT (priv->adblock_manager);
-#else
- g_assert_not_reached ();
- return NULL;
-#endif
-}
-
void
ephy_embed_shell_set_page_setup (EphyEmbedShell *shell,
GtkPageSetup *page_setup)
@@ -847,7 +797,6 @@ ephy_embed_shell_launch_handler (EphyEmbedShell *shell,
return ret;
}
-#ifdef HAVE_WEBKIT2
GDBusProxy *
ephy_embed_shell_get_web_extension_proxy (EphyEmbedShell *shell)
{
@@ -855,7 +804,6 @@ ephy_embed_shell_get_web_extension_proxy (EphyEmbedShell *shell)
return shell->priv->web_extension;
}
-#endif
/**
* ephy_embed_shell_clear_cache:
diff --git a/embed/ephy-embed-shell.h b/embed/ephy-embed-shell.h
index 67a60a7c2..169d8757c 100644
--- a/embed/ephy-embed-shell.h
+++ b/embed/ephy-embed-shell.h
@@ -83,7 +83,6 @@ EphyEmbedShell *ephy_embed_shell_get_default (void);
GObject *ephy_embed_shell_get_global_history_service (EphyEmbedShell *shell);
GObject *ephy_embed_shell_get_encodings (EphyEmbedShell *shell);
GObject *ephy_embed_shell_get_embed_single (EphyEmbedShell *shell);
-GObject *ephy_embed_shell_get_adblock_manager (EphyEmbedShell *shell);
void ephy_embed_shell_prepare_close (EphyEmbedShell *shell);
void ephy_embed_shell_restored_window (EphyEmbedShell *shell);
void ephy_embed_shell_set_page_setup (EphyEmbedShell *shell,
@@ -103,10 +102,7 @@ gboolean ephy_embed_shell_launch_handler (EphyEmbedShell
const char *mime_type,
guint32 user_time);
void ephy_embed_shell_clear_cache (EphyEmbedShell *shell);
-
-#ifdef HAVE_WEBKIT2
GDBusProxy *ephy_embed_shell_get_web_extension_proxy (EphyEmbedShell *shell);
-#endif
G_END_DECLS