From ef025c689be33a54883b5e8b77e58916d1c8002d Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Thu, 2 Aug 2001 03:40:17 +0000 Subject: If the default category is the same as the value passed in to this 2001-08-01 Federico Mena Quintero * gui/calendar-model.c (calendar_model_value_is_empty): If the default category is the same as the value passed in to this function, return TRUE. This could be a hack or not, but it prevents two items from being added to the table if a category is selected. * gui/e-tasks.c (setup_widgets): Allow the search bar to shrink horizontally. * gui/dialogs/task-page.c (clear_widgets): Pass valid values to e_dialog_option_menu_set(); these need to come from the status map. svn path=/trunk/; revision=11565 --- calendar/gui/dialogs/task-page.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'calendar/gui/dialogs') diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c index e50f9f9681..4410fbddf3 100644 --- a/calendar/gui/dialogs/task-page.c +++ b/calendar/gui/dialogs/task-page.c @@ -286,8 +286,8 @@ clear_widgets (TaskPage *tpage) /* Status, priority, complete percent */ e_dialog_spin_set (priv->percent_complete, 0.0); - e_dialog_option_menu_set (priv->status, 0, status_map); - e_dialog_option_menu_set (priv->priority, 0, priority_map); + e_dialog_option_menu_set (priv->status, ICAL_STATUS_NEEDSACTION, status_map); + e_dialog_option_menu_set (priv->priority, PRIORITY_UNDEFINED, priority_map); /* Categories */ e_dialog_editable_set (priv->categories, NULL); -- cgit