diff options
author | Milan Crha <mcrha@src.gnome.org> | 2007-10-01 15:14:53 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2007-10-01 15:14:53 +0800 |
commit | 150493ab4bae218f3626768e8815a54c7cc0d1cf (patch) | |
tree | 9a6b621fb3c1efe3b1da816e295aa49f7d83943f | |
parent | 528f6d679cd444a8f71b031d3de5a7ad31ed3b5b (diff) | |
download | gsoc2013-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
-rw-r--r-- | addressbook/ChangeLog | 7 | ||||
-rw-r--r-- | 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 <mcrha@redhat.com> + + ** 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 <mbarnes@redhat.com> ** 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) { |