From 54634a1357884543f64d00aa135bf8bc9a525880 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Sat, 27 Oct 2001 22:13:20 +0000 Subject: Delete appointments with empty summaries. Fixes Ximian bug #780. 2001-10-27 Federico Mena Quintero * gui/e-day-view.c (e_day_view_on_editing_stopped): Delete appointments with empty summaries. Fixes Ximian bug #780. * gui/e-week-view.c (e_week_view_on_editing_stopped): Likewise. * gui/dialogs/delete-comp.c (delete_component_dialog): Added an argument to specify whether we unconditionally want single components to be considered as not having a summary. * gui/comp-util.c (cal_comp_confirm_delete_empty_comp): New function. * gui/misc.[ch]: New files with miscellaneous utility functions; moved string_is_empty() over from calendar-model.c. * gui/calendar-model.c: Use the string_is_empty() function from misc.c. * gui/Makefile.am (evolution_calendar_SOURCES): Added misc.[ch] to the list of sources. svn path=/trunk/; revision=14233 --- calendar/gui/misc.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 calendar/gui/misc.h (limited to 'calendar/gui/misc.h') diff --git a/calendar/gui/misc.h b/calendar/gui/misc.h new file mode 100644 index 0000000000..8f4864a174 --- /dev/null +++ b/calendar/gui/misc.h @@ -0,0 +1,29 @@ +/* Evolution calendar - Miscellaneous utility functions + * + * Copyright (C) 2001 Ximian, Inc. + * + * Authors: Federico Mena-Quintero + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef MISC_H +#define MISC_H + +#include + +gboolean string_is_empty (const char *value); + +#endif -- cgit v1.2.3