From 75c96db2e105085d12295990d44b8427eb8230c2 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Sun, 12 Apr 1998 21:38:59 +0000 Subject: We now connect to the range_activated signal of the fullday widget instead 1998-04-12 Federico Mena Quintero * gnome-cal.c (setup_day_view): We now connect to the range_activated signal of the fullday widget instead of catching key presses ourselves. (day_view_range_activated): New function that creates a new iCalObject and inserts it into the calendar, not finished yet. 1998-04-11 Federico Mena Quintero * gncal-full-day.c (get_time_from_rows): New function, calculates a pair of time_t values from the specified start and number of rows. * gncal-full-day.h (GncalFullDayClass): New signal "range_activated". It is emitted when a range is selected and the user hits Return. (gncal_full_day_selection_range): New function, returns the selected range. * gncal-full-day.c (struct drag_info): Moved selection information to their own fields instead of sharing the child's drag fields. This allows us to keep the selection when a child is moved. (recompute_motion): Made the case when (row < di->sel_click_row) work correctly. svn path=/trunk/; revision=128 --- calendar/gui/gncal-full-day.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'calendar/gui/gncal-full-day.h') diff --git a/calendar/gui/gncal-full-day.h b/calendar/gui/gncal-full-day.h index 27e60c9326..309924bc2e 100644 --- a/calendar/gui/gncal-full-day.h +++ b/calendar/gui/gncal-full-day.h @@ -44,14 +44,21 @@ struct _GncalFullDay { struct _GncalFullDayClass { GtkContainerClass parent_class; + + void (* range_activated) (GncalFullDay *fullday); }; -guint gncal_full_day_get_type (void); -GtkWidget *gncal_full_day_new (GnomeCalendar *calendar, time_t lower, time_t upper); +guint gncal_full_day_get_type (void); +GtkWidget *gncal_full_day_new (GnomeCalendar *calendar, time_t lower, time_t upper); + +void gncal_full_day_update (GncalFullDay *fullday); +void gncal_full_day_set_bounds (GncalFullDay *fullday, time_t lower, time_t upper); -void gncal_full_day_update (GncalFullDay *fullday); -void gncal_full_day_set_bounds (GncalFullDay *fullday, time_t lower, time_t upper); +/* Returns the selected range in lower and upper. If nothing is + * selected, return value is FALSE, otherwise it is TRUE. + */ +int gncal_full_day_selection_range (GncalFullDay *fullday, time_t *lower, time_t *upper); END_GNOME_DECLS -- cgit v1.2.3