[evolution] Ensure widgets are registered, without relying on config dialog setup at startup.
- From: Michael Meeks <michael src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Ensure widgets are registered, without relying on config dialog setup at startup.
- Date: Wed, 11 Aug 2010 12:43:19 +0000 (UTC)
commit f2fba09301e6e4eaf26556a61d3b6d99cf769f30
Author: Michael Meeks <michael meeks novell com>
Date: Wed Aug 11 13:41:25 2010 +0100
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(+), 0 deletions(-)
---
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c
index 615ebf1..fd42d93 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 9bb57de..b0f1751 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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]