From 271cb81264219225420332375135c74857e035e7 Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Sun, 7 May 2000 19:22:25 +0000 Subject: show the EText item, just in case it hasn't moved, otherwise it won't 2000-05-07 Damon Chaplin * gui/e-day-view.c (e_day_view_on_main_canvas_drag_data_received): (e_day_view_on_top_canvas_drag_data_received): show the EText item, just in case it hasn't moved, otherwise it won't appear. * gui/e-day-view.h (E_DAY_VIEW_BAR_WIDTH): increased from 6 to 8 to make it easier to drag an event. Also increased E_DAY_VIEW_GAP_WIDTH since it must be >= the BAR_WIDTH. svn path=/trunk/; revision=2878 --- calendar/ChangeLog | 10 ++++++++++ calendar/gui/e-day-view.c | 10 ++++++++++ calendar/gui/e-day-view.h | 7 ++++--- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 4db98a2c15..f988de511d 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,13 @@ +2000-05-07 Damon Chaplin + + * gui/e-day-view.c (e_day_view_on_main_canvas_drag_data_received): + (e_day_view_on_top_canvas_drag_data_received): show the EText item, + just in case it hasn't moved, otherwise it won't appear. + + * gui/e-day-view.h (E_DAY_VIEW_BAR_WIDTH): increased from 6 to 8 to + make it easier to drag an event. Also increased E_DAY_VIEW_GAP_WIDTH + since it must be >= the BAR_WIDTH. + 2000-05-07 Matt Loper * gui/evolution-calendar-control.c (PROPERTY_CALENDAR_URI): diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index 747f541997..3e5054b9f7 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -5008,6 +5008,11 @@ e_day_view_on_top_canvas_drag_data_received (GtkWidget *widget, /* Reset this since it will be invalid. */ day_view->drag_event_day = -1; + /* Show the text item again, just in case it hasn't + moved. If we don't do this it may not appear. */ + if (event->canvas_item) + gnome_canvas_item_show (event->canvas_item); + /* Notify calendar of change */ gnome_calendar_object_changed (day_view->calendar, &ico, CHANGE_DATES); @@ -5082,6 +5087,11 @@ e_day_view_on_main_canvas_drag_data_received (GtkWidget *widget, /* Reset this since it will be invalid. */ day_view->drag_event_day = -1; + /* Show the text item again, just in case it hasn't + moved. If we don't do this it may not appear. */ + if (event->canvas_item) + gnome_canvas_item_show (event->canvas_item); + /* Notify calendar of change */ gnome_calendar_object_changed (day_view->calendar, &ico, CHANGE_DATES); diff --git a/calendar/gui/e-day-view.h b/calendar/gui/e-day-view.h index b00a6f0b3c..2c992f8207 100644 --- a/calendar/gui/e-day-view.h +++ b/calendar/gui/e-day-view.h @@ -49,12 +49,13 @@ extern "C" { #define E_DAY_VIEW_MAX_COLUMNS 6 /* The width of the gap between appointments. This should be at least - E_DAY_VIEW_BAR_WIDTH. */ -#define E_DAY_VIEW_GAP_WIDTH 6 + E_DAY_VIEW_BAR_WIDTH, since in the top canvas we use this space to draw + the triangle to represent continuing events. */ +#define E_DAY_VIEW_GAP_WIDTH 8 /* The width of the bars down the left of each column and appointment. This includes the borders on each side of it. */ -#define E_DAY_VIEW_BAR_WIDTH 6 +#define E_DAY_VIEW_BAR_WIDTH 8 /* The height of the horizontal bar above & beneath the selected event. This includes the borders on the top and bottom. */ -- cgit v1.2.3