aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/Makefile.am
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-03-20 05:18:19 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-04-08 00:59:44 +0800
commitfe94770c2e5689f8442e088c3e14004a30143e01 (patch)
tree63b4302a179b0e026abd3e500a02747903a38647 /e-util/Makefile.am
parent42a69b14dfe9b4f05bfd24e71f228c1f392e2a39 (diff)
downloadgsoc2013-evolution-fe94770c2e5689f8442e088c3e14004a30143e01.tar.gz
gsoc2013-evolution-fe94770c2e5689f8442e088c3e14004a30143e01.tar.zst
gsoc2013-evolution-fe94770c2e5689f8442e088c3e14004a30143e01.zip
Introduce a simple extension system for objects.
This introduces a simple means of extending Evolution objects. Any GObject subclass wishing to be extensible need only call g_type_add_interface_static (type, E_TYPE_EXTENSIBLE, NULL); when registering its GType, and then at some point during initialization call e_extensible_load_extensions() to load extensions for that subclass. Extensions are implemented by subclassing EExtension, setting the GType being extended in EExtensionClass, and making sure its own GType gets registered at startup. This usually done while loading a GTypeModule. e_extension_get_extensible() provides extensions access to the object being extended.
Diffstat (limited to 'e-util/Makefile.am')
-rw-r--r--e-util/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/e-util/Makefile.am b/e-util/Makefile.am
index 7384333452..99f873cbd8 100644
--- a/e-util/Makefile.am
+++ b/e-util/Makefile.am
@@ -25,6 +25,8 @@ eutilinclude_HEADERS = \
e-dialog-utils.h \
e-dialog-widgets.h \
e-event.h \
+ e-extensible.h \
+ e-extension.h \
e-file-utils.h \
e-folder-map.h \
e-html-utils.h \
@@ -103,6 +105,8 @@ libeutil_la_SOURCES = \
e-dialog-utils.c \
e-dialog-widgets.c \
e-event.c \
+ e-extensible.c \
+ e-extension.c \
e-file-utils.c \
e-folder-map.c \
e-html-utils.c \