aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-12-04 09:17:13 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-12-04 09:17:13 +0800
commit45170baee7e24ca6b3143290a52ea792bd31d195 (patch)
treef9eed337a0aac48fb9764583035766b89fc128ed /addressbook/backend
parent86755b7d11c4773744cf42ed75667c7cc6aff0c7 (diff)
downloadgsoc2013-evolution-45170baee7e24ca6b3143290a52ea792bd31d195.tar.gz
gsoc2013-evolution-45170baee7e24ca6b3143290a52ea792bd31d195.tar.zst
gsoc2013-evolution-45170baee7e24ca6b3143290a52ea792bd31d195.zip
Clean ESelectNamesModel on focus-out. (Half of a fix for 15656)
2001-12-03 Jon Trowbridge <trow@ximian.com> * gui/component/select-names/e-select-names-manager.c (focus_out_cb): Clean ESelectNamesModel on focus-out. (Half of a fix for 15656) * backend/ebook/e-destination.c (nonempty): Fix this function and make it utf8-safe. (The other half of the fix for 15656) svn path=/trunk/; revision=14855
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/ebook/e-destination.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/addressbook/backend/ebook/e-destination.c b/addressbook/backend/ebook/e-destination.c
index 20365491a3..508802b823 100644
--- a/addressbook/backend/ebook/e-destination.c
+++ b/addressbook/backend/ebook/e-destination.c
@@ -319,10 +319,12 @@ e_destination_clear (EDestination *dest)
static gboolean
nonempty (const gchar *s)
{
- while (s) {
- if (! isspace ((gint) *s))
+ gunichar c;
+ while (*s) {
+ c = g_utf8_get_char (s);
+ if (! g_unichar_isspace (c))
return TRUE;
- ++s;
+ s = g_utf8_next_char (s);
}
return FALSE;
}