[epiphany-extensions/peas: 15/15] certificates: ported to libpeas



commit 04f4f553936e3124df3d3bd00dfce0bd7b082d33
Author: Diego Escalante Urrelo <descalante igalia com>
Date:   Thu Apr 7 16:52:55 2011 -0500

    certificates: ported to libpeas
    
    doesn't really work anyway

 extensions/certificates/Makefile.am                |   11 ++---
 .../certificates/certificates.ephy-extension.in.in |   11 -----
 extensions/certificates/certificates.plugin.in.in  |    7 +++
 .../certificates/ephy-certificates-extension.c     |   12 +++++-
 .../certificates/ephy-certificates-extension.h     |    4 +-
 extensions/certificates/extension.c                |   44 --------------------
 6 files changed, 26 insertions(+), 63 deletions(-)
---
diff --git a/extensions/certificates/Makefile.am b/extensions/certificates/Makefile.am
index eb80b73..75d0346 100644
--- a/extensions/certificates/Makefile.am
+++ b/extensions/certificates/Makefile.am
@@ -5,8 +5,7 @@ extension_LTLIBRARIES = libcertificatesextension.la
 
 libcertificatesextension_la_SOURCES = \
 	ephy-certificates-extension.c	\
-	ephy-certificates-extension.h	\
-	extension.c
+	ephy-certificates-extension.h
 
 libcertificatesextension_la_CPPFLAGS = \
         -I$(top_srcdir)/include				\
@@ -20,14 +19,14 @@ libcertificatesextension_la_CFLAGS = \
 
 libcertificatesextension_la_LDFLAGS = \
 	-module -avoid-version \
-	-export-symbols $(top_srcdir)/ephy-extension.symbols \
+	-no-undefined \
 	$(AM_LDFLAGS)
 
 extensioninidir = $(extensiondir)
-extensionini_in_files = certificates.ephy-extension.in.in
-extensionini_DATA = $(extensionini_in_files:.ephy-extension.in.in=.ephy-extension)
+extensionini_in_files = certificates.plugin.in.in
+extensionini_DATA = $(extensionini_in_files:.plugin.in.in=.plugin)
 
-%.ephy-extension.in: %.ephy-extension.in.in $(extension_LTLIBRARIES)
+%.plugin.in: %.plugin.in.in $(extension_LTLIBRARIES)
 	$(AM_V_GEN) \
 	sed -e "s|%LIBRARY%|`. ./$(extension_LTLIBRARIES) && echo $$dlname`|" \
 	    -e "s|%EXTENSION_DIR%|$(extensiondir)|" \
diff --git a/extensions/certificates/certificates.plugin.in.in b/extensions/certificates/certificates.plugin.in.in
new file mode 100644
index 0000000..42c9bdb
--- /dev/null
+++ b/extensions/certificates/certificates.plugin.in.in
@@ -0,0 +1,7 @@
+[Plugin]
+Module=%LIBRARY%
+_Name=Certificates
+_Description=View the page certificate and manage the certificates
+Authors=Christian Persch <chpe gnome org>
+IAge=1
+Website=http://www.gnome.org/projects/epiphany/extensions.html
diff --git a/extensions/certificates/ephy-certificates-extension.c b/extensions/certificates/ephy-certificates-extension.c
index 0d4a71d..7161bc5 100644
--- a/extensions/certificates/ephy-certificates-extension.c
+++ b/extensions/certificates/ephy-certificates-extension.c
@@ -28,7 +28,7 @@
 #include <epiphany/epiphany.h>
 
 #include <gtk/gtk.h>
-#include <gmodule.h>
+#include <libpeas/peas.h>
 #include <glib/gi18n-lib.h>
 
 #define EPHY_CERTIFICATES_EXTENSION_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_CERTIFICATES_EXTENSION, EphyCertificatesExtensionPrivate))
@@ -302,3 +302,13 @@ ephy_certificates_extension_class_init (EphyCertificatesExtensionClass *klass)
 
 	g_type_class_add_private (object_class, sizeof (EphyCertificatesExtensionPrivate));
 }
+
+G_MODULE_EXPORT void
+peas_register_types (PeasObjectModule *module)
+{
+	ephy_certificates_extension_register_type (G_TYPE_MODULE (module));
+
+	peas_object_module_register_extension_type (module,
+						    EPHY_TYPE_EXTENSION,
+						    EPHY_TYPE_CERTIFICATES_EXTENSION);
+}
diff --git a/extensions/certificates/ephy-certificates-extension.h b/extensions/certificates/ephy-certificates-extension.h
index cf88d2e..82056cd 100644
--- a/extensions/certificates/ephy-certificates-extension.h
+++ b/extensions/certificates/ephy-certificates-extension.h
@@ -23,7 +23,7 @@
 #define EPHY_CERTIFICATES_EXTENSION_H
 
 #include <glib.h>
-#include <glib-object.h>
+#include <libpeas/peas.h>
 
 G_BEGIN_DECLS
 
@@ -54,6 +54,8 @@ GType	ephy_certificates_extension_get_type		(void);
 
 GType	ephy_certificates_extension_register_type	(GTypeModule *module);
 
+G_MODULE_EXPORT void	peas_register_types	(PeasObjectModule *module);
+
 G_END_DECLS
 
 #endif



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