[evince/f14/master] Make "Shrink to Printable Area" option default in "Page Scaling"
mkasik
mkasik at fedoraproject.org
Mon Sep 13 14:02:44 UTC 2010
commit d073ef535913310ddbb467601c65c711b58e9246
Author: Marek Kasik <mkasik at redhat.com>
Date: Mon Sep 13 16:02:03 2010 +0200
Make "Shrink to Printable Area" option default in "Page Scaling"
Fix file attributes for nautilus files
Resolves: #633265
evince-2.31.92-default-page-scaling.patch | 26 ++++++++++++++++++++++++++
evince.spec | 12 +++++++++++-
2 files changed, 37 insertions(+), 1 deletions(-)
---
diff --git a/evince-2.31.92-default-page-scaling.patch b/evince-2.31.92-default-page-scaling.patch
new file mode 100644
index 0000000..df69b92
--- /dev/null
+++ b/evince-2.31.92-default-page-scaling.patch
@@ -0,0 +1,26 @@
+From b3d46a631c7a105b865d51b6f774e95e703d03fc Mon Sep 17 00:00:00 2001
+From: Marek Kasik <mkasik at 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
+
diff --git a/evince.spec b/evince.spec
index 57d5f98..048ae07 100644
--- a/evince.spec
+++ b/evince.spec
@@ -5,7 +5,7 @@
Name: evince
Version: 2.31.92
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Document viewer
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
# https://bugzilla.redhat.com/show_bug.cgi?id=562648
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: gtk2-devel
BuildRequires: glib2-devel >= %{glib2_version}
@@ -105,6 +108,7 @@ It adds an additional tab called "Document" to the file properties dialog.
%prep
%setup -q
%patch2 -p1 -b .t1font-map
+%patch3 -p1 -b .default-page-scaling
%build
%configure \
@@ -234,9 +238,15 @@ glib-compile-schemas --allow-any-name %{_datadir}/glib-2.0/schemas ||:
%{_libdir}/evince/3/backends/djvudocument.evince-backend
%files nautilus
+%defattr(-,root,root,-)
%{_libdir}/nautilus/extensions-2.0/libevince-properties-page.so
%changelog
+* Mon Sep 13 2010 Marek Kasik <mkasik at redhat.com> - 2.31.92-2
+- Make "Shrink to Printable Area" option default in "Page Scaling"
+- Fix file attributes for nautilus files
+- Resolves: #633265
+
* Mon Sep 13 2010 Marek Kasik <mkasik at redhat.com> - 2.31.92-1
- Update to 2.31.92
More information about the scm-commits
mailing list