From 45170baee7e24ca6b3143290a52ea792bd31d195 Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Tue, 4 Dec 2001 01:17:13 +0000 Subject: Clean ESelectNamesModel on focus-out. (Half of a fix for 15656) 2001-12-03 Jon Trowbridge * 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 --- addressbook/backend/ebook/e-destination.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'addressbook/backend/ebook') 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; } -- cgit v1.2.3