diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-03-22 10:22:57 +0800 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-04-07 19:13:36 +0800 |
commit | 13fb16f2793ee91099b1f2960c1875896991f1c4 (patch) | |
tree | 9d5832e48bd514baeb24e158db0693f5a1202f7f /e-util/e-extensible.h | |
parent | 83e36a49baa491609bda692e36006123a7aa079f (diff) | |
download | gsoc2013-evolution-13fb16f2793ee91099b1f2960c1875896991f1c4.tar gsoc2013-evolution-13fb16f2793ee91099b1f2960c1875896991f1c4.tar.gz gsoc2013-evolution-13fb16f2793ee91099b1f2960c1875896991f1c4.tar.bz2 gsoc2013-evolution-13fb16f2793ee91099b1f2960c1875896991f1c4.tar.lz gsoc2013-evolution-13fb16f2793ee91099b1f2960c1875896991f1c4.tar.xz gsoc2013-evolution-13fb16f2793ee91099b1f2960c1875896991f1c4.tar.zst gsoc2013-evolution-13fb16f2793ee91099b1f2960c1875896991f1c4.zip |
Demonstrate extending the EExtension API.
Introduce e_extensible_list_extensions(), which provides extensible
objects access to their own extensions, or a subset of them.
Convert EShellBackend to an abstract EExtension subtype. EShell will
load its extensions with e_extensible_load_extensions(), and then obtain
a list of EShellBackend extensions as follows:
shell_backends = e_extensible_list_extensions (
E_EXTENSIBLE (shell), E_TYPE_SHELL_BACKEND);
Because EShellBackend is abstract, its GType is skipped while traversing
the GType hierarchy to find EShell extensions.
Diffstat (limited to 'e-util/e-extensible.h')
-rw-r--r-- | e-util/e-extensible.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/e-util/e-extensible.h b/e-util/e-extensible.h index a72ea71611..6dd6294212 100644 --- a/e-util/e-extensible.h +++ b/e-util/e-extensible.h @@ -51,6 +51,8 @@ struct _EExtensibleInterface { GType e_extensible_get_type (void); void e_extensible_load_extensions (EExtensible *extensible); +GList * e_extensible_list_extensions (EExtensible *extensible, + GType extension_type); G_END_DECLS |