diff options
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/gui/minicard/e-minicard.c | 7 | ||||
-rw-r--r-- | addressbook/gui/minicard/test-reflow.c | 2 | ||||
-rw-r--r-- | addressbook/gui/widgets/e-minicard.c | 7 | ||||
-rw-r--r-- | addressbook/gui/widgets/test-reflow.c | 2 |
4 files changed, 18 insertions, 0 deletions
diff --git a/addressbook/gui/minicard/e-minicard.c b/addressbook/gui/minicard/e-minicard.c index 6db76afd6d..455b34c8b5 100644 --- a/addressbook/gui/minicard/e-minicard.c +++ b/addressbook/gui/minicard/e-minicard.c @@ -448,6 +448,7 @@ remodel( EMinicard *e_minicard ) if (e_minicard->card) { char *fname; char *url; + char *title; ECardList *address_list; ECardList *phone_list; ECardList *email_list; @@ -468,6 +469,7 @@ remodel( EMinicard *e_minicard ) "phone", &phone_list, "email", &email_list, "url", &url, + "title", &title, NULL); if (fname) { @@ -481,6 +483,10 @@ remodel( EMinicard *e_minicard ) gnome_canvas_item_set(e_minicard->header_text, "text", "", NULL); + + if (title) + add_field(e_minicard, "Title:", title); + if (address_list) { for (iterator = e_card_list_get_iterator(address_list); e_card_iterator_is_valid(iterator); e_card_iterator_next(iterator)) { const ECardDeliveryAddress *address = e_card_iterator_get(iterator); @@ -512,6 +518,7 @@ remodel( EMinicard *e_minicard ) add_field(e_minicard, "Email:", (char *) e_card_iterator_get(iterator)); } } + if (url) add_field(e_minicard, "Web page:", url); } diff --git a/addressbook/gui/minicard/test-reflow.c b/addressbook/gui/minicard/test-reflow.c index 64c2b89a37..f80448b687 100644 --- a/addressbook/gui/minicard/test-reflow.c +++ b/addressbook/gui/minicard/test-reflow.c @@ -23,6 +23,8 @@ " \ "N:Friedman;Nat;D;Mr. " \ +"TITLE:Head Geek +" \ "BDAY:1977-08-06 " \ "TEL;WORK:617 679 1984 diff --git a/addressbook/gui/widgets/e-minicard.c b/addressbook/gui/widgets/e-minicard.c index 6db76afd6d..455b34c8b5 100644 --- a/addressbook/gui/widgets/e-minicard.c +++ b/addressbook/gui/widgets/e-minicard.c @@ -448,6 +448,7 @@ remodel( EMinicard *e_minicard ) if (e_minicard->card) { char *fname; char *url; + char *title; ECardList *address_list; ECardList *phone_list; ECardList *email_list; @@ -468,6 +469,7 @@ remodel( EMinicard *e_minicard ) "phone", &phone_list, "email", &email_list, "url", &url, + "title", &title, NULL); if (fname) { @@ -481,6 +483,10 @@ remodel( EMinicard *e_minicard ) gnome_canvas_item_set(e_minicard->header_text, "text", "", NULL); + + if (title) + add_field(e_minicard, "Title:", title); + if (address_list) { for (iterator = e_card_list_get_iterator(address_list); e_card_iterator_is_valid(iterator); e_card_iterator_next(iterator)) { const ECardDeliveryAddress *address = e_card_iterator_get(iterator); @@ -512,6 +518,7 @@ remodel( EMinicard *e_minicard ) add_field(e_minicard, "Email:", (char *) e_card_iterator_get(iterator)); } } + if (url) add_field(e_minicard, "Web page:", url); } diff --git a/addressbook/gui/widgets/test-reflow.c b/addressbook/gui/widgets/test-reflow.c index 64c2b89a37..f80448b687 100644 --- a/addressbook/gui/widgets/test-reflow.c +++ b/addressbook/gui/widgets/test-reflow.c @@ -23,6 +23,8 @@ " \ "N:Friedman;Nat;D;Mr. " \ +"TITLE:Head Geek +" \ "BDAY:1977-08-06 " \ "TEL;WORK:617 679 1984 |