aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorDamon Chaplin <damon@helixcode.com>2000-05-08 03:22:25 +0800
committerDamon Chaplin <damon@src.gnome.org>2000-05-08 03:22:25 +0800
commit271cb81264219225420332375135c74857e035e7 (patch)
treecc1aebacc4843f85d5f85a80c8fe67c0dc3cc79c /calendar
parent257a9db4f36d7c6b8766ba42926435c7220adf99 (diff)
downloadgsoc2013-evolution-271cb81264219225420332375135c74857e035e7.tar.gz
gsoc2013-evolution-271cb81264219225420332375135c74857e035e7.tar.zst
gsoc2013-evolution-271cb81264219225420332375135c74857e035e7.zip
show the EText item, just in case it hasn't moved, otherwise it won't
2000-05-07 Damon Chaplin <damon@helixcode.com> * 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
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog10
-rw-r--r--calendar/gui/e-day-view.c10
-rw-r--r--calendar/gui/e-day-view.h7
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 <damon@helixcode.com>
+
+ * 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 <matt@helixcode.com>
* 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. */