rpms/alacarte/devel undo-delete.patch, NONE, 1.1 alacarte.spec, 1.44, 1.45

Matthias Clasen mclasen at fedoraproject.org
Sat Oct 18 02:22:32 UTC 2008


Author: mclasen

Update of /cvs/extras/rpms/alacarte/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv27604

Modified Files:
	alacarte.spec 
Added Files:
	undo-delete.patch 
Log Message:
Fix undoing of deletion


undo-delete.patch:

--- NEW FILE undo-delete.patch ---
diff -up alacarte-0.11.6/Alacarte/MenuEditor.py.undo-delete alacarte-0.11.6/Alacarte/MenuEditor.py
--- alacarte-0.11.6/Alacarte/MenuEditor.py.undo-delete	2008-10-17 22:20:26.000000000 -0400
+++ alacarte-0.11.6/Alacarte/MenuEditor.py	2008-10-17 22:20:35.000000000 -0400
@@ -344,8 +344,8 @@ class MenuEditor:
 		self.save()
 
 	def deleteItem(self, item):
-		self.__writeItem(item, hidden=True)
 		self.__addUndo([item,])
+		self.__writeItem(item, hidden=True)
 		self.save()
 
 	def deleteMenu(self, menu):


Index: alacarte.spec
===================================================================
RCS file: /cvs/extras/rpms/alacarte/devel/alacarte.spec,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- alacarte.spec	23 Sep 2008 04:04:18 -0000	1.44
+++ alacarte.spec	18 Oct 2008 02:22:01 -0000	1.45
@@ -2,7 +2,7 @@
 
 Name:           alacarte
 Version:        0.11.6
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Simple menu editor for GNOME
 
 Group:          Applications/System
@@ -20,6 +20,8 @@
 Requires:       pygtk2, gnome-python2-gconf
 Requires:       gnome-menus >= 2.15.4
 
+Patch0:		undo-delete.patch
+
 %description
 Alacarte is a menu editor for GNOME that lets you get things done,
 simply and quickly.
@@ -28,6 +30,7 @@
 
 %prep
 %setup -q
+%patch0 -p1 -b .undo-delete
 
 %build
 %configure
@@ -69,6 +72,9 @@
 %{_datadir}/icons/hicolor/256x256/apps/alacarte.png
 
 %changelog
+* Fri Oct 17 2008 Matthias Clasen <mclasen at redhat.com> - 0.11.6-4
+- Make undoing of deletion work
+
 * Mon Sep 22 2008 Matthias Clasen <mclasen at redhat.com> - 0.11.6-3
 - Update to 0.11.6
 




More information about the scm-commits mailing list