aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gncal-full-day.h
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@nuclecu.unam.mx>1998-04-13 05:38:59 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-04-13 05:38:59 +0800
commit75c96db2e105085d12295990d44b8427eb8230c2 (patch)
treefabe5ec93cc297324cfdc056d39e35fea3cb69d9 /calendar/gncal-full-day.h
parentfbc607b0edbdc39297d17c0ecc75b45e4bfbb0c8 (diff)
downloadgsoc2013-evolution-75c96db2e105085d12295990d44b8427eb8230c2.tar.gz
gsoc2013-evolution-75c96db2e105085d12295990d44b8427eb8230c2.tar.zst
gsoc2013-evolution-75c96db2e105085d12295990d44b8427eb8230c2.zip
We now connect to the range_activated signal of the fullday widget instead
1998-04-12 Federico Mena Quintero <federico@nuclecu.unam.mx> * 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 <federico@nuclecu.unam.mx> * 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
Diffstat (limited to 'calendar/gncal-full-day.h')
-rw-r--r--calendar/gncal-full-day.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/calendar/gncal-full-day.h b/calendar/gncal-full-day.h
index 27e60c9326..309924bc2e 100644
--- a/calendar/gncal-full-day.h
+++ b/calendar/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