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
This commit is contained in:
committed by
Federico Mena Quintero
parent
8f5cd24b3e
commit
1af092ec09
@ -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):
|
||||
|
||||
@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user