diff options
author | Damon Chaplin <damon@helixcode.com> | 2000-05-08 03:22:25 +0800 |
---|---|---|
committer | Damon Chaplin <damon@src.gnome.org> | 2000-05-08 03:22:25 +0800 |
commit | 271cb81264219225420332375135c74857e035e7 (patch) | |
tree | cc1aebacc4843f85d5f85a80c8fe67c0dc3cc79c /calendar/gui/e-day-view.c | |
parent | 257a9db4f36d7c6b8766ba42926435c7220adf99 (diff) | |
download | gsoc2013-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/gui/e-day-view.c')
-rw-r--r-- | calendar/gui/e-day-view.c | 10 |
1 files changed, 10 insertions, 0 deletions
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); |