From 92d0fb79a748036a21403539a8c296eafb2e2613 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 5 Nov 2007 09:57:30 +0000 Subject: ** Fix for bug #346693 2007-11-05 Milan Crha ** Fix for bug #346693 * gui/e-day-view-top-item.h: (EDayViewTopItem): New property 'show_dates'. * gui/e-day-view-top-item.c: (e_day_view_top_item_draw), (e_day_view_top_item_class_init), (e_day_view_top_item_init), (e_day_view_top_item_set_arg): Always draw background rectangle over whole requested place and draw dates or event only, based on new property 'show_dates'. * gui/e-day-view.h: (struct _EDayView): New properties 'tc_vscrollbar', 'top_dates_canvas', 'top_dates_canvas_item'. * gui/e-day-view.c: (E_DAY_VIEW_MAX_ROWS_AT_TOP), (e_day_view_top_scroll), (e_day_view_update_top_scroll), (e_day_view_on_top_canvas_scroll), (e_day_view_init), (e_day_view_style_set), (e_day_view_size_allocate), (e_day_view_check_layout), (e_day_view_on_editing_started): Added support for scrolling 'top_canvas' when number of items there increases over the 'E_DAY_VIEW_MAX_ROWS_AT_TOP'. * gui/e-day-view.c: (e_day_view_set_selected_time_range), (e_day_view_set_selected_time_range_in_top_visible), (e_day_view_set_selected_time_range_visible), (e_day_view_set_selected_time_range), (e_day_view_update_query), (e_day_view_goto_start_of_work_day), (e_day_view_goto_end_of_work_day), (e_day_view_change_duration_to_start_of_work_day), (e_day_view_change_duration_to_end_of_work_day), (e_day_view_layout_timeout_cb): Redraw top_dates_canvas if necessary. svn path=/trunk/; revision=34494 --- calendar/gui/e-day-view.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'calendar/gui/e-day-view.h') diff --git a/calendar/gui/e-day-view.h b/calendar/gui/e-day-view.h index 0b3144a7da..7ee92005ba 100644 --- a/calendar/gui/e-day-view.h +++ b/calendar/gui/e-day-view.h @@ -194,10 +194,17 @@ struct _EDayView { ECalendarView cal_view; + /* The top canvas where the dates are shown. */ + GtkWidget *top_dates_canvas; + GnomeCanvasItem *top_dates_canvas_item; + /* The top canvas where the dates and long appointments are shown. */ GtkWidget *top_canvas; GnomeCanvasItem *top_canvas_item; + /* scrollbar for top_canvas */ + GtkWidget *tc_vscrollbar; + /* The main canvas where the rest of the appointments are shown. */ GtkWidget *main_canvas; GnomeCanvasItem *main_canvas_item; -- cgit v1.2.3