aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2005-05-11 18:49:29 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2005-05-11 18:49:29 +0800
commita19b4077c3fcfc914025a0ca5c4dcb93241f9ebf (patch)
treea709dccfb46d7b10835edc07ab6d0b02db9cf046
parent8bedb84e3336dc5348097a522703336e3a8574fd (diff)
downloadgsoc2013-evolution-a19b4077c3fcfc914025a0ca5c4dcb93241f9ebf.tar
gsoc2013-evolution-a19b4077c3fcfc914025a0ca5c4dcb93241f9ebf.tar.gz
gsoc2013-evolution-a19b4077c3fcfc914025a0ca5c4dcb93241f9ebf.tar.bz2
gsoc2013-evolution-a19b4077c3fcfc914025a0ca5c4dcb93241f9ebf.tar.lz
gsoc2013-evolution-a19b4077c3fcfc914025a0ca5c4dcb93241f9ebf.tar.xz
gsoc2013-evolution-a19b4077c3fcfc914025a0ca5c4dcb93241f9ebf.tar.zst
gsoc2013-evolution-a19b4077c3fcfc914025a0ca5c4dcb93241f9ebf.zip
Fixed the bug 209416. It shows a different view for contact lists
2005-05-11 Srinivasa Ragavan <sragavan@novell.com> * gui/widgets//e-minicard.c: (add_field), (remodel): Fixed the bug 209416. It shows a different view for contact lists svn path=/trunk/; revision=29325
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/gui/widgets/e-minicard.c33
2 files changed, 31 insertions, 7 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index bde060a742..721b64d7e9 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-11 Srinivasa Ragavan <sragavan@novell.com>
+ * gui/widgets//e-minicard.c: (add_field), (remodel):
+ Fixed the bug 209416. It shows a different view for contact lists
+
+
2005-05-09 Sushma Rai <rsushma@novell.com>
* gui/widgets/eab-gui-util.c (eab_contact_save)(eab_contact_list_save):
diff --git a/addressbook/gui/widgets/e-minicard.c b/addressbook/gui/widgets/e-minicard.c
index f687509a79..efd434d8e9 100644
--- a/addressbook/gui/widgets/e-minicard.c
+++ b/addressbook/gui/widgets/e-minicard.c
@@ -774,13 +774,25 @@ add_field (EMinicard *e_minicard, EContactField field, gdouble left_width)
string = e_contact_get (e_minicard->contact, field);
new_item = e_minicard_label_new(group);
- gnome_canvas_item_set( new_item,
- "width", e_minicard->width - 4.0,
- "fieldname", name,
- "field", string,
- "max_field_name_length", left_width,
- "editable", FALSE /* e_minicard->editable */,
- NULL );
+
+ if (e_minicard->contact && e_contact_get (e_minicard->contact, E_CONTACT_IS_LIST))
+ gnome_canvas_item_set( new_item,
+ "width", e_minicard->width - 4.0,
+ "fieldname", string,
+ "field", "",
+ "max_field_name_length", left_width,
+ "editable", FALSE /* e_minicard->editable */,
+ NULL );
+ else
+ gnome_canvas_item_set( new_item,
+ "width", e_minicard->width - 4.0,
+ "fieldname", name,
+ "field", string,
+ "max_field_name_length", left_width,
+ "editable", FALSE /* e_minicard->editable */,
+ NULL );
+
+
#if notyet
g_object_set(E_MINICARD_LABEL(new_item)->field,
"allow_newlines", e_card_simple_get_allow_newlines (e_minicard->contact, field),
@@ -837,6 +849,7 @@ remodel( EMinicard *e_minicard )
GList *list;
char *file_as;
int left_width = -1;
+ gboolean is_list = FALSE;
if (e_minicard->header_text) {
file_as = e_contact_get (e_minicard->contact, E_CONTACT_FILE_AS);
@@ -847,6 +860,9 @@ remodel( EMinicard *e_minicard )
}
if (e_minicard->contact && e_contact_get (e_minicard->contact, E_CONTACT_IS_LIST))
+ is_list = TRUE;
+
+ if (is_list)
gnome_canvas_item_show (e_minicard->list_icon);
else
gnome_canvas_item_hide (e_minicard->list_icon);
@@ -860,6 +876,9 @@ remodel( EMinicard *e_minicard )
if (field == E_CONTACT_FAMILY_NAME || field == E_CONTACT_GIVEN_NAME)
continue;
+ if (field == E_CONTACT_FULL_NAME && is_list)
+ continue;
+
if (list)
minicard_field = list->data;
if (minicard_field && minicard_field->field == field) {