evolution r36948 - in trunk/calendar: . gui/dialogs
- From: msuman svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r36948 - in trunk/calendar: . gui/dialogs
- Date: Wed, 31 Dec 2008 05:29:45 +0000 (UTC)
Author: msuman
Date: Wed Dec 31 05:29:45 2008
New Revision: 36948
URL: http://svn.gnome.org/viewvc/evolution?rev=36948&view=rev
Log:
Matthew Barnes <mbarnes redhat com> ** Fix for bug #562091 - Create MemoPage after the base class object has been created and initialized.
Modified:
trunk/calendar/ChangeLog
trunk/calendar/gui/dialogs/memo-editor.c
Modified: trunk/calendar/gui/dialogs/memo-editor.c
==============================================================================
--- trunk/calendar/gui/dialogs/memo-editor.c (original)
+++ trunk/calendar/gui/dialogs/memo-editor.c Wed Dec 31 05:29:45 2008
@@ -97,6 +97,21 @@
}
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 @@
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,12 +148,6 @@
g_critical ("%s: %s", G_STRFUNC, error->message);
g_error_free (error);
}
-
- me->priv->memo_page = memo_page_new (editor);
- comp_editor_append_page (
- COMP_EDITOR (me),
- COMP_EDITOR_PAGE (me->priv->memo_page),
- _("Memo"), TRUE);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]