aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/e-minicard.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@src.gnome.org>2007-10-01 15:14:53 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-10-01 15:14:53 +0800
commit150493ab4bae218f3626768e8815a54c7cc0d1cf (patch)
tree9a6b621fb3c1efe3b1da816e295aa49f7d83943f /addressbook/gui/widgets/e-minicard.c
parent528f6d679cd444a8f71b031d3de5a7ad31ed3b5b (diff)
downloadgsoc2013-evolution-150493ab4bae218f3626768e8815a54c7cc0d1cf.tar.gz
gsoc2013-evolution-150493ab4bae218f3626768e8815a54c7cc0d1cf.tar.zst
gsoc2013-evolution-150493ab4bae218f3626768e8815a54c7cc0d1cf.zip
2007-10-01 mcrha Fix for bug #337539
svn path=/trunk/; revision=34334
Diffstat (limited to 'addressbook/gui/widgets/e-minicard.c')
-rw-r--r--addressbook/gui/widgets/e-minicard.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/addressbook/gui/widgets/e-minicard.c b/addressbook/gui/widgets/e-minicard.c
index 9569095ff3..216401a69f 100644
--- a/addressbook/gui/widgets/e-minicard.c
+++ b/addressbook/gui/widgets/e-minicard.c
@@ -890,13 +890,16 @@ add_email_field (EMinicard *e_minicard, GList *email_list, gdouble left_width, i
}
static int
-get_left_width(EMinicard *e_minicard)
+get_left_width (EMinicard *e_minicard, gboolean is_list)
{
gchar *name;
EContactField field;
int width = -1;
PangoLayout *layout;
+ if (is_list)
+ return 0;
+
layout = gtk_widget_create_pango_layout (GTK_WIDGET (GNOME_CANVAS_ITEM (e_minicard)->canvas), "");
for(field = E_CONTACT_FULL_NAME; field != E_CONTACT_LAST_SIMPLE_STRING; field++) {
int this_width;
@@ -985,7 +988,7 @@ remodel( EMinicard *e_minicard )
} else {
char *string;
if (left_width == -1) {
- left_width = get_left_width(e_minicard);
+ left_width = get_left_width (e_minicard, is_list);
}
if (is_email) {