[grilo] Move g_module_supported() to grl_init()
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] Move g_module_supported() to grl_init()
- Date: Mon, 14 Jun 2010 08:11:39 +0000 (UTC)
commit 1211b258fe8129e24bbae65793184269be40f0b5
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date: Thu Jun 10 18:44:53 2010 +0200
Move g_module_supported() to grl_init()
All requirements should be checked in grl_init().
src/grilo.c | 5 +++++
src/grl-plugin-registry.c | 4 ----
2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/grilo.c b/src/grilo.c
index 5eb4222..d74ae8b 100644
--- a/src/grilo.c
+++ b/src/grilo.c
@@ -63,6 +63,11 @@ grl_init (gint *argc,
g_option_context_parse (ctx, argc, argv, NULL);
g_option_context_free (ctx);
+ /* Initialize GModule */
+ if (!g_module_supported ()) {
+ g_error ("GModule not supported in this system");
+ }
+
/* Register default metadata keys */
registry = grl_plugin_registry_get_instance ();
grl_metadata_key_setup_system_keys (registry);
diff --git a/src/grl-plugin-registry.c b/src/grl-plugin-registry.c
index a9ae9f6..86418b4 100644
--- a/src/grl-plugin-registry.c
+++ b/src/grl-plugin-registry.c
@@ -76,10 +76,6 @@ G_DEFINE_TYPE (GrlPluginRegistry, grl_plugin_registry, G_TYPE_OBJECT);
static void
grl_plugin_registry_class_init (GrlPluginRegistryClass *klass)
{
- if (!g_module_supported ()) {
- g_error ("GModule not supported in this system");
- }
-
g_type_class_add_private (klass, sizeof (GrlPluginRegistryPrivate));
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]