[evolution-kolab] EPlugin: register ESourceKolabFolder GType on module load



commit 2eaf66b0f814e9c82b388052e92ec41122bcda21
Author: Christian Hilberg <hilberg kernelconcepts de>
Date:   Fri Oct 19 19:04:09 2012 +0200

    EPlugin: register ESourceKolabFolder GType on module load
    
    * needed to make getting the "Kolab Folder" extension
      from the ESource and using it works

 src/eplugin/e-kolab-plugin.c |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/src/eplugin/e-kolab-plugin.c b/src/eplugin/e-kolab-plugin.c
index 9e0ee2f..d38aeb6 100644
--- a/src/eplugin/e-kolab-plugin.c
+++ b/src/eplugin/e-kolab-plugin.c
@@ -32,6 +32,8 @@
 
 #include <config.h>
 
+#include <libekolab/e-source-kolab-folder.h>
+
 #include "e-kolab-plugin-types.h"
 #include "e-kolab-plugin-ui.h"
 #include "e-kolab-plugin.h"
@@ -45,14 +47,16 @@ gint
 e_plugin_lib_enable (EPlugin *epl,
                      gint enable)
 {
-	/* api demo */
-	g_assert (E_IS_PLUGIN (epl));
+	GType mytype = 0;
+
+	g_return_val_if_fail (E_IS_PLUGIN (epl), 0);
+
+	/* register kolab folder source type */
+	mytype = e_source_kolab_folder_get_type ();
+	g_debug ("%s(): %s registered",
+	         __func__, g_type_name (mytype));
+
 	if (enable) {
-		/* init stuff, call some libekolab/ init function here */
-		/*
-		  bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
-		  bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
-		*/
 		g_debug ("%s(): Kolab plugin enabled", __func__);
 	} else {
 		g_debug ("%s(): Kolab plugin disabled", __func__);



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