diff options
author | Milan Crha <mcrha@redhat.com> | 2010-12-06 21:23:20 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:41:08 +0800 |
commit | ca3faa17a9a26479ce39649976264f96cbaf5f4c (patch) | |
tree | fc27ef48d586b4976a4c3bbb3f1450a1afc46628 /calendar | |
parent | 58807aa5702fa3993de19a2eb1104aaa53cedafb (diff) | |
download | gsoc2013-evolution-ca3faa17a9a26479ce39649976264f96cbaf5f4c.tar gsoc2013-evolution-ca3faa17a9a26479ce39649976264f96cbaf5f4c.tar.gz gsoc2013-evolution-ca3faa17a9a26479ce39649976264f96cbaf5f4c.tar.bz2 gsoc2013-evolution-ca3faa17a9a26479ce39649976264f96cbaf5f4c.tar.lz gsoc2013-evolution-ca3faa17a9a26479ce39649976264f96cbaf5f4c.tar.xz gsoc2013-evolution-ca3faa17a9a26479ce39649976264f96cbaf5f4c.tar.zst gsoc2013-evolution-ca3faa17a9a26479ce39649976264f96cbaf5f4c.zip |
Free/busy meeting view doesn't work due to non-working extension
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/gui/dialogs/comp-editor.c | 15 | ||||
-rw-r--r-- | calendar/gui/dialogs/event-editor.c | 3 | ||||
-rw-r--r-- | calendar/gui/dialogs/memo-editor.c | 3 | ||||
-rw-r--r-- | calendar/gui/dialogs/task-editor.c | 3 | ||||
-rw-r--r-- | calendar/gui/e-memo-table.c | 3 | ||||
-rw-r--r-- | calendar/gui/e-task-table.c | 3 | ||||
-rw-r--r-- | calendar/gui/gnome-cal.c | 3 |
7 files changed, 31 insertions, 2 deletions
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, @@ -1498,6 +1499,16 @@ comp_editor_finalize (GObject *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) { GConfBridge *bridge; @@ -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); } - diff --git a/calendar/gui/dialogs/event-editor.c b/calendar/gui/dialogs/event-editor.c index 11dbe134c0..260778d83a 100644 --- a/calendar/gui/dialogs/event-editor.c +++ b/calendar/gui/dialogs/event-editor.c @@ -437,6 +437,9 @@ event_editor_constructed (GObject *object) object, "client", priv->model, "client", G_BINDING_SYNC_CREATE); + + if (G_OBJECT_CLASS (event_editor_parent_class)->constructed) + G_OBJECT_CLASS (event_editor_parent_class)->constructed (object); } static void diff --git a/calendar/gui/dialogs/memo-editor.c b/calendar/gui/dialogs/memo-editor.c index 9486ef6770..8de1b09601 100644 --- a/calendar/gui/dialogs/memo-editor.c +++ b/calendar/gui/dialogs/memo-editor.c @@ -107,6 +107,9 @@ memo_editor_constructed (GObject *object) comp_editor_append_page ( editor, COMP_EDITOR_PAGE (priv->memo_page), _("Memo"), TRUE); + + if (G_OBJECT_CLASS (memo_editor_parent_class)->constructed) + G_OBJECT_CLASS (memo_editor_parent_class)->constructed (object); } static void diff --git a/calendar/gui/dialogs/task-editor.c b/calendar/gui/dialogs/task-editor.c index d4e1c13161..8021339c9b 100644 --- a/calendar/gui/dialogs/task-editor.c +++ b/calendar/gui/dialogs/task-editor.c @@ -213,6 +213,9 @@ task_editor_constructed (GObject *object) object, "client", priv->model, "client", G_BINDING_SYNC_CREATE); + + if (G_OBJECT_CLASS (task_editor_parent_class)->constructed) + G_OBJECT_CLASS (task_editor_parent_class)->constructed (object); } static void diff --git a/calendar/gui/e-memo-table.c b/calendar/gui/e-memo-table.c index 802e90d9d4..f38bc12e4a 100644 --- a/calendar/gui/e-memo-table.c +++ b/calendar/gui/e-memo-table.c @@ -417,6 +417,9 @@ memo_table_constructed (GObject *object) a11y = gtk_widget_get_accessible (GTK_WIDGET (memo_table)); if (a11y) atk_object_set_name (a11y, _("Memos")); + + if (G_OBJECT_CLASS (parent_class)->constructed) + G_OBJECT_CLASS (parent_class)->constructed (object); } static gboolean diff --git a/calendar/gui/e-task-table.c b/calendar/gui/e-task-table.c index fd6b2c1286..29113638dc 100644 --- a/calendar/gui/e-task-table.c +++ b/calendar/gui/e-task-table.c @@ -634,6 +634,9 @@ task_table_constructed (GObject *object) a11y = gtk_widget_get_accessible (GTK_WIDGET (task_table)); if (a11y) atk_object_set_name (a11y, _("Tasks")); + + if (G_OBJECT_CLASS (parent_class)->constructed) + G_OBJECT_CLASS (parent_class)->constructed (object); } static gboolean diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index 3945003a68..c27cfcc5e4 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -489,6 +489,9 @@ gnome_calendar_constructed (GObject *object) G_CALLBACK (gnome_calendar_notify_week_start_day_cb), gcal); gnome_calendar_goto_today (gcal); + + if (G_OBJECT_CLASS (gnome_calendar_parent_class)->constructed) + G_OBJECT_CLASS (gnome_calendar_parent_class)->constructed (object); } /* Class initialization function for the gnome calendar */ |