diff options
| author | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-07-02 04:58:55 +0000 |
|---|---|---|
| committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-07-02 04:58:55 +0000 |
| commit | deaa7613934a1910b79e42f10e21307f597f0aeb (patch) | |
| tree | 2c8cd4d202f7e765a5321c3d915fd5fc0ddb8ef8 /libedataserverui/e-name-selector-entry.c | |
| parent | 07d66b5ebbfc9d227d1c995cb5e1f0dd54088fba (diff) | |
| download | evolution-data-server-deaa7613934a1910b79e42f10e21307f597f0aeb.tar.gz | |
** Fix for bug #410823
svn path=/trunk/; revision=7845
Diffstat (limited to 'libedataserverui/e-name-selector-entry.c')
| -rw-r--r-- | libedataserverui/e-name-selector-entry.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libedataserverui/e-name-selector-entry.c b/libedataserverui/e-name-selector-entry.c index efc8bf0cb..f77f7084d 100644 --- a/libedataserverui/e-name-selector-entry.c +++ b/libedataserverui/e-name-selector-entry.c @@ -241,6 +241,9 @@ get_range_at_position (const gchar *string, gint pos, gint *start_pos, gint *end gint local_end_pos = 0; gint i; + if (!string || !*string) + return FALSE; + for (p = string, i = 0; *p; p = g_utf8_next_char (p), i++) { gunichar c = g_utf8_get_char (p); @@ -1465,6 +1468,10 @@ user_focus_out (ENameSelectorEntry *name_selector_entry, GdkEventFocus *event_fo g_source_remove (name_selector_entry->type_ahead_complete_cb_id); } + if (name_selector_entry->update_completions_cb_id) { + g_source_remove (name_selector_entry->update_completions_cb_id); +} + clear_completion_model (name_selector_entry); return FALSE; |
