aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-model.h
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-01-20 00:41:40 +0800
committerMilan Crha <mcrha@src.gnome.org>2009-01-20 00:41:40 +0800
commitfa2e93cedc1396a3e323c3a4a1bfdfee8ac3bf53 (patch)
tree2d817af9437b0f47477aee12947446d1fbce191c /calendar/gui/e-cal-model.h
parent324f78272ffa32c943600918a90a032ba94272dc (diff)
downloadgsoc2013-evolution-fa2e93cedc1396a3e323c3a4a1bfdfee8ac3bf53.tar.gz
gsoc2013-evolution-fa2e93cedc1396a3e323c3a4a1bfdfee8ac3bf53.tar.zst
gsoc2013-evolution-fa2e93cedc1396a3e323c3a4a1bfdfee8ac3bf53.zip
** Fix for bug #567850
2009-01-19 Milan Crha <mcrha@redhat.com> ** Fix for bug #567850 * gui/e-cal-model.h: (e_cal_model_set_default_time_func): * gui/e-cal-model.c: (struct _ECalModelPrivate), (ecm_append_row), (e_cal_model_set_default_time_func): New functionality to retrieve a default time for a model's new event created from a "click-to-add" row. * gui/gnome-cal.c: (gc_get_default_time), (setup_widgets): Set the new time callback for the memo table. svn path=/trunk/; revision=37100
Diffstat (limited to 'calendar/gui/e-cal-model.h')
-rw-r--r--calendar/gui/e-cal-model.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/calendar/gui/e-cal-model.h b/calendar/gui/e-cal-model.h
index ad9bc7d9ae..80ba4d4b5b 100644
--- a/calendar/gui/e-cal-model.h
+++ b/calendar/gui/e-cal-model.h
@@ -121,6 +121,8 @@ typedef struct {
void (* cal_view_done) (ECalModel *model, ECalendarStatus status, ECalSourceType type);
} ECalModelClass;
+typedef time_t (*ECalModelDefaultTimeFunc)(ECalModel *model, gpointer user_data);
+
GType e_cal_model_get_type (void);
GType e_cal_model_component_get_type (void);
icalcomponent_kind e_cal_model_get_component_kind (ECalModel *model);
@@ -184,6 +186,8 @@ void e_cal_model_set_search_query_with_time_range (ECalModel *model, const char
gboolean e_cal_model_test_row_editable (ECalModel *model, int row);
+void e_cal_model_set_default_time_func (ECalModel *model, ECalModelDefaultTimeFunc func, gpointer user_data);
+
G_END_DECLS
#endif