diff options
author | Chris Toshok <toshok@src.gnome.org> | 2000-04-13 15:50:07 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2000-04-13 15:50:07 +0800 |
commit | d5862dde72a16463fec9b5b2da9d286d3e91a824 (patch) | |
tree | ae23f8cfd92c36d29be7a6381a9cd3da305bc27d /addressbook | |
parent | 19673f6972a79bfa7e0db754e53b43a5e8e66906 (diff) | |
download | gsoc2013-evolution-d5862dde72a16463fec9b5b2da9d286d3e91a824.tar.gz gsoc2013-evolution-d5862dde72a16463fec9b5b2da9d286d3e91a824.tar.zst gsoc2013-evolution-d5862dde72a16463fec9b5b2da9d286d3e91a824.zip |
add a title.
* addressbook/gui/minicard/test-reflow.c: add a title.
* addressbook/gui/minicard/e-minicard.c (remodel): add support for
the title attribute.
svn path=/trunk/; revision=2418
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 |