aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@helixcode.com>2000-06-03 10:28:34 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2000-06-03 10:28:34 +0800
commit6ec291cbc6660e1732543bcfc20885c7020cb8ed (patch)
treeae96a9e80e9f2f1e24ca0adaa55be3fc95c45c3f /calendar/gui/e-week-view.c
parent31642359471574aad4a8427a18692d2558c91c5c (diff)
downloadgsoc2013-evolution-6ec291cbc6660e1732543bcfc20885c7020cb8ed.tar
gsoc2013-evolution-6ec291cbc6660e1732543bcfc20885c7020cb8ed.tar.gz
gsoc2013-evolution-6ec291cbc6660e1732543bcfc20885c7020cb8ed.tar.bz2
gsoc2013-evolution-6ec291cbc6660e1732543bcfc20885c7020cb8ed.tar.lz
gsoc2013-evolution-6ec291cbc6660e1732543bcfc20885c7020cb8ed.tar.xz
gsoc2013-evolution-6ec291cbc6660e1732543bcfc20885c7020cb8ed.tar.zst
gsoc2013-evolution-6ec291cbc6660e1732543bcfc20885c7020cb8ed.zip
New function to call the print engine. (calendar_toolbar): Added the Print
2000-06-02 Federico Mena Quintero <federico@helixcode.com> * gui/calendar-commands.c (print): New function to call the print engine. (calendar_toolbar): Added the Print button. (calendar_control_activate): Added the File/Print item. * gui/e-day-view.c (e_day_view_get_selected_time_range): Allow start_time and end_time to be NULL. * gui/e-week-view.c (e_week_view_get_selected_time_range): Likewise. * gui/print.c (range_selector_new): Show the range selector widgets. Use the correct radio group for all of them! (print_calendar): Do the dialog box here. We may want to split this function later into smaller chunks. svn path=/trunk/; revision=3409
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index d756fd7a51..8eb053e28b 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -847,8 +847,11 @@ e_week_view_get_selected_time_range (EWeekView *week_view,
end_day = 0;
}
- *start_time = week_view->day_starts[start_day];
- *end_time = week_view->day_starts[end_day + 1];
+ if (start_time)
+ *start_time = week_view->day_starts[start_day];
+
+ if (end_time)
+ *end_time = week_view->day_starts[end_day + 1];
}