]> git.sur5r.net Git - glabels/blobdiff - glabels2/src/merge-init.c
2009-09-22 Jim Evins <evins@snaught.com>
[glabels] / glabels2 / src / merge-init.c
index a5e585af18c4230762debd5994598336dedfc1ec..9d5756444ec0d5bfd5ce6b37abd737db7c6a7c1a 100644 (file)
@@ -1,31 +1,35 @@
 /*
- *  (GLABELS) Label and Business Card Creation program for GNOME
+ *  merge-init.c
+ *  Copyright (C) 2002-2009  Jim Evins <evins@snaught.com>.
  *
- *  merge.c:  document merge initialization
+ *  This file is part of gLabels.
  *
- *  Copyright (C) 2001-2002  Jim Evins <evins@snaught.com>.
- *
- *  This program is free software; you can redistribute it and/or modify
+ *  gLabels is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
+ *  the Free Software Foundation, either version 3 of the License, or
  *  (at your option) any later version.
  *
- *  This program is distributed in the hope that it will be useful,
+ *  gLabels is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *  GNU General Public License for more details.
  *
  *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+ *  along with gLabels.  If not, see <http://www.gnu.org/licenses/>.
  */
+
 #include <config.h>
 
-#include <gnome.h>
+#include <glib/gi18n.h>
 
 #include "merge-init.h"
 #include "merge-text.h"
 
+#ifdef HAVE_LIBEBOOK
+#include "merge-evolution.h"
+#include "merge-vcard.h"
+#endif /* HAVE_LIBEBOOK */
+
 #include "debug.h"
 
 /*========================================================*/
@@ -69,4 +73,31 @@ gl_merge_init (void)
                                   "delim", '\t',
                                   NULL);
 
+#ifdef HAVE_LIBEBOOK
+
+       gl_merge_register_backend (GL_TYPE_MERGE_EVOLUTION,
+                                  "ebook/eds",
+                                  _("Data from default Evolution Addressbook"),
+                                  GL_MERGE_SRC_IS_FIXED,
+                                  NULL);
+
+       gl_merge_register_backend (GL_TYPE_MERGE_VCARD,
+                                  "ebook/vcard",
+                                  _("Data from a file containing VCards"),
+                                  GL_MERGE_SRC_IS_FILE,
+                                  NULL);
+
+#endif /* HAVE_LIBEBOOK */
+
 }
+
+
+
+/*
+ * Local Variables:       -- emacs
+ * mode: C                -- emacs
+ * c-basic-offset: 8      -- emacs
+ * tab-width: 8           -- emacs
+ * indent-tabs-mode: nil  -- emacs
+ * End:                   -- emacs
+ */