[totem/introspection: 9/17] Re-enable Python plugins support



commit a23e06d4ea6eef6e00c7b633db37120cd022ff64
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sun Jun 27 01:01:15 2010 +0100

    Re-enable Python plugins support

 configure.in                       |    5 +----
 src/plugins/totem-plugins-engine.c |    6 ++----
 2 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/configure.in b/configure.in
index af09d77..16c137a 100644
--- a/configure.in
+++ b/configure.in
@@ -62,6 +62,7 @@ AC_SUBST(TOTEM_VERSION_MICRO)
 
 TOTEM_API_VERSION=totem_api_version_major.totem_api_version_minor
 AC_SUBST(TOTEM_API_VERSION)
+AC_DEFINE_UNQUOTED(TOTEM_API_VERSION, ["$TOTEM_API_VERSION"], [Define to the Totem plugin API version])
 
 # The full list of plugins
 allowed_plugins="thumbnail screensaver ontop galago gromit lirc media-player-keys mythtv properties sidebar-test skipto sample-python sample-vala bemused youtube publish tracker pythonconsole jamendo opensubtitles screenshot brasero-disc-recorder coherence_upnp dbus-service iplayer"
@@ -285,10 +286,6 @@ AC_ARG_ENABLE([python],
 	[enable_python=autodetect have_python=yes])
 AC_MSG_RESULT([$enable_python])
 
-# FIXME
-# Disabling Python support until we get PyGTK for GTK3
-have_python=no
-
 if test "x$have_python" != "xyes"; then
 	if test "x$enable_python" = "xyes"; then
 		AC_MSG_ERROR([Python not found])
diff --git a/src/plugins/totem-plugins-engine.c b/src/plugins/totem-plugins-engine.c
index ad18c8c..5be4d6e 100644
--- a/src/plugins/totem-plugins-engine.c
+++ b/src/plugins/totem-plugins-engine.c
@@ -208,6 +208,8 @@ totem_plugins_engine_get_default (TotemObject *totem)
 	g_return_val_if_fail (totem != NULL, NULL);
 
 	g_irepository_require (g_irepository_get_default (), "Peas", "1.0", 0, NULL);
+	g_irepository_require (g_irepository_get_default (), "PeasUI", "1.0", 0, NULL);
+	g_irepository_require (g_irepository_get_default (), "Totem", TOTEM_API_VERSION, 0, NULL);
 
 	paths = totem_get_plugin_paths ();
 
@@ -230,10 +232,6 @@ totem_plugins_engine_get_default (TotemObject *totem)
 	g_object_add_weak_pointer (G_OBJECT (engine),
 				   (gpointer) &engine);
 
-	/* FIXME
-	 * Disable python loader for now */
-	peas_engine_disable_loader (PEAS_ENGINE (engine), "python");
-
 	engine->priv->totem = g_object_ref (totem);
 
 	engine->priv->activatable_extensions = peas_extension_set_new (PEAS_ENGINE (engine),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]