diff options
Diffstat (limited to 'addressbook/gui/widgets/eab-contact-formatter.c')
-rw-r--r-- | addressbook/gui/widgets/eab-contact-formatter.c | 11 |
1 files changed, 11 insertions, 0 deletions
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) |