aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-03-20 12:00:28 +0800
committerMichael Meeks <michael.meeks@novell.com>2010-04-07 19:12:57 +0800
commita718e57b258d993e8427bff2ee8a4eccf89a582f (patch)
tree943b2550447cb3d9afa9f145f0bb8a525cf2904d /shell/e-shell-view.c
parent260032a9ff49e78d4081b40e5f7102d2928fc572 (diff)
downloadgsoc2013-evolution-a718e57b258d993e8427bff2ee8a4eccf89a582f.tar.gz
gsoc2013-evolution-a718e57b258d993e8427bff2ee8a4eccf89a582f.tar.zst
gsoc2013-evolution-a718e57b258d993e8427bff2ee8a4eccf89a582f.zip
Make EShell and related classes extensible.
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r--shell/e-shell-view.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index 3a5c6e219d..cd898532fe 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"
@@ -578,6 +579,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
@@ -976,9 +979,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;