[evolution] Make ECompEditor an extensible
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Make ECompEditor an extensible
- Date: Mon, 22 Aug 2016 10:23:25 +0000 (UTC)
commit b56f2668697227ad3c043da116151b458c6f360f
Author: Milan Crha <mcrha redhat com>
Date: Mon Aug 22 12:23:07 2016 +0200
Make ECompEditor an extensible
Thus it can be extended by 3rd-party modules.
calendar/gui/e-comp-editor.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/calendar/gui/e-comp-editor.c b/calendar/gui/e-comp-editor.c
index d168389..c33f9e6 100644
--- a/calendar/gui/e-comp-editor.c
+++ b/calendar/gui/e-comp-editor.c
@@ -105,7 +105,8 @@ static GSList *opened_editors = NULL;
static void e_comp_editor_alert_sink_iface_init (EAlertSinkInterface *iface);
G_DEFINE_ABSTRACT_TYPE_WITH_CODE (ECompEditor, e_comp_editor, GTK_TYPE_WINDOW,
- G_IMPLEMENT_INTERFACE (E_TYPE_ALERT_SINK, e_comp_editor_alert_sink_iface_init))
+ G_IMPLEMENT_INTERFACE (E_TYPE_ALERT_SINK, e_comp_editor_alert_sink_iface_init)
+ G_IMPLEMENT_INTERFACE (E_TYPE_EXTENSIBLE, NULL))
static void
ece_restore_focus (ECompEditor *comp_editor)
@@ -2299,6 +2300,8 @@ e_comp_editor_constructed (GObject *object)
g_signal_connect (comp_editor, "unrealize", G_CALLBACK (comp_editor_unrealize_cb), NULL);
gtk_application_add_window (GTK_APPLICATION (comp_editor->priv->shell), GTK_WINDOW (comp_editor));
+
+ e_extensible_load_extensions (E_EXTENSIBLE (comp_editor));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]