From c964fe43570cf69303138abc35eb59253604c403 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Fri, 16 Jan 2004 14:51:05 +0000 Subject: don't set old orientation, preview needs right orientation even after 2004-01-16 Radek Doulik * gui/print.c (print_calendar): don't set old orientation, preview needs right orientation even after everything is printed svn path=/trunk/; revision=24271 --- calendar/ChangeLog | 5 +++++ calendar/gui/print.c | 7 ++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index ae55608317..f43027ff93 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2004-01-16 Radek Doulik + + * gui/print.c (print_calendar): don't set old orientation, preview + needs right orientation even after everything is printed + 2004-01-16 Rodrigo Moya Fixes #52920 diff --git a/calendar/gui/print.c b/calendar/gui/print.c index 06aa854018..1e978d8694 100644 --- a/calendar/gui/print.c +++ b/calendar/gui/print.c @@ -2430,7 +2430,6 @@ print_calendar (GnomeCalendar *gcal, gboolean preview, time_t date, GnomePrintContext *pc; int copies, collate; double l, r, t, b; - gchar *old_orientation; g_return_if_fail (gcal != NULL); g_return_if_fail (GNOME_IS_CALENDAR (gcal)); @@ -2481,10 +2480,10 @@ print_calendar (GnomeCalendar *gcal, gboolean preview, time_t date, gtk_widget_destroy (gpd); } - old_orientation = gnome_print_config_get (print_config, GNOME_PRINT_KEY_PAGE_ORIENTATION); - if (default_view == PRINT_VIEW_MONTH) gnome_print_config_set (print_config, GNOME_PRINT_KEY_PAGE_ORIENTATION, "R90"); + else + gnome_print_config_set (print_config, GNOME_PRINT_KEY_PAGE_ORIENTATION, "R0"); pc = gnome_print_job_get_context (gpm); gnome_print_config_get_page_size (print_config, &r, &t); @@ -2533,8 +2532,6 @@ print_calendar (GnomeCalendar *gcal, gboolean preview, time_t date, gnome_print_job_print (gpm); } - gnome_print_config_set (print_config, GNOME_PRINT_KEY_PAGE_ORIENTATION, old_orientation); - g_free (old_orientation); g_object_unref (gpm); } -- cgit v1.2.3