From 150493ab4bae218f3626768e8815a54c7cc0d1cf Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 1 Oct 2007 07:14:53 +0000 Subject: 2007-10-01 mcrha Fix for bug #337539 svn path=/trunk/; revision=34334 --- addressbook/ChangeLog | 7 +++++++ addressbook/gui/widgets/e-minicard.c | 7 +++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index e1bc214532..e7342e4e02 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,10 @@ +2007-10-01 Milan Crha + + ** Fix for bug #337539 + + * gui/widgets/e-minicard.c: (get_left_width), (remodel): + Omit left column when showing list of contacts. + 2007-09-27 Matthew Barnes ** Fixes part of bug #474000 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) { -- cgit