From 2a86155e711e620bcfb1bb3dcfe1782991f0dc5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Vr=C3=A1til?= Date: Wed, 27 Jun 2012 14:03:54 +0200 Subject: Bug #674427 - Crash when formatting contact in addressbook --- addressbook/gui/widgets/eab-contact-formatter.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'addressbook/gui/widgets/eab-contact-formatter.c') diff --git a/addressbook/gui/widgets/eab-contact-formatter.c b/addressbook/gui/widgets/eab-contact-formatter.c index 43d68b163f..ce6825aa9d 100644 --- a/addressbook/gui/widgets/eab-contact-formatter.c +++ b/addressbook/gui/widgets/eab-contact-formatter.c @@ -1159,6 +1159,17 @@ eab_contact_formatter_init (EABContactFormatter *formatter) formatter->priv->render_maps = FALSE; } +EABContactFormatter * +eab_contact_formatter_new (EABContactDisplayMode mode, + gboolean render_maps) +{ + return g_object_new (EAB_TYPE_CONTACT_FORMATTER, + "display-mode", mode, + "render-maps", render_maps, + NULL); +} + + void eab_contact_formatter_set_display_mode (EABContactFormatter *formatter, EABContactDisplayMode mode) -- cgit v1.2.3