aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-commands.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2004-01-18 05:06:14 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-01-18 05:06:14 +0800
commitd8c28801a75106daf09303a1cdcae6814fc91773 (patch)
tree685bf8a1c8321ed09e299e7e0f2397f84f9263ab /calendar/gui/calendar-commands.c
parentfe09d1e6a6f00ee603d678a10673e2c50986e14e (diff)
downloadgsoc2013-evolution-d8c28801a75106daf09303a1cdcae6814fc91773.tar
gsoc2013-evolution-d8c28801a75106daf09303a1cdcae6814fc91773.tar.gz
gsoc2013-evolution-d8c28801a75106daf09303a1cdcae6814fc91773.tar.bz2
gsoc2013-evolution-d8c28801a75106daf09303a1cdcae6814fc91773.tar.lz
gsoc2013-evolution-d8c28801a75106daf09303a1cdcae6814fc91773.tar.xz
gsoc2013-evolution-d8c28801a75106daf09303a1cdcae6814fc91773.tar.zst
gsoc2013-evolution-d8c28801a75106daf09303a1cdcae6814fc91773.zip
update protos
004-01-17 JP Rosevear <jpr@ximian.com> * gui/print.h: update protos * gui/print.c (print_title): util routine to print a title (print_table): print out an etable * gui/calendar-commands.c (print): handle printing the list view * gui/e-cal-list-view.etspec: draw the grid to mimic tasks * gui/tasks-control.c (tasks_control_print_cmd): use print_table Fixes #51751, #52958 svn path=/trunk/; revision=24290
Diffstat (limited to 'calendar/gui/calendar-commands.c')
-rw-r--r--calendar/gui/calendar-commands.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c
index 1ff2a3a0a8..5058b1c66a 100644
--- a/calendar/gui/calendar-commands.c
+++ b/calendar/gui/calendar-commands.c
@@ -61,6 +61,7 @@
#include "dialogs/cal-prefs-dialog.h"
#include "itip-utils.h"
#include "e-pub-utils.h"
+#include "e-cal-list-view.h"
#include "evolution-shell-component-utils.h"
/* Focusing information for the calendar view. We have to keep track of this
@@ -89,7 +90,9 @@ print (GnomeCalendar *gcal, gboolean preview)
time_t start;
GnomeCalendarViewType view_type;
PrintView print_view;
-
+ ECalListView *list_view;
+ ETable *etable;
+
gnome_calendar_get_current_time_range (gcal, &start, NULL);
view_type = gnome_calendar_get_view (gcal);
@@ -107,6 +110,12 @@ print (GnomeCalendar *gcal, gboolean preview)
print_view = PRINT_VIEW_MONTH;
break;
+ case GNOME_CAL_LIST_VIEW:
+ list_view = E_CAL_LIST_VIEW (gnome_calendar_get_current_view_widget (gcal));
+ etable = e_table_scrolled_get_table (list_view->table_scrolled);
+ print_table (etable, _("Calendar"), preview);
+ return;
+
default:
g_assert_not_reached ();
return;