From f2fba09301e6e4eaf26556a61d3b6d99cf769f30 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Wed, 11 Aug 2010 13:41:25 +0100 Subject: Ensure widgets are registered, without relying on config dialog setup at startup. --- calendar/gui/dialogs/event-page.c | 5 +++++ calendar/gui/dialogs/task-page.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c index 615ebf15d0..fd42d93a81 100644 --- a/calendar/gui/dialogs/event-page.c +++ b/calendar/gui/dialogs/event-page.c @@ -3144,6 +3144,11 @@ event_page_construct (EventPage *epage, EMeetingStore *model) g_object_ref (model); priv->model = model; + /* Make sure our custom widget classes are registered with + * GType before we load the GtkBuilder definition file. */ + E_TYPE_DATE_EDIT; + E_TYPE_TIMEZONE_ENTRY; + priv->builder = gtk_builder_new (); e_load_ui_builder_definition (priv->builder, "event-page.ui"); diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c index 9bb57de918..b0f175140e 100644 --- a/calendar/gui/dialogs/task-page.c +++ b/calendar/gui/dialogs/task-page.c @@ -2045,6 +2045,11 @@ task_page_construct (TaskPage *tpage, EMeetingStore *model, ECal *client) priv->model = model; priv->client = client; + /* Make sure our custom widget classes are registered with + * GType before we load the GtkBuilder definition file. */ + E_TYPE_DATE_EDIT; + E_TYPE_TIMEZONE_ENTRY; + priv->builder = gtk_builder_new (); e_load_ui_builder_definition (priv->builder, "task-page.ui"); -- cgit