From d164574886e7580d33ba9b6f0b0b68ac1f29ffea Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 9 May 2014 13:52:59 +0200 Subject: EContactEditor: Make sure custom widget types are available Make sure evolution's widget types are available before loading the .ui file. --- addressbook/gui/contact-editor/e-contact-editor.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'addressbook/gui/contact-editor') diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index fada757b95..add2337faa 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -4231,6 +4231,13 @@ e_contact_editor_init (EContactEditor *e_contact_editor) e_contact_editor->priv->categories_dialog = NULL; e_contact_editor->priv->compress_ui = e_shell_get_express_mode (shell); + /* Make sure custom widget types are available */ + g_type_ensure (E_TYPE_IMAGE_CHOOSER); + g_type_ensure (E_TYPE_CLIENT_COMBO_BOX); + g_type_ensure (E_TYPE_CONTACT_EDITOR_DYNTABLE); + g_type_ensure (E_TYPE_URL_ENTRY); + g_type_ensure (E_TYPE_DATE_EDIT); + builder = gtk_builder_new (); e_load_ui_builder_definition (builder, "contact-editor.ui"); -- cgit v1.2.3