Make "Shrink to Printable Area" option default in "Page Scaling"

Resolves: #633265
This commit is contained in:
Marek Kasik 2010-09-13 15:17:47 +02:00
parent e189ae913c
commit b3953575ad
2 changed files with 35 additions and 1 deletions

View File

@ -0,0 +1,26 @@
From b3d46a631c7a105b865d51b6f774e95e703d03fc Mon Sep 17 00:00:00 2001
From: Marek Kasik <mkasik@redhat.com>
Date: Mon, 13 Sep 2010 14:28:53 +0200
Subject: [PATCH] Make "Shrink to Printable Area" default option for Page Scaling
Shrink big pages to printable area by default.
---
libview/ev-print-operation.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libview/ev-print-operation.c b/libview/ev-print-operation.c
index b39aa4a..d14c9e7 100644
--- a/libview/ev-print-operation.c
+++ b/libview/ev-print-operation.c
@@ -1846,7 +1846,7 @@ ev_print_operation_print_create_custom_widget (EvPrintOperationPrint *print,
gboolean use_source_size;
settings = gtk_print_operation_get_print_settings (print->op);
- page_scale = gtk_print_settings_get_int_with_default (settings, EV_PRINT_SETTING_PAGE_SCALE, 0);
+ page_scale = gtk_print_settings_get_int_with_default (settings, EV_PRINT_SETTING_PAGE_SCALE, 1);
autorotate = gtk_print_settings_has_key (settings, EV_PRINT_SETTING_AUTOROTATE) ?
gtk_print_settings_get_bool (settings, EV_PRINT_SETTING_AUTOROTATE) :
TRUE;
--
1.7.1

View File

@ -5,7 +5,7 @@
Name: evince Name: evince
Version: 2.31.92 Version: 2.31.92
Release: 1%{?dist} Release: 2%{?dist}
Summary: Document viewer Summary: Document viewer
License: GPLv2+ and GFDL License: GPLv2+ and GFDL
@ -14,6 +14,9 @@ URL: http://projects.gnome.org/evince/
Source0: http://download.gnome.org/sources/%{name}/2.31/%{name}-%{version}.tar.bz2 Source0: http://download.gnome.org/sources/%{name}/2.31/%{name}-%{version}.tar.bz2
# https://bugzilla.redhat.com/show_bug.cgi?id=562648 # https://bugzilla.redhat.com/show_bug.cgi?id=562648
Patch2: evince-t1font-mapping.patch Patch2: evince-t1font-mapping.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=633265
# https://bugzilla.gnome.org/show_bug.cgi?id=629513
Patch3: evince-2.31.92-default-page-scaling.patch
BuildRequires: gtk3-devel BuildRequires: gtk3-devel
BuildRequires: glib2-devel >= %{glib2_version} BuildRequires: glib2-devel >= %{glib2_version}
@ -105,6 +108,7 @@ It adds an additional tab called "Document" to the file properties dialog.
%prep %prep
%setup -q %setup -q
%patch2 -p1 -b .t1font-map %patch2 -p1 -b .t1font-map
%patch3 -p1 -b .default-page-scaling
%build %build
%configure \ %configure \
@ -237,6 +241,10 @@ glib-compile-schemas --allow-any-name %{_datadir}/glib-2.0/schemas ||:
%{_libdir}/nautilus/extensions-2.0/libevince-properties-page.so %{_libdir}/nautilus/extensions-2.0/libevince-properties-page.so
%changelog %changelog
* Mon Sep 13 2010 Marek Kasik <mkasik@redhat.com> - 2.31.92-2
- Make "Shrink to Printable Area" option default in "Page Scaling"
- Resolves: #633265
* Mon Sep 13 2010 Marek Kasik <mkasik@redhat.com> - 2.31.92-1 * Mon Sep 13 2010 Marek Kasik <mkasik@redhat.com> - 2.31.92-1
- Update to 2.31.92 - Update to 2.31.92