diff options
author | Chris Toshok <toshok@ximian.com> | 2001-09-09 04:51:50 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2001-09-09 04:51:50 +0800 |
commit | 0faa76f9b2e4bcbe106bf04dfa30c915c4a737da (patch) | |
tree | d46cc0baa5ddc894692716a3386080305c9515c7 /addressbook | |
parent | f6a949c3494dae54458085196770cee70b7ad259 (diff) | |
download | gsoc2013-evolution-0faa76f9b2e4bcbe106bf04dfa30c915c4a737da.tar gsoc2013-evolution-0faa76f9b2e4bcbe106bf04dfa30c915c4a737da.tar.gz gsoc2013-evolution-0faa76f9b2e4bcbe106bf04dfa30c915c4a737da.tar.bz2 gsoc2013-evolution-0faa76f9b2e4bcbe106bf04dfa30c915c4a737da.tar.lz gsoc2013-evolution-0faa76f9b2e4bcbe106bf04dfa30c915c4a737da.tar.xz gsoc2013-evolution-0faa76f9b2e4bcbe106bf04dfa30c915c4a737da.tar.zst gsoc2013-evolution-0faa76f9b2e4bcbe106bf04dfa30c915c4a737da.zip |
do the EDestination xml magic on email addresses we put in the popup.
2001-09-08 Chris Toshok <toshok@ximian.com>
* gui/component/select-names/e-select-names-popup.c
(popup_menu_card): do the EDestination xml magic on email
addresses we put in the popup.
svn path=/trunk/; revision=12706
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 6 | ||||
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names-popup.c | 13 |
2 files changed, 18 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 0829040136..c1b470ac0c 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,9 @@ +2001-09-08 Chris Toshok <toshok@ximian.com> + + * gui/component/select-names/e-select-names-popup.c + (popup_menu_card): do the EDestination xml magic on email + addresses we put in the popup. + 2001-08-27 Zbigniew Chyla <cyba@gnome.pl> * gui/component/addressbook.c (addressbook_factory_new_control): diff --git a/addressbook/gui/component/select-names/e-select-names-popup.c b/addressbook/gui/component/select-names/e-select-names-popup.c index 124301ace4..ef73d79e8a 100644 --- a/addressbook/gui/component/select-names/e-select-names-popup.c +++ b/addressbook/gui/component/select-names/e-select-names-popup.c @@ -284,8 +284,18 @@ popup_menu_card (PopupInfo *info) gchar *label = (gchar *)e_iterator_get (iterator); if (label && *label) { + /* Magically convert embedded XML into an address. */ + if (!strncmp (label, "<?xml", 4)) { + EDestination *dest = e_destination_import (label); + radioinfo[j].label = g_strdup (e_destination_get_address (dest)); + gtk_object_unref (GTK_OBJECT (dest)); + + } + else { + radioinfo[j].label = g_strdup (label); + } + radioinfo[j].type = GNOME_APP_UI_ITEM; - radioinfo[j].label = label; radioinfo[j].moreinfo = change_email_num_cb; ++j; } @@ -334,6 +344,7 @@ popup_menu_card (PopupInfo *info) gint j; for (j=0; radioinfo[j].type != GNOME_APP_UI_ENDOFINFO; ++j) { gtk_object_set_data (GTK_OBJECT (radioinfo[j].widget), "number", GINT_TO_POINTER (j)); + g_free (radioinfo[j].label); if (j == n) gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (radioinfo[n].widget), TRUE); } |