aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 6397ce94d1..838fda8478 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -373,7 +373,6 @@ model_row_changed_cb (ETableModel *etm, gint row, gpointer user_data)
return;
}
-
update_row (week_view, row);
}
@@ -664,7 +663,6 @@ e_week_view_new (ECalModel *model)
return week_view;
}
-
static void
e_week_view_destroy (GtkObject *object)
{
@@ -713,7 +711,6 @@ e_week_view_destroy (GtkObject *object)
GTK_OBJECT_CLASS (e_week_view_parent_class)->destroy (object);
}
-
static void
e_week_view_realize (GtkWidget *widget)
{
@@ -989,7 +986,6 @@ e_week_view_style_set (GtkWidget *widget,
pango_font_metrics_unref (font_metrics);
}
-
/* This recalculates the sizes of each column. */
static void
e_week_view_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
@@ -1012,7 +1008,6 @@ e_week_view_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
gnome_canvas_set_scroll_region (GNOME_CANVAS (week_view->titles_canvas),
0, 0, new_x2, new_y2);
-
/* Set the scroll region of the main canvas to its allocated width,
but with the height depending on the number of rows needed. */
gnome_canvas_get_scroll_region (GNOME_CANVAS (week_view->main_canvas),
@@ -1030,7 +1025,6 @@ e_week_view_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
}
}
-
static void
e_week_view_recalc_cell_sizes (EWeekView *week_view)
{
@@ -1085,7 +1079,6 @@ e_week_view_recalc_cell_sizes (EWeekView *week_view)
- week_view->row_offsets[row];
}
-
/* If the font hasn't been set yet just return. */
widget = GTK_WIDGET (week_view);
style = gtk_widget_get_style (widget);
@@ -1099,7 +1092,6 @@ e_week_view_recalc_cell_sizes (EWeekView *week_view)
font_metrics = pango_context_get_metrics (pango_context, font_desc,
pango_context_get_language (pango_context));
-
/* Calculate the number of rows of events in each cell, for the large
cells and the compressed weekend cells. */
if (week_view->multi_week_view) {
@@ -1151,7 +1143,6 @@ e_week_view_recalc_cell_sizes (EWeekView *week_view)
pango_font_metrics_unref (font_metrics);
}
-
static gint
e_week_view_focus_in (GtkWidget *widget, GdkEventFocus *event)
{
@@ -1170,7 +1161,6 @@ e_week_view_focus_in (GtkWidget *widget, GdkEventFocus *event)
return FALSE;
}
-
static gint
e_week_view_focus_out (GtkWidget *widget, GdkEventFocus *event)
{
@@ -1189,7 +1179,6 @@ e_week_view_focus_out (GtkWidget *widget, GdkEventFocus *event)
return FALSE;
}
-
/* This draws a shadow around the top display and main display. */
static gint
e_week_view_expose_event (GtkWidget *widget,
@@ -1507,7 +1496,6 @@ e_week_view_set_selected_time_range_visible (EWeekView *week_view,
gtk_widget_queue_draw (week_view->main_canvas);
}
-
/* Returns the selected time range. */
static gboolean
e_week_view_get_selected_time_range (ECalendarView *cal_view,
@@ -1554,7 +1542,6 @@ e_week_view_get_visible_time_range (ECalendarView *cal_view,
return TRUE;
}
-
/* Note that the returned date may be invalid if no date has been set yet. */
void
e_week_view_get_first_day_shown (EWeekView *week_view,
@@ -1563,7 +1550,6 @@ e_week_view_get_first_day_shown (EWeekView *week_view,
*date = week_view->first_day_shown;
}
-
/* This sets the first day shown in the view. It will be rounded down to the
nearest week. */
void
@@ -1653,7 +1639,6 @@ e_week_view_set_first_day_shown (EWeekView *week_view,
gtk_widget_queue_draw (week_view->main_canvas);
}
-
/* Recalculates the time_t corresponding to the start of each day. */
static void
e_week_view_recalc_day_starts (EWeekView *week_view,
@@ -1695,7 +1680,6 @@ e_week_view_get_multi_week_view (EWeekView *week_view)
return week_view->multi_week_view;
}
-
void
e_week_view_set_multi_week_view (EWeekView *week_view,
gboolean multi_week_view)
@@ -1754,7 +1738,6 @@ e_week_view_get_update_base_date (EWeekView *week_view)
return week_view->update_base_date;
}
-
void
e_week_view_set_update_base_date (EWeekView *week_view, gboolean update_base_date)
{
@@ -1771,7 +1754,6 @@ e_week_view_get_weeks_shown (EWeekView *week_view)
return week_view->weeks_shown;
}
-
void
e_week_view_set_weeks_shown (EWeekView *week_view,
gint weeks_shown)
@@ -1811,7 +1793,6 @@ e_week_view_set_weeks_shown (EWeekView *week_view,
}
}
-
gboolean
e_week_view_get_compress_weekend (EWeekView *week_view)
{
@@ -1820,7 +1801,6 @@ e_week_view_get_compress_weekend (EWeekView *week_view)
return week_view->compress_weekend;
}
-
void
e_week_view_set_compress_weekend (EWeekView *week_view,
gboolean compress)
@@ -1867,7 +1847,6 @@ e_week_view_get_show_event_end_times (EWeekView *week_view)
return week_view->show_event_end_times;
}
-
void
e_week_view_set_show_event_end_times (EWeekView *week_view,
gboolean show)
@@ -1882,7 +1861,6 @@ e_week_view_set_show_event_end_times (EWeekView *week_view,
}
}
-
/* The first day of the week, 0 (Monday) to 6 (Sunday). */
gint
e_week_view_get_week_start_day (EWeekView *week_view)
@@ -1892,7 +1870,6 @@ e_week_view_get_week_start_day (EWeekView *week_view)
return week_view->week_start_day;
}
-
void
e_week_view_set_week_start_day (EWeekView *week_view,
gint week_start_day)
@@ -2004,7 +1981,6 @@ e_week_view_foreach_event_with_uid (EWeekView *week_view,
}
}
-
static gboolean
e_week_view_remove_event_cb (EWeekView *week_view,
gint event_num,
@@ -2066,7 +2042,6 @@ e_week_view_remove_event_cb (EWeekView *week_view,
return TRUE;
}
-
void
e_week_view_get_day_position (EWeekView *week_view,
gint day,
@@ -2097,7 +2072,6 @@ e_week_view_get_day_position (EWeekView *week_view,
}
}
-
/* Returns the bounding box for a span of an event. Usually this can easily
be determined by the start & end days and row of the span, which are set in
e_week_view_layout_event(). Though we need a special case for the weekends
@@ -2159,8 +2133,6 @@ e_week_view_get_span_position (EWeekView *week_view,
return TRUE;
}
-
-
static gboolean
e_week_view_on_button_press (GtkWidget *widget,
GdkEventButton *event,
@@ -2237,7 +2209,6 @@ e_week_view_on_button_press (GtkWidget *widget,
return TRUE;
}
-
static gboolean
e_week_view_on_button_release (GtkWidget *widget,
GdkEventButton *event,
@@ -2293,7 +2264,6 @@ e_week_view_on_scroll (GtkWidget *widget,
return TRUE;
}
-
static gboolean
e_week_view_on_motion (GtkWidget *widget,
GdkEventMotion *mevent,
@@ -2320,7 +2290,6 @@ e_week_view_on_motion (GtkWidget *widget,
return FALSE;
}
-
/* Converts a position in the canvas window to a day offset from the first
day displayed. Returns -1 if the position is outside the grid. */
static gint
@@ -2380,7 +2349,6 @@ e_week_view_convert_position_to_day (EWeekView *week_view,
return week * 7 + day;
}
-
static void
e_week_view_update_selection (EWeekView *week_view,
gint day)
@@ -2421,7 +2389,6 @@ e_week_view_update_selection (EWeekView *week_view,
}
}
-
static void
e_week_view_free_events (EWeekView *week_view)
{
@@ -2471,7 +2438,6 @@ e_week_view_free_events (EWeekView *week_view)
}
}
-
/* This adds one event to the view, adding it to the appropriate array. */
static gboolean
e_week_view_add_event (ECalComponent *comp,
@@ -2546,7 +2512,6 @@ e_week_view_add_event (ECalComponent *comp,
return TRUE;
}
-
/* This lays out the events, or reshapes them, as necessary. */
static void
e_week_view_check_layout (EWeekView *week_view)
@@ -2575,7 +2540,6 @@ e_week_view_check_layout (EWeekView *week_view)
week_view->events_need_reshape = FALSE;
}
-
static void
e_week_view_ensure_events_sorted (EWeekView *week_view)
{
@@ -2588,7 +2552,6 @@ e_week_view_ensure_events_sorted (EWeekView *week_view)
}
}
-
gint
e_week_view_event_sort_func (gconstpointer arg1,
gconstpointer arg2)
@@ -2611,7 +2574,6 @@ e_week_view_event_sort_func (gconstpointer arg1,
return 0;
}
-
static void
e_week_view_reshape_events (EWeekView *week_view)
{
@@ -2900,7 +2862,6 @@ e_week_view_reshape_event_span (EWeekView *week_view,
the icons in the middle, but making sure we don't go over the times.
*/
-
/* Calculate the space necessary to display a time, e.g. "13:00". */
time_width = e_week_view_get_time_string_width (week_view);
@@ -3112,7 +3073,6 @@ e_week_view_start_editing_event (EWeekView *week_view,
return TRUE;
}
-
/* This stops any current edit. */
void
e_week_view_stop_editing_event (EWeekView *week_view)
@@ -3129,7 +3089,6 @@ e_week_view_stop_editing_event (EWeekView *week_view)
gtk_window_set_focus (GTK_WINDOW (toplevel), NULL);
}
-
/* Cancels the current edition by resetting the appointment's text to its original value */
static void
cancel_editing (EWeekView *week_view)
@@ -3304,7 +3263,6 @@ e_week_view_on_text_item_event (GnomeCanvasItem *item,
&nspan))
return FALSE;
-
g_object_set_data ((GObject *)item, "event-num", GINT_TO_POINTER (nevent));
pevent = tooltip_get_view_event (week_view, -1, nevent);
@@ -3510,7 +3468,6 @@ e_week_view_change_event_time (EWeekView *week_view, time_t start_dt, time_t end
week_view->last_edited_comp_string = e_cal_component_get_as_string (comp);
-
if (e_cal_component_has_recurrences (comp)) {
if (!recur_component_dialog (client, comp, &mod, NULL, FALSE)) {
gtk_widget_queue_draw (week_view->main_canvas);
@@ -3565,7 +3522,6 @@ e_week_view_on_editing_started (EWeekView *week_view,
g_signal_emit_by_name (week_view, "selection_changed");
}
-
static void
e_week_view_on_editing_stopped (EWeekView *week_view,
GnomeCanvasItem *item)
@@ -3725,7 +3681,6 @@ e_week_view_on_editing_stopped (EWeekView *week_view,
g_signal_emit_by_name (week_view, "selection_changed");
}
-
gboolean
e_week_view_find_event_from_item (EWeekView *week_view,
GnomeCanvasItem *item,
@@ -3755,7 +3710,6 @@ e_week_view_find_event_from_item (EWeekView *week_view,
return FALSE;
}
-
/* Finds the index of the event with the given uid.
Returns TRUE if an event with the uid was found.
Note that for recurring events there may be several EWeekViewEvents, one
@@ -3808,7 +3762,6 @@ e_week_view_find_event_from_uid (EWeekView *week_view,
return FALSE;
}
-
gboolean
e_week_view_is_one_day_event (EWeekView *week_view,
gint event_num)
@@ -4409,7 +4362,6 @@ e_week_view_on_jump_button_event (GnomeCanvasItem *item,
return FALSE;
}
-
/* Converts an hour from 0-23 to the preferred time format, and returns the
suffix to add and the width of it in the normal font. */
void
@@ -4441,7 +4393,6 @@ e_week_view_convert_time_to_display (EWeekView *week_view,
}
}
-
gint
e_week_view_get_time_string_width (EWeekView *week_view)
{
@@ -4470,7 +4421,6 @@ e_week_view_queue_layout (EWeekView *week_view)
}
}
-
/* Removes any queued layout. */
static void
e_week_view_cancel_layout (EWeekView *week_view)
@@ -4481,7 +4431,6 @@ e_week_view_cancel_layout (EWeekView *week_view)
}
}
-
static gboolean
e_week_view_layout_timeout_cb (gpointer data)
{
@@ -4494,7 +4443,6 @@ e_week_view_layout_timeout_cb (gpointer data)
return FALSE;
}
-
/* Returns the number of selected events (0 or 1 at present). */
gint
e_week_view_get_num_events_selected (EWeekView *week_view)