aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-day-view.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2003-07-23 20:14:57 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2003-07-23 20:14:57 +0800
commit3be35526b66418c9ccd664523620c8c7cde550b5 (patch)
tree559eb54a4569725787a3a21440e4506f5fbdcb8e /calendar/gui/e-day-view.c
parentc1a24b93ef371ae2d2aca8b905b9d3ed72b16083 (diff)
downloadgsoc2013-evolution-3be35526b66418c9ccd664523620c8c7cde550b5.tar.gz
gsoc2013-evolution-3be35526b66418c9ccd664523620c8c7cde550b5.tar.zst
gsoc2013-evolution-3be35526b66418c9ccd664523620c8c7cde550b5.zip
removed unneeded prototypes.
2003-07-23 Rodrigo Moya <rodrigo@ximian.com> * gui/e-day-view.h: * gui/e-week-view.h: removed unneeded prototypes. * gui/e-cal-view.[ch] (e_cal_view_get_visible_time_range): new function. (selection_received): deal correctly with the selected time range. * gui/e-week-view.c (e_week_view_get_visible_time_range): made it private as the implementation of the 'get_visible_time_range' virtual method. * gui/e-day-view.c (e_day_view_get_visible_time_range): ditto. * gui/gnome-cal.c (gnome_calendar_direction): merged redundant 'case'. (focus_current_view): removed redundant code. svn path=/trunk/; revision=21897
Diffstat (limited to 'calendar/gui/e-day-view.c')
-rw-r--r--calendar/gui/e-day-view.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index 707acdddd9..52d9f53a2f 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -154,6 +154,7 @@ static gboolean e_day_view_popup_menu (GtkWidget *widget);
static GList *e_day_view_get_selected_events (ECalView *cal_view);
static void e_day_view_get_selected_time_range (EDayView *day_view, time_t *start_time, time_t *end_time);
static void e_day_view_set_selected_time_range (EDayView *day_view, time_t start_time, time_t end_time);
+static gboolean e_day_view_get_visible_time_range (EDayView *day_view, time_t *start_time, time_t *end_time);
static void e_day_view_update_query (EDayView *day_view);
static void e_day_view_goto_start_of_work_day (EDayView *day_view);
static void e_day_view_goto_end_of_work_day (EDayView *day_view);
@@ -507,6 +508,7 @@ e_day_view_class_init (EDayViewClass *class)
view_class->get_selected_events = e_day_view_get_selected_events;
view_class->get_selected_time_range = e_day_view_get_selected_time_range;
view_class->set_selected_time_range = e_day_view_set_selected_time_range;
+ view_class->get_visible_time_range = e_day_view_get_visible_time_range;
view_class->update_query = e_day_view_update_query;
}
@@ -2247,6 +2249,21 @@ e_day_view_get_selected_time_range (EDayView *day_view,
*end_time = end;
}
+/* Gets the visible time range. Returns FALSE if no time range has been set. */
+static gboolean
+e_day_view_get_visible_time_range (EDayView *day_view,
+ time_t *start_time,
+ time_t *end_time)
+{
+ /* If the date isn't set, return FALSE. */
+ if (day_view->lower == 0 && day_view->upper == 0)
+ return FALSE;
+
+ *start_time = day_view->day_starts[0];
+ *end_time = day_view->day_starts[day_view->days_shown];
+
+ return TRUE;
+}
static void
e_day_view_recalc_day_starts (EDayView *day_view,
@@ -7732,23 +7749,6 @@ e_day_view_get_time_string_width (EDayView *day_view)
return time_width;
}
-/* Gets the visible time range. Returns FALSE if no time range has been set. */
-gboolean
-e_day_view_get_visible_time_range (EDayView *day_view,
- time_t *start_time,
- time_t *end_time)
-{
- /* If the date isn't set, return FALSE. */
- if (day_view->lower == 0 && day_view->upper == 0)
- return FALSE;
-
- *start_time = day_view->day_starts[0];
- *end_time = day_view->day_starts[day_view->days_shown];
-
- return TRUE;
-}
-
-
/* Queues a layout, unless one is already queued. */
static void
e_day_view_queue_layout (EDayView *day_view)