aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/task-page.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-08-17 04:27:04 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-08-17 04:27:04 +0800
commitced6dc05f895375377fe0f063e6c572a884ed3a0 (patch)
tree9dbc9d3549131192640ead44375b7dfda34cd504 /calendar/gui/dialogs/task-page.c
parent23c322c8934fb690cf1cbf9e155310e406892b75 (diff)
downloadgsoc2013-evolution-ced6dc05f895375377fe0f063e6c572a884ed3a0.tar.gz
gsoc2013-evolution-ced6dc05f895375377fe0f063e6c572a884ed3a0.tar.zst
gsoc2013-evolution-ced6dc05f895375377fe0f063e6c572a884ed3a0.zip
New function to strip surrounding whitespace from a string of categories
2001-08-16 Federico Mena Quintero <federico@ximian.com> * gui/dialogs/comp-editor-util.c (comp_editor_strip_categories): New function to strip surrounding whitespace from a string of categories entered by the user. * gui/dialogs/task-page.c (task_page_fill_component): Use comp_editor_strip_categories(). * gui/dialogs/event-page.c (event_page_fill_component): Likewise. svn path=/trunk/; revision=12122
Diffstat (limited to 'calendar/gui/dialogs/task-page.c')
-rw-r--r--calendar/gui/dialogs/task-page.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c
index f6ad6da413..84eb1017d4 100644
--- a/calendar/gui/dialogs/task-page.c
+++ b/calendar/gui/dialogs/task-page.c
@@ -533,11 +533,15 @@ task_page_fill_component (CompEditorPage *page, CalComponent *comp)
/* Categories */
cat = e_dialog_editable_get (priv->categories);
- cal_component_set_categories (comp, cat);
-
+ str = comp_editor_strip_categories (cat);
if (cat)
g_free (cat);
+ cal_component_set_categories (comp, str);
+
+ if (str)
+ g_free (str);
+
/* Contacts */
comp_editor_contacts_to_component (priv->contacts_entry, comp);
}