aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadek Doulik <rodo@src.gnome.org>2004-01-18 07:55:24 +0800
committerRadek Doulik <rodo@src.gnome.org>2004-01-18 07:55:24 +0800
commita18a9ee80ce04d891405a851b506148a00f7e154 (patch)
tree8f1b4c49c26d435ad158d6b4fdbf4c981c3f4340
parentae353b456cb569f4beb3e16ae2cf059d9a001c23 (diff)
downloadgsoc2013-evolution-a18a9ee80ce04d891405a851b506148a00f7e154.tar
gsoc2013-evolution-a18a9ee80ce04d891405a851b506148a00f7e154.tar.gz
gsoc2013-evolution-a18a9ee80ce04d891405a851b506148a00f7e154.tar.bz2
gsoc2013-evolution-a18a9ee80ce04d891405a851b506148a00f7e154.tar.lz
gsoc2013-evolution-a18a9ee80ce04d891405a851b506148a00f7e154.tar.xz
gsoc2013-evolution-a18a9ee80ce04d891405a851b506148a00f7e154.tar.zst
gsoc2013-evolution-a18a9ee80ce04d891405a851b506148a00f7e154.zip
(print_table): set page orientation, it may be changed from last
printing (print_comp): ditto svn path=/trunk/; revision=24293
-rw-r--r--calendar/ChangeLog3
-rw-r--r--calendar/gui/print.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 9854ec619a..b61f1ed39f 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -3,6 +3,9 @@
* gui/print.c (print_border_with_triangles): use rgb color as
fillcolor
(print_week_day_event): ditto
+ (print_table): set page orientation, it may be changed from last
+ printing
+ (print_comp): ditto
* gui/e-cal-model.c (e_cal_model_get_rgb_color_for_component): new
helper function, gets component color as rgb double values
diff --git a/calendar/gui/print.c b/calendar/gui/print.c
index 1fc52bac74..77e375f16c 100644
--- a/calendar/gui/print.c
+++ b/calendar/gui/print.c
@@ -2576,6 +2576,8 @@ print_comp (ECalComponent *comp, ECal *client, gboolean preview)
if (!print_config)
print_config = gnome_print_config_default ();
+ gnome_print_config_set (print_config, GNOME_PRINT_KEY_PAGE_ORIENTATION, "R0");
+
copies = 1;
collate = FALSE;
@@ -2678,6 +2680,7 @@ print_table (ETable *etable, const char *title, gboolean preview)
if (!print_config)
print_config = gnome_print_config_default ();
+ gnome_print_config_set (print_config, GNOME_PRINT_KEY_PAGE_ORIENTATION, "R0");
printable = e_table_get_printable (etable);
g_object_ref (printable);
gtk_object_sink (GTK_OBJECT (printable));