diff options
author | Michael Meeks <michael.meeks@novell.com> | 2010-08-11 20:41:25 +0800 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-08-11 20:42:08 +0800 |
commit | f2fba09301e6e4eaf26556a61d3b6d99cf769f30 (patch) | |
tree | fc78427418721178e1b2d2eaac9c05c5a41f10d7 /calendar/gui/dialogs | |
parent | 46c2fbd4f76a8048a3bdf07e273a8a884583700e (diff) | |
download | gsoc2013-evolution-f2fba09301e6e4eaf26556a61d3b6d99cf769f30.tar gsoc2013-evolution-f2fba09301e6e4eaf26556a61d3b6d99cf769f30.tar.gz gsoc2013-evolution-f2fba09301e6e4eaf26556a61d3b6d99cf769f30.tar.bz2 gsoc2013-evolution-f2fba09301e6e4eaf26556a61d3b6d99cf769f30.tar.lz gsoc2013-evolution-f2fba09301e6e4eaf26556a61d3b6d99cf769f30.tar.xz gsoc2013-evolution-f2fba09301e6e4eaf26556a61d3b6d99cf769f30.tar.zst gsoc2013-evolution-f2fba09301e6e4eaf26556a61d3b6d99cf769f30.zip |
Ensure widgets are registered, without relying on config dialog setup at startup.
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r-- | calendar/gui/dialogs/event-page.c | 5 | ||||
-rw-r--r-- | 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 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"); |