aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-11-30 10:12:13 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-11-30 10:12:13 +0800
commit1af092ec093994115d64ed30f04d11bb322aba35 (patch)
tree4a9e4962859e17fdaeb5ac1ed216b0af35d2aedd /calendar
parent8f5cd24b3ec3a36d53fe8b49f97c85421ea2d79c (diff)
downloadgsoc2013-evolution-1af092ec093994115d64ed30f04d11bb322aba35.tar.gz
gsoc2013-evolution-1af092ec093994115d64ed30f04d11bb322aba35.tar.zst
gsoc2013-evolution-1af092ec093994115d64ed30f04d11bb322aba35.zip
Set the category of the new task to that of the search bar. Fixes bug
2001-11-28 Federico Mena Quintero <federico@ximian.com> * gui/gnome-cal.c (gnome_calendar_new_task): Set the category of the new task to that of the search bar. Fixes bug #15533. svn path=/trunk/; revision=14821
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/gnome-cal.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 71ecf38821..337d6c45fe 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+2001-11-28 Federico Mena Quintero <federico@ximian.com>
+
+ * gui/gnome-cal.c (gnome_calendar_new_task): Set the category of
+ the new task to that of the search bar. Fixes bug #15533.
+
2001-11-27 Rodrigo Moya <rodrigo@ximian.com>
* gui/e-itip-control.c (update_attendee_status):
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index 98c01e6372..bc9e426ef4 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -2271,6 +2271,7 @@ gnome_calendar_new_task (GnomeCalendar *gcal)
GnomeCalendarPrivate *priv;
TaskEditor *tedit;
CalComponent *comp;
+ const char *category;
g_return_if_fail (gcal != NULL);
g_return_if_fail (GNOME_IS_CALENDAR (gcal));
@@ -2283,6 +2284,9 @@ gnome_calendar_new_task (GnomeCalendar *gcal)
comp = cal_component_new ();
cal_component_set_new_vtype (comp, CAL_COMPONENT_TODO);
+ category = cal_search_bar_get_category (CAL_SEARCH_BAR (priv->search_bar));
+ cal_component_set_categories (comp, category);
+
comp_editor_edit_comp (COMP_EDITOR (tedit), comp);
gtk_object_unref (GTK_OBJECT (comp));