diff --git a/button-images.patch b/button-images.patch
index 68b0f0f..1fad67f 100644
--- a/button-images.patch
+++ b/button-images.patch
@@ -1,23 +1,23 @@
-diff -up gedit-2.27.2/plugins/sort/sort.ui.button-images gedit-2.27.2/plugins/sort/sort.ui
---- gedit-2.27.2/plugins/sort/sort.ui.button-images 2009-07-16 13:54:14.208338015 -0400
-+++ gedit-2.27.2/plugins/sort/sort.ui 2009-07-16 13:56:25.653333726 -0400
-@@ -9,6 +9,10 @@
- 0
- 1
-
-+
-
- 1
-@@ -470,58 +298,9 @@
- True
- True
- GTK_RELIEF_NORMAL
--
--
-- True
-- 0.5
-- 0.5
-- 0
-- 0
--
--
-- True
-- False
-- 2
--
--
-- True
-- gtk-convert
-- 4
-- 0.5
-- 0.5
-- 0
-- 0
--
--
-- 0
-- False
-- False
--
--
--
--
-- True
-- Change A_ll
-- True
-- False
-- GTK_JUSTIFY_LEFT
-- False
-- False
-- 0.5
-- 0.5
-- 0
-- 0
--
--
-- 0
-- False
-- False
--
--
--
--
--
--
-+ change_all_image
-+ Change A_ll
-+ True
-
-
- 1
-@@ -573,58 +352,9 @@
- True
- True
- GTK_RELIEF_NORMAL
--
--
-- True
-- 0.5
-- 0.5
-- 0
-- 0
--
--
-- True
-- False
-- 2
--
--
-- True
-- gtk-add
-- 4
-- 0.5
-- 0.5
-- 0
-- 0
--
--
-- 0
-- False
-- False
--
--
--
--
-- True
-- Add w_ord
-- True
-- False
-- GTK_JUSTIFY_LEFT
-- False
-- False
-- 0.5
-- 0.5
-- 0
-- 0
--
--
-- 0
-- False
-- False
--
--
--
--
--
--
-+ add_word_image
-+ Add w_ord
-+ True
-
-
- 0
+
diff --git a/gedit.spec b/gedit.spec
index 6963e07..f510722 100644
--- a/gedit.spec
+++ b/gedit.spec
@@ -18,7 +18,7 @@
Summary: Text editor for the GNOME desktop
Name: gedit
Version: 2.27.4
-Release: 1%{?dist}
+Release: 2%{?dist}
Epoch: 1
License: GPLv2+ and GFDL
Group: Applications/Editors
@@ -48,6 +48,9 @@ Patch2: gedit-2.25.5-fix-python-path.patch
# http://bugzilla.gnome.org/show_bug.cgi?id=587053
Patch3: print-to-file.patch
+# http://bugzilla.gnome.org/show_bug.cgi?id=592766
+Patch4: button-images.patch
+
BuildRequires: gnome-common
BuildRequires: glib2-devel >= %{glib2_version}
BuildRequires: pango-devel >= %{pango_version}
@@ -114,6 +117,7 @@ Install gedit-devel if you want to write plugins for gedit.
%patch2 -p1 -b .fix-python-path
%patch3 -p1 -b .print-to-file
+%patch4 -p1 -b .button-images
%build
autoreconf -f -i
@@ -229,6 +233,9 @@ fi
%changelog
+* Sat Aug 22 2009 Matthias Clasen - 1:2.27.4-2
+- Respect button-images setting
+
* Tue Aug 11 2009 Matthias Clasen - 1:2.27.4-1
- Update to 2.27.4