rpms/expendable/devel expendable-save.patch, NONE, 1.1 expendable.spec, 1.19, 1.20
Tim Waugh
twaugh at fedoraproject.org
Wed Jan 6 17:56:18 UTC 2010
Author: twaugh
Update of /cvs/pkgs/rpms/expendable/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv8561
Modified Files:
expendable.spec
Added Files:
expendable-save.patch
Log Message:
* Mon Oct 12 2009 Tim Waugh <twaugh at redhat.com> 0.0.9-1
- 0.0.9.
expendable-save.patch:
main.py | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
--- NEW FILE expendable-save.patch ---
diff -up expendable-0.0.9/main.py.save expendable-0.0.9/main.py
--- expendable-0.0.9/main.py.save 2008-11-15 10:28:02.000000000 +0000
+++ expendable-0.0.9/main.py 2010-01-06 17:52:49.800284933 +0000
@@ -2,7 +2,7 @@
## expendable
-## Copyright (C) 2008 Tim Waugh <twaugh at redhat.com>
+## Copyright (C) 2008, 2010 Tim Waugh <twaugh at redhat.com>
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
@@ -923,7 +923,7 @@ class Main:
gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,
gtk.STOCK_SAVE, gtk.RESPONSE_YES)
filename = self.xmlfile.get_filename ()
- requires_filename = (filename == None)
+ requires_filename = (filename == None or self.xmlfile.is_readonly ())
if requires_filename:
filename = _("Untitled")
m.set_markup ('<span size="larger" weight="bold">' +
@@ -938,7 +938,10 @@ class Main:
response = self.file_chooser_dialog.run ()
self.file_save_as_response (self.file_chooser_dialog, response)
else:
- self.xmlfile.save ()
+ self.file_save (None)
+
+ if self.check_if_changes_made ():
+ response = gtk.RESPONSE_CANCEL
return response
Index: expendable.spec
===================================================================
RCS file: /cvs/pkgs/rpms/expendable/devel/expendable.spec,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -p -r1.19 -r1.20
--- expendable.spec 12 Oct 2009 16:56:33 -0000 1.19
+++ expendable.spec 6 Jan 2010 17:56:17 -0000 1.20
@@ -1,13 +1,15 @@
Summary: Home finances modeling program
Name: expendable
Version: 0.0.9
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv2+
Group: Applications/Productivity
URL: https://fedorahosted.org/expendable/
# Add "?format=raw" to the following URL to download file:
Source0: https://fedorahosted.org/releases/e/x/expendable/%{name}-%{version}.tar.xz
+Patch1: expendable-save.patch
+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python
@@ -28,6 +30,7 @@ amount.
%prep
%setup -q
+%patch1 -p1 -b .save
%build
%configure
@@ -83,6 +86,9 @@ fi
%{_datadir}/applications/*.desktop
%changelog
+* Wed Jan 9 2010 Tim Waugh <twaugh at redhat.com> 0.0.9-2
+- Fixed save-on-exit (bug #551337).
+
* Mon Oct 12 2009 Tim Waugh <twaugh at redhat.com> 0.0.9-1
- 0.0.9.
More information about the fedora-extras-commits
mailing list