From ca3faa17a9a26479ce39649976264f96cbaf5f4c Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 6 Dec 2010 14:23:20 +0100 Subject: Free/busy meeting view doesn't work due to non-working extension --- calendar/gui/dialogs/comp-editor.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'calendar/gui/dialogs/comp-editor.c') diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index 1714ef405d..08b6ac7e8e 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -210,7 +210,8 @@ static void obj_removed_cb (ECal *client, GList *uids, CompEditor *editor); G_DEFINE_TYPE_WITH_CODE ( CompEditor, comp_editor, GTK_TYPE_WINDOW, - G_IMPLEMENT_INTERFACE (E_TYPE_ALERT_SINK, NULL)) + G_IMPLEMENT_INTERFACE (E_TYPE_ALERT_SINK, NULL); + G_IMPLEMENT_INTERFACE (E_TYPE_EXTENSIBLE, NULL)) enum { OBJECT_CREATED, @@ -1497,6 +1498,16 @@ comp_editor_finalize (GObject *object) G_OBJECT_CLASS (comp_editor_parent_class)->finalize (object); } +static void +comp_editor_constructed (GObject *object) +{ + e_extensible_load_extensions (E_EXTENSIBLE (object)); + + /* Chain up to parent's constructed() method. */ + if (G_OBJECT_CLASS (comp_editor_parent_class)->constructed) + G_OBJECT_CLASS (comp_editor_parent_class)->constructed (object); +} + static void comp_editor_bind_gconf (CompEditor *editor) { @@ -1624,6 +1635,7 @@ comp_editor_class_init (CompEditorClass *class) object_class->get_property = comp_editor_get_property; object_class->dispose = comp_editor_dispose; object_class->finalize = comp_editor_finalize; + object_class->constructed = comp_editor_constructed; widget_class = GTK_WIDGET_CLASS (class); widget_class->delete_event = comp_editor_delete_event; @@ -3420,4 +3432,3 @@ obj_removed_cb (ECal *client, if (changed_component_dialog ((GtkWindow *) editor, priv->comp, TRUE, priv->changed)) close_dialog (editor); } - -- cgit v1.2.3