[evolution/evolution-3-12] EContactEditor: Make sure custom widget types are available



commit d8679b7ce614d438bb5a93ea665461cae0200aa0
Author: Milan Crha <mcrha redhat com>
Date:   Fri May 9 13:56:11 2014 +0200

    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 |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c 
b/addressbook/gui/contact-editor/e-contact-editor.c
index a455292..44375fa 100644
--- a/addressbook/gui/contact-editor/e-contact-editor.c
+++ b/addressbook/gui/contact-editor/e-contact-editor.c
@@ -4237,6 +4237,12 @@ 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_URL_ENTRY);
+       g_type_ensure (E_TYPE_DATE_EDIT);
+
        builder = gtk_builder_new ();
        e_load_ui_builder_definition (builder, "contact-editor.ui");
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]