diff options
author | Radek Doulik <rodo@ximian.com> | 2004-01-16 22:51:05 +0800 |
---|---|---|
committer | Radek Doulik <rodo@src.gnome.org> | 2004-01-16 22:51:05 +0800 |
commit | c964fe43570cf69303138abc35eb59253604c403 (patch) | |
tree | 9992ea1ee5a708d4fe6433dc962440da158db896 /calendar | |
parent | 9222b75520458499d580f1f7279fd38dc81da9e8 (diff) | |
download | gsoc2013-evolution-c964fe43570cf69303138abc35eb59253604c403.tar.gz gsoc2013-evolution-c964fe43570cf69303138abc35eb59253604c403.tar.zst gsoc2013-evolution-c964fe43570cf69303138abc35eb59253604c403.zip |
don't set old orientation, preview needs right orientation even after
2004-01-16 Radek Doulik <rodo@ximian.com>
* gui/print.c (print_calendar): don't set old orientation, preview
needs right orientation even after everything is printed
svn path=/trunk/; revision=24271
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 5 | ||||
-rw-r--r-- | 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 <rodo@ximian.com> + + * gui/print.c (print_calendar): don't set old orientation, preview + needs right orientation even after everything is printed + 2004-01-16 Rodrigo Moya <rodrigo@ximian.com> 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); } |