diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-03-20 12:00:28 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-03-20 23:49:46 +0800 |
commit | 185b7b2a0b5641bdfafd440568d11c4521c42573 (patch) | |
tree | a3bd40fdb185b14a3e1bf06ed473e765a5419526 /shell/e-shell-view.c | |
parent | 8ffcfb4e106bb0081714455239cfe13a524c365f (diff) | |
download | gsoc2013-evolution-185b7b2a0b5641bdfafd440568d11c4521c42573.tar.gz gsoc2013-evolution-185b7b2a0b5641bdfafd440568d11c4521c42573.tar.zst gsoc2013-evolution-185b7b2a0b5641bdfafd440568d11c4521c42573.zip |
Make EShell and related classes extensible.
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r-- | shell/e-shell-view.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index 537024a548..8b94200e98 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -24,11 +24,12 @@ #include <string.h> #include <glib/gi18n.h> -#include "e-util/e-util-private.h" -#include "e-util/e-util.h" +#include "e-util/e-extensible.h" #include "e-util/e-file-utils.h" #include "e-util/e-plugin-ui.h" #include "e-util/e-ui-manager.h" +#include "e-util/e-util-private.h" +#include "e-util/e-util.h" #include "filter/e-rule-context.h" #include "e-shell-window-actions.h" @@ -575,6 +576,8 @@ shell_view_constructed (GObject *object) /* Size group should be safe to unreference now. */ g_object_unref (shell_view->priv->size_group); shell_view->priv->size_group = NULL; + + e_extensible_load_extensions (E_EXTENSIBLE (object)); } static void @@ -970,9 +973,18 @@ e_shell_view_get_type (void) NULL /* value_table */ }; + const GInterfaceInfo extensible_info = { + (GInterfaceInitFunc) NULL, + (GInterfaceFinalizeFunc) NULL, + NULL /* interface_data */ + }; + type = g_type_register_static ( G_TYPE_OBJECT, "EShellView", &type_info, G_TYPE_FLAG_ABSTRACT); + + g_type_add_interface_static ( + type, E_TYPE_EXTENSIBLE, &extensible_info); } return type; |