aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-extensions-manager.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2009-02-07 23:13:33 +0800
committerChristian Persch <chpe@src.gnome.org>2009-02-07 23:13:33 +0800
commit2e720b50fa23e3045d0869ba09a4d6a005e9e14c (patch)
tree3249821df198f34c00fa631df32abb0c06a7fb46 /src/ephy-extensions-manager.c
parent642eb45983933bf096844c0acb6b841fd5fa9ad3 (diff)
downloadgsoc2013-epiphany-2e720b50fa23e3045d0869ba09a4d6a005e9e14c.tar
gsoc2013-epiphany-2e720b50fa23e3045d0869ba09a4d6a005e9e14c.tar.gz
gsoc2013-epiphany-2e720b50fa23e3045d0869ba09a4d6a005e9e14c.tar.bz2
gsoc2013-epiphany-2e720b50fa23e3045d0869ba09a4d6a005e9e14c.tar.lz
gsoc2013-epiphany-2e720b50fa23e3045d0869ba09a4d6a005e9e14c.tar.xz
gsoc2013-epiphany-2e720b50fa23e3045d0869ba09a4d6a005e9e14c.tar.zst
gsoc2013-epiphany-2e720b50fa23e3045d0869ba09a4d6a005e9e14c.zip
Add seed support; use --enable-seed to check it out. Patch by Robert Carr.
svn path=/trunk/; revision=8756
Diffstat (limited to 'src/ephy-extensions-manager.c')
-rw-r--r--src/ephy-extensions-manager.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ephy-extensions-manager.c b/src/ephy-extensions-manager.c
index e6f3c58ef..bd195c616 100644
--- a/src/ephy-extensions-manager.c
+++ b/src/ephy-extensions-manager.c
@@ -60,6 +60,10 @@
#include "ephy-python-loader.h"
#endif
+#ifdef ENABLE_SEED
+#include "ephy-seed-loader.h"
+#endif
+
#define CONF_LOADED_EXTENSIONS "/apps/epiphany/general/active_extensions"
#define EE_GROUP "Epiphany Extension"
#define DOT_INI ".ephy-extension"
@@ -593,6 +597,20 @@ get_loader_for_type (EphyExtensionsManager *manager,
#endif
}
+#ifdef ENABLE_SEED
+ if (strcmp (type, "seed") == 0)
+ {
+ info = g_new (LoaderInfo, 1);
+ info->type = g_strdup (type);
+ info->loader = g_object_new (EPHY_TYPE_SEED_LOADER, NULL);
+
+ manager->priv->factories =
+ g_list_append (manager->priv->factories, info);
+
+ return g_object_ref (info->loader);
+ return NULL;
+ }
+#endif
shlib_loader = get_loader_for_type (manager, "shlib");
g_return_val_if_fail (shlib_loader != NULL, NULL);