aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/e-address-popup.c
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-04-17 04:28:13 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-04-17 04:28:13 +0800
commita35d86361dbbf29c3b7da3a481c77c6a876ae8f4 (patch)
tree79a784b7f0a5272341c60890ecafe75be47d5b40 /addressbook/gui/component/e-address-popup.c
parenta8d2769cabc1889fd35e97d8494b824d06c0cde1 (diff)
downloadgsoc2013-evolution-a35d86361dbbf29c3b7da3a481c77c6a876ae8f4.tar
gsoc2013-evolution-a35d86361dbbf29c3b7da3a481c77c6a876ae8f4.tar.gz
gsoc2013-evolution-a35d86361dbbf29c3b7da3a481c77c6a876ae8f4.tar.bz2
gsoc2013-evolution-a35d86361dbbf29c3b7da3a481c77c6a876ae8f4.tar.lz
gsoc2013-evolution-a35d86361dbbf29c3b7da3a481c77c6a876ae8f4.tar.xz
gsoc2013-evolution-a35d86361dbbf29c3b7da3a481c77c6a876ae8f4.tar.zst
gsoc2013-evolution-a35d86361dbbf29c3b7da3a481c77c6a876ae8f4.zip
Added.
2001-04-16 Jon Trowbridge <trow@ximian.com> * backend/ebook/e-destination.c (e_destination_get_name): Added. * gui/component/select-names/e-select-names.c (real_add_address_cb): Use e_select_names_model_append. It's nicer. * gui/component/select-names/e-select-names-model.c (e_select_names_model_append): Added. * gui/component/select-names/e-select-names-completion.c (book_query_process_card_list): Filter out completion matches that don't have an associated e-mail address. (book_query_score): Give a bonus to the primary address, so that it always comes up first in the completion results. * gui/component/e-address-popup.c (e_address_popup_refresh_names): Convert utf8 strings into gtk strings before displaying. svn path=/trunk/; revision=9390
Diffstat (limited to 'addressbook/gui/component/e-address-popup.c')
-rw-r--r--addressbook/gui/component/e-address-popup.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/addressbook/gui/component/e-address-popup.c b/addressbook/gui/component/e-address-popup.c
index 19afd29baf..7aebeacf21 100644
--- a/addressbook/gui/component/e-address-popup.c
+++ b/addressbook/gui/component/e-address-popup.c
@@ -167,7 +167,9 @@ e_address_popup_refresh_names (EAddressPopup *pop)
{
if (pop->name_widget) {
if (pop->name && *pop->name) {
- gtk_label_set_text (GTK_LABEL (pop->name_widget), pop->name);
+ gchar *s = e_utf8_to_gtk_string (pop->name_widget, pop->name);
+ gtk_label_set_text (GTK_LABEL (pop->name_widget), s);
+ g_free (s);
gtk_widget_show (pop->name_widget);
} else {
gtk_widget_hide (pop->name_widget);
@@ -176,7 +178,9 @@ e_address_popup_refresh_names (EAddressPopup *pop)
if (pop->email_widget) {
if (pop->email && *pop->email) {
- gtk_label_set_text (GTK_LABEL (pop->email_widget), pop->email);
+ gchar *s = e_utf8_to_gtk_string (pop->email_widget, pop->email);
+ gtk_label_set_text (GTK_LABEL (pop->email_widget), s);
+ g_free (s);
gtk_widget_show (pop->email_widget);
} else {
gtk_widget_hide (pop->email_widget);