diff options
author | Suman Manjunath <msuman@src.gnome.org> | 2008-12-31 13:30:13 +0800 |
---|---|---|
committer | Suman Manjunath <msuman@src.gnome.org> | 2008-12-31 13:30:13 +0800 |
commit | f3e456fef168f581d1f91ac632e3d4d53d272635 (patch) | |
tree | 9b24c2c5b0483b9b66efc5f41b07da9561e24176 | |
parent | 8291998b9dddb6873d57a1dd2294490ba1992f25 (diff) | |
download | gsoc2013-evolution-f3e456fef168f581d1f91ac632e3d4d53d272635.tar gsoc2013-evolution-f3e456fef168f581d1f91ac632e3d4d53d272635.tar.gz gsoc2013-evolution-f3e456fef168f581d1f91ac632e3d4d53d272635.tar.bz2 gsoc2013-evolution-f3e456fef168f581d1f91ac632e3d4d53d272635.tar.lz gsoc2013-evolution-f3e456fef168f581d1f91ac632e3d4d53d272635.tar.xz gsoc2013-evolution-f3e456fef168f581d1f91ac632e3d4d53d272635.tar.zst gsoc2013-evolution-f3e456fef168f581d1f91ac632e3d4d53d272635.zip |
Matthew Barnes <mbarnes@redhat.com> ** Fix for bug #562091 - Create MemoPage after the base class object has been created and initialized.
svn path=/branches/gnome-2-24/; revision=36949
-rw-r--r-- | calendar/ChangeLog | 8 | ||||
-rw-r--r-- | calendar/gui/dialogs/memo-editor.c | 23 |
2 files changed, 24 insertions, 7 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 9f81c9217f..f0d131c75e 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,11 @@ +2008-12-31 Matthew Barnes <mbarnes@redhat.com> + + ** Fix for bug #562091 + + * gui/dialogs/memo-editor.c (memo_editor_constructed), + (memo_editor_class_init), (memo_editor_init): Create MemoPage + after the base class object has been created and initialized. + 2008-12-29 Bharath Acharya <abharath@novell.com> ** Fix for bug #446285 (bnc) diff --git a/calendar/gui/dialogs/memo-editor.c b/calendar/gui/dialogs/memo-editor.c index 410aad156e..4fbf35d916 100644 --- a/calendar/gui/dialogs/memo-editor.c +++ b/calendar/gui/dialogs/memo-editor.c @@ -97,6 +97,21 @@ memo_editor_dispose (GObject *object) } static void +memo_editor_constructed (GObject *object) +{ + MemoEditorPrivate *priv; + CompEditor *editor; + + priv = MEMO_EDITOR_GET_PRIVATE (object); + editor = COMP_EDITOR (object); + + priv->memo_page = memo_page_new (editor); + comp_editor_append_page ( + editor, COMP_EDITOR_PAGE (priv->memo_page), + _("Memo"), TRUE); +} + +static void memo_editor_class_init (MemoEditorClass *class) { GObjectClass *object_class; @@ -106,6 +121,7 @@ memo_editor_class_init (MemoEditorClass *class) object_class = G_OBJECT_CLASS (class); object_class->dispose = memo_editor_dispose; + object_class->constructed = memo_editor_constructed; /* TODO Add a help section for memos. */ editor_class = COMP_EDITOR_CLASS (class); @@ -132,13 +148,6 @@ memo_editor_init (MemoEditor *me) g_critical ("%s: %s", G_STRFUNC, error->message); g_error_free (error); } - - me->priv->memo_page = memo_page_new (editor); - g_object_ref_sink (me->priv->memo_page); - comp_editor_append_page ( - COMP_EDITOR (me), - COMP_EDITOR_PAGE (me->priv->memo_page), - _("Memo"), TRUE); } /** |