diff options
author | Sergio Villar Senin <svillar@igalia.com> | 2011-03-30 15:36:08 +0800 |
---|---|---|
committer | Sergio Villar Senin <svillar@igalia.com> | 2011-06-01 22:00:59 +0800 |
commit | 89cd6749b82686ca78e8d44c5b3fb18fead02363 (patch) | |
tree | 0156a79859ec3a08a5e985d5d538c486980f1b47 /embed/ephy-embed-single.c | |
parent | 813993d057e19bf9f7b1c091d165026c6dad8a41 (diff) | |
download | gsoc2013-epiphany-89cd6749b82686ca78e8d44c5b3fb18fead02363.tar.gz gsoc2013-epiphany-89cd6749b82686ca78e8d44c5b3fb18fead02363.tar.zst gsoc2013-epiphany-89cd6749b82686ca78e8d44c5b3fb18fead02363.zip |
Added about:plugins support.
We are now able to show a page with the list of installed plugins.
Bug #575498
Diffstat (limited to 'embed/ephy-embed-single.c')
-rw-r--r-- | embed/ephy-embed-single.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/embed/ephy-embed-single.c b/embed/ephy-embed-single.c index 2353a122b..a214f82bd 100644 --- a/embed/ephy-embed-single.c +++ b/embed/ephy-embed-single.c @@ -36,6 +36,7 @@ #include "ephy-profile-utils.h" #include "ephy-prefs.h" #include "ephy-settings.h" +#include "ephy-request-about.h" #ifdef ENABLE_CERTIFICATE_MANAGER #include "ephy-certificate-manager.h" @@ -45,6 +46,7 @@ #include <glib/gi18n.h> #include <libsoup/soup-gnome.h> #include <libsoup/soup-cache.h> +#include <libsoup/soup-requester.h> #include <gnome-keyring.h> #define EPHY_EMBED_SINGLE_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_EMBED_SINGLE, EphyEmbedSinglePrivate)) @@ -484,6 +486,7 @@ ephy_embed_single_initialize (EphyEmbedSingle *single) char *cookie_policy; char *cache_dir; EphyEmbedSinglePrivate *priv = single->priv; + SoupSessionFeature *requester; /* Initialise nspluginwrapper's plugins if available */ if (g_file_test (NSPLUGINWRAPPER_SETUP, G_FILE_TEST_EXISTS) != FALSE) @@ -537,6 +540,12 @@ ephy_embed_single_initialize (EphyEmbedSingle *single) G_CALLBACK (cache_size_cb), single); + /* about: URIs handler */ + requester = SOUP_SESSION_FEATURE (soup_requester_new()); + soup_session_add_feature (session, requester); + soup_session_feature_add_feature (requester, EPHY_TYPE_REQUEST_ABOUT); + g_object_unref (requester); + #ifdef SOUP_TYPE_PASSWORD_MANAGER /* Use GNOME keyring to store passwords. Only add the manager if we are not using a private session, otherwise we want any new |