aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-10-08 21:57:57 +0800
committerXan Lopez <xan@igalia.com>2012-10-08 22:01:26 +0800
commit3beb3efa30181600fb756ca108f0b799b851871f (patch)
tree5f639f01b3f4336c69ba34e21bc192a5ed13f5d2 /src/ephy-window.c
parentbe3e52e1c22a05b655c3b322045d1f5c6fd76c7f (diff)
downloadgsoc2013-epiphany-3beb3efa30181600fb756ca108f0b799b851871f.tar
gsoc2013-epiphany-3beb3efa30181600fb756ca108f0b799b851871f.tar.gz
gsoc2013-epiphany-3beb3efa30181600fb756ca108f0b799b851871f.tar.bz2
gsoc2013-epiphany-3beb3efa30181600fb756ca108f0b799b851871f.tar.lz
gsoc2013-epiphany-3beb3efa30181600fb756ca108f0b799b851871f.tar.xz
gsoc2013-epiphany-3beb3efa30181600fb756ca108f0b799b851871f.tar.zst
gsoc2013-epiphany-3beb3efa30181600fb756ca108f0b799b851871f.zip
Remove extensions support
This removes the old style extension support, you can read the rationale in the bug report. https://bugzilla.gnome.org/show_bug.cgi?id=685630
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r--src/ephy-window.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index c84d0c6a2..6be58fe54 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -37,7 +37,6 @@
#include "ephy-embed-type-builtins.h"
#include "ephy-embed-utils.h"
#include "ephy-encoding-menu.h"
-#include "ephy-extension.h"
#include "ephy-file-helpers.h"
#include "ephy-find-toolbar.h"
#include "ephy-gui.h"
@@ -94,7 +93,6 @@ static const GtkActionEntry ephy_menu_entries [] = {
{ "PopupAction", NULL, "" },
{ "PagePopupAction", NULL, "" },
{ "NotebookPopupAction", NULL, "" },
- { "Extensions", NULL, N_("_Extensions") },
/* File actions. */
@@ -2926,7 +2924,6 @@ notebook_page_added_cb (EphyNotebook *notebook,
EphyWindow *window)
{
EphyWindowPrivate *priv = window->priv;
- EphyExtension *manager;
LOG ("page-added notebook %p embed %p position %u\n", notebook, embed, position);
@@ -2941,10 +2938,6 @@ notebook_page_added_cb (EphyNotebook *notebook,
g_signal_connect_object (ephy_embed_get_web_view (embed), "ge-modal-alert",
G_CALLBACK (embed_modal_alert_cb), window, G_CONNECT_AFTER);
- /* Let the extensions attach themselves to the tab */
- manager = EPHY_EXTENSION (ephy_shell_get_extensions_manager (ephy_shell));
- ephy_extension_attach_tab (manager, window, embed);
-
if (priv->present_on_insert)
{
priv->present_on_insert = FALSE;
@@ -2961,7 +2954,6 @@ notebook_page_removed_cb (EphyNotebook *notebook,
EphyWindow *window)
{
EphyWindowPrivate *priv = window->priv;
- EphyExtension *manager;
LOG ("page-removed notebook %p embed %p position %u\n", notebook, embed, position);
@@ -2969,10 +2961,6 @@ notebook_page_removed_cb (EphyNotebook *notebook,
g_return_if_fail (EPHY_IS_EMBED (embed));
- /* Let the extensions remove themselves from the tab */
- manager = EPHY_EXTENSION (ephy_shell_get_extensions_manager (ephy_shell));
- ephy_extension_detach_tab (manager, window, embed);
-
#if 0
g_signal_handlers_disconnect_by_func (G_OBJECT (embed),
G_CALLBACK (ephy_link_open),
@@ -3233,13 +3221,8 @@ ephy_window_dispose (GObject *object)
/* Only do these once */
if (window->priv->closing == FALSE)
{
- EphyExtension *manager;
-
window->priv->closing = TRUE;
- /* Let the extensions detach themselves from the window */
- manager = EPHY_EXTENSION (ephy_shell_get_extensions_manager (ephy_shell));
- ephy_extension_detach_window (manager, window);
ephy_bookmarks_ui_detach_window (window);
g_signal_handlers_disconnect_by_func
@@ -3593,7 +3576,6 @@ ephy_window_constructor (GType type,
GObject *object;
EphyWindow *window;
EphyWindowPrivate *priv;
- EphyExtension *manager;
EphyEmbedSingle *single;
GtkSettings *settings;
GtkAction *action;
@@ -3711,9 +3693,6 @@ ephy_window_constructor (GType type,
/* Initialize the menus */
priv->enc_menu = ephy_encoding_menu_new (window);
- /* Once the window is sufficiently created let the extensions attach to it */
- manager = EPHY_EXTENSION (ephy_shell_get_extensions_manager (ephy_shell));
- ephy_extension_attach_window (manager, window);
ephy_bookmarks_ui_attach_window (window);
/* other notifiers */