diff --git a/alacarte.spec b/alacarte.spec index f016106..660fb58 100644 --- a/alacarte.spec +++ b/alacarte.spec @@ -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 @@ BuildRequires: intltool 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 @@ Just click and type to edit, add, and delete any menu entry. %prep %setup -q +%patch0 -p1 -b .undo-delete %build %configure @@ -69,6 +72,9 @@ fi %{_datadir}/icons/hicolor/256x256/apps/alacarte.png %changelog +* Fri Oct 17 2008 Matthias Clasen - 0.11.6-4 +- Make undoing of deletion work + * Mon Sep 22 2008 Matthias Clasen - 0.11.6-3 - Update to 0.11.6 diff --git a/undo-delete.patch b/undo-delete.patch new file mode 100644 index 0000000..06cf820 --- /dev/null +++ b/undo-delete.patch @@ -0,0 +1,13 @@ +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):