diff options
author | Rodrigo Moya <rodrigo@src.gnome.org> | 2005-05-16 19:43:23 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2005-05-16 19:43:23 +0800 |
commit | 3c3d116d6ca48861fd9d7efd89d82d7f1d33db3d (patch) | |
tree | 758aa010a507d1e1e24843edc345f54473e6d639 /calendar/gui/e-day-view.c | |
parent | 903becfede2bbdc739de5da88ca1341cac3ababf (diff) | |
download | gsoc2013-evolution-3c3d116d6ca48861fd9d7efd89d82d7f1d33db3d.tar.gz gsoc2013-evolution-3c3d116d6ca48861fd9d7efd89d82d7f1d33db3d.tar.zst gsoc2013-evolution-3c3d116d6ca48861fd9d7efd89d82d7f1d33db3d.zip |
Reverted Marcus Baines patch
svn path=/trunk/; revision=29374
Diffstat (limited to 'calendar/gui/e-day-view.c')
-rw-r--r-- | calendar/gui/e-day-view.c | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index 1bee23f573..e7c924fb01 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -716,10 +716,6 @@ e_day_view_init (EDayView *day_view) day_view->week_start_day = 0; day_view->scroll_to_work_day = TRUE; - day_view->show_marcus_bains_line = TRUE; - day_view->marcus_bains_day_view_color = NULL; - day_view->marcus_bains_time_bar_color = NULL; - day_view->editing_event_day = -1; day_view->editing_event_num = -1; @@ -1165,7 +1161,6 @@ e_day_view_set_colors(EDayView *day_view, GtkWidget *widget) day_view->colors[E_DAY_VIEW_COLOR_EVENT_BORDER] = widget->style->dark[GTK_STATE_NORMAL]; day_view->colors[E_DAY_VIEW_COLOR_LONG_EVENT_BACKGROUND] = widget->style->bg[GTK_STATE_ACTIVE]; day_view->colors[E_DAY_VIEW_COLOR_LONG_EVENT_BORDER] = widget->style->dark[GTK_STATE_NORMAL]; - day_view->colors[E_DAY_VIEW_COLOR_MARCUS_BAINS_LINE] = widget->style->dark[GTK_STATE_PRELIGHT]; } static void @@ -2473,59 +2468,6 @@ e_day_view_set_working_day (EDayView *day_view, gtk_widget_queue_draw (day_view->main_canvas); } - -/* Whether we display the Marcus Bains Line in the main canvas and time canvas. */ -gboolean -e_day_view_get_show_marcus_bains (EDayView *day_view) -{ - g_return_val_if_fail (E_IS_DAY_VIEW (day_view), TRUE); - return day_view->show_marcus_bains_line; -} - -/* Force a redraw of the Marcus Bains Lines */ -void -e_day_view_update_marcus_bains (EDayView *day_view) -{ - g_return_if_fail (E_IS_DAY_VIEW (day_view)); - gtk_widget_queue_draw (day_view->main_canvas); - gtk_widget_queue_draw (day_view->time_canvas); -} - - -/* Update the variables controlling the Marcus Bains Line (display toggle, and colors). */ -void -e_day_view_set_marcus_bains (EDayView *day_view, - gboolean show_line, - const char *dayview_color, - const char *timebar_color) -{ - g_return_if_fail (E_IS_DAY_VIEW (day_view)); - - if ((day_view->show_marcus_bains_line != show_line) | - (day_view->marcus_bains_day_view_color != dayview_color) | - (day_view->marcus_bains_time_bar_color != timebar_color)) { - - if (day_view->marcus_bains_day_view_color) - g_free (day_view->marcus_bains_day_view_color); - if (day_view->marcus_bains_time_bar_color) - g_free (day_view->marcus_bains_time_bar_color); - - day_view->show_marcus_bains_line = show_line; - if (dayview_color) - day_view->marcus_bains_day_view_color = g_strdup (dayview_color); - else - day_view->marcus_bains_day_view_color = NULL; - - if (timebar_color) - day_view->marcus_bains_time_bar_color = g_strdup (timebar_color); - else - day_view->marcus_bains_time_bar_color = NULL; - - e_day_view_update_marcus_bains (day_view); - } -} - - /* Whether we display event end times in the main canvas. */ gboolean e_day_view_get_show_event_end_times (EDayView *day_view) |