rpms/scribes/F-8 scribes-fix-print-tab-width.patch, NONE, 1.1 scribes.spec, 1.38, 1.39
Peter Gordon (pgordon)
fedora-extras-commits at redhat.com
Wed Mar 26 03:43:42 UTC 2008
Author: pgordon
Update of /cvs/pkgs/rpms/scribes/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv13015/F-8
Modified Files:
scribes.spec
Added Files:
scribes-fix-print-tab-width.patch
Log Message:
Fix tab-width when printing: should be using user preference.
scribes-fix-print-tab-width.patch:
--- NEW FILE scribes-fix-print-tab-width.patch ---
diff -up ./plugins/PrintDialog/Job.py.old ./plugins/PrintDialog/Job.py
--- ./plugins/PrintDialog/Job.py.old 2008-03-25 20:19:56.000000000 -0700
+++ ./plugins/PrintDialog/Job.py 2008-03-25 20:21:46.000000000 -0700
@@ -87,7 +87,14 @@ class PrintJob(SourcePrintJob):
self.set_highlight(True)
self.set_print_header(True)
self.set_print_numbers(False)
- self.set_tabs_width(4)
+ self.__tab_spaces = 4
+ from gconf import client_get_default
+ self.__gconf_client = client_get_default()
+ value = self.__gconf_client.get("/apps/scribes/tab")
+ from operator import truth
+ if truth(value):
+ self.__tab_spaces = self.__gconf_client.get_int("/apps/scribes/tab")
+ self.set_tabs_width(self.__tab_spaces)
from gtk import WRAP_WORD
self.set_wrap_mode(WRAP_WORD)
self.set_header_format(self.__header, "", "", True)
Index: scribes.spec
===================================================================
RCS file: /cvs/pkgs/rpms/scribes/F-8/scribes.spec,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- scribes.spec 4 Feb 2008 00:28:58 -0000 1.38
+++ scribes.spec 26 Mar 2008 03:43:03 -0000 1.39
@@ -4,14 +4,16 @@
Name: scribes
Version: 0.3.3.3
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A sleek, simple, and powerful text editor for the GNOME desktop
Group: Applications/Editors
License: GPLv2+
URL: http://scribes.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
+
Patch0: %{name}-configure.ac-no-python-depcheck.patch
+Patch1: %{name}-fix-print-tab-width.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
@@ -85,6 +87,10 @@
%{__aclocal}
%{__automake} Makefile
find . -type f -exec sed -i -e "s/@MKDIR_P@/@mkdir_p@/g" '{}' \;
+## The tab-width in printing should use the user's preference instead of being
+## a hard-coded value. (Patch was sent upstream, but will not be included
+## since future versions no longer use GConf for preference storage.)
+%patch1 -p0
%build
@@ -158,6 +164,11 @@
%changelog
+* Tue Mar 25 2008 Peter Gordon <peter at thecodergeek.com> - 0.3.3.3-2
+- Add patch to make the printing use the user's preferred tab-width spacing,
+ instead of being hardcoded to 4 spaces per tab:
+ + fix-print-tab-width.patch
+
* Sun Feb 03 2008 Peter Gordon <peter at thecodergeek.com> - 0.3.3.3-1
- Update to new upstream release (0.3.3.3). Resolves bug 431328: New version
(0.3.3.3) available.
More information about the fedora-extras-commits
mailing list