[evolution] EContactEditor: Make sure custom widget types are available
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EContactEditor: Make sure custom widget types are available
- Date: Fri, 9 May 2014 11:54:15 +0000 (UTC)
commit d164574886e7580d33ba9b6f0b0b68ac1f29ffea
Author: Milan Crha <mcrha redhat com>
Date: Fri May 9 13:52:59 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 | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c
b/addressbook/gui/contact-editor/e-contact-editor.c
index fada757..add2337 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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]