aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/comp-util.h
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-10-28 06:13:20 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-10-28 06:13:20 +0800
commit54634a1357884543f64d00aa135bf8bc9a525880 (patch)
tree44d33eb65ea05b6dba7fff9877948f5967d0fa22 /calendar/gui/comp-util.h
parent18f549eefbc0922c33de0e57095229413ef951f3 (diff)
downloadgsoc2013-evolution-54634a1357884543f64d00aa135bf8bc9a525880.tar
gsoc2013-evolution-54634a1357884543f64d00aa135bf8bc9a525880.tar.gz
gsoc2013-evolution-54634a1357884543f64d00aa135bf8bc9a525880.tar.bz2
gsoc2013-evolution-54634a1357884543f64d00aa135bf8bc9a525880.tar.lz
gsoc2013-evolution-54634a1357884543f64d00aa135bf8bc9a525880.tar.xz
gsoc2013-evolution-54634a1357884543f64d00aa135bf8bc9a525880.tar.zst
gsoc2013-evolution-54634a1357884543f64d00aa135bf8bc9a525880.zip
Delete appointments with empty summaries. Fixes Ximian bug #780.
2001-10-27 Federico Mena Quintero <federico@ximian.com> * 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
Diffstat (limited to 'calendar/gui/comp-util.h')
-rw-r--r--calendar/gui/comp-util.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/calendar/gui/comp-util.h b/calendar/gui/comp-util.h
index 6ea71853fa..b8c3ea453d 100644
--- a/calendar/gui/comp-util.h
+++ b/calendar/gui/comp-util.h
@@ -22,6 +22,7 @@
#ifndef COMP_UTIL_H
#define COMP_UTIL_H
+#include <gtk/gtkwidget.h>
#include <cal-util/cal-component.h>
#include <cal-client/cal-client.h>
@@ -35,4 +36,14 @@ gboolean cal_comp_util_compare_event_timezones (CalComponent *comp,
CalClient *client,
icaltimezone *zone);
+typedef enum {
+ EMPTY_COMP_REMOVE_LOCALLY,
+ EMPTY_COMP_REMOVED_FROM_SERVER,
+ EMPTY_COMP_DO_NOT_REMOVE
+} ConfirmDeleteEmptyCompResult;
+
+ConfirmDeleteEmptyCompResult cal_comp_confirm_delete_empty_comp (CalComponent *comp,
+ CalClient *client,
+ GtkWidget *widget);
+
#endif