aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2002-08-20 03:31:59 +0800
committerDan Winship <danw@src.gnome.org>2002-08-20 03:31:59 +0800
commit58084b908ae3b3cdf0cb65137d8825007086ffb5 (patch)
treead36fb5eef267aa0c46b4d87868f32ed3c1da1b0 /addressbook/gui/component
parentb090003f8bc69b8b79cadc2d1bed639f257531cb (diff)
downloadgsoc2013-evolution-58084b908ae3b3cdf0cb65137d8825007086ffb5.tar
gsoc2013-evolution-58084b908ae3b3cdf0cb65137d8825007086ffb5.tar.gz
gsoc2013-evolution-58084b908ae3b3cdf0cb65137d8825007086ffb5.tar.bz2
gsoc2013-evolution-58084b908ae3b3cdf0cb65137d8825007086ffb5.tar.lz
gsoc2013-evolution-58084b908ae3b3cdf0cb65137d8825007086ffb5.tar.xz
gsoc2013-evolution-58084b908ae3b3cdf0cb65137d8825007086ffb5.tar.zst
gsoc2013-evolution-58084b908ae3b3cdf0cb65137d8825007086ffb5.zip
add an "addresses" property, to get the "Dan Winship <danw@ximian.com>"
* gui/component/select-names/e-select-names-bonobo.c (entry_get_property_fn): add an "addresses" property, to get the "Dan Winship <danw@ximian.com>" form, as opposed to "text", which gets you what's displayed, which might be just "Dan Winship". (entry_set_property_fn): When setting, just reuse the "text" code, since it should properly cardify everything for us anyway. (impl_SelectNames_get_entry_for_section): Add the property. svn path=/trunk/; revision=17803
Diffstat (limited to 'addressbook/gui/component')
-rw-r--r--addressbook/gui/component/select-names/e-select-names-bonobo.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/addressbook/gui/component/select-names/e-select-names-bonobo.c b/addressbook/gui/component/select-names/e-select-names-bonobo.c
index 95fc4bc262..4a32790cd4 100644
--- a/addressbook/gui/component/select-names/e-select-names-bonobo.c
+++ b/addressbook/gui/component/select-names/e-select-names-bonobo.c
@@ -53,6 +53,7 @@ struct _ESelectNamesBonoboPrivate {
enum _EntryPropertyID {
ENTRY_PROPERTY_ID_TEXT,
+ ENTRY_PROPERTY_ID_ADDRESSES,
ENTRY_PROPERTY_ID_DESTINATIONS,
ENTRY_PROPERTY_ID_SIMPLE_CARD_LIST,
ENTRY_PROPERTY_ID_ALLOW_CONTACT_LISTS,
@@ -85,6 +86,20 @@ entry_get_property_fn (BonoboPropertyBag *bag,
break;
}
+ case ENTRY_PROPERTY_ID_ADDRESSES:
+ {
+ ESelectNamesModel *model;
+ char *text;
+
+ model = E_SELECT_NAMES_MODEL (gtk_object_get_data (GTK_OBJECT (w), "select_names_model"));
+ g_assert (model != NULL);
+
+ text = e_select_names_model_get_address_text (model, ", ");
+ BONOBO_ARG_SET_STRING (arg, text);
+ g_free (text);
+ }
+ break;
+
case ENTRY_PROPERTY_ID_DESTINATIONS:
{
ESelectNamesModel *model;
@@ -165,6 +180,7 @@ entry_set_property_fn (BonoboPropertyBag *bag,
switch (arg_id) {
case ENTRY_PROPERTY_ID_TEXT:
+ case ENTRY_PROPERTY_ID_ADDRESSES:
{
ESelectNamesModel *model;
model = E_SELECT_NAMES_MODEL (gtk_object_get_data (GTK_OBJECT (w), "select_names_model"));
@@ -346,6 +362,9 @@ impl_SelectNames_get_entry_for_section (PortableServer_Servant servant,
bonobo_property_bag_add (property_bag, "text", ENTRY_PROPERTY_ID_TEXT,
BONOBO_ARG_STRING, NULL, NULL,
BONOBO_PROPERTY_READABLE | BONOBO_PROPERTY_WRITEABLE);
+ bonobo_property_bag_add (property_bag, "addresses", ENTRY_PROPERTY_ID_ADDRESSES,
+ BONOBO_ARG_STRING, NULL, NULL,
+ BONOBO_PROPERTY_READABLE | BONOBO_PROPERTY_WRITEABLE);
bonobo_property_bag_add (property_bag, "destinations", ENTRY_PROPERTY_ID_DESTINATIONS,
BONOBO_ARG_STRING, NULL, NULL,
BONOBO_PROPERTY_READABLE | BONOBO_PROPERTY_WRITEABLE);