[mousepad] Add patch to fix find bug (#648560)

Kevin Fenzi kevin at fedoraproject.org
Tue Nov 2 21:21:31 UTC 2010


commit 175d093e5b15558ca8dc51112d7c89bf79beec71
Author: Kevin Fenzi <kevin at tummy.com>
Date:   Tue Nov 2 15:21:22 2010 -0600

    Add patch to fix find bug (#648560)

 mousepad-0.2.16-find-fix.patch |   38 ++++++++++++++++++++++++++++++++++++++
 mousepad.spec                  |    7 ++++++-
 2 files changed, 44 insertions(+), 1 deletions(-)
---
diff --git a/mousepad-0.2.16-find-fix.patch b/mousepad-0.2.16-find-fix.patch
new file mode 100644
index 0000000..dfbb207
--- /dev/null
+++ b/mousepad-0.2.16-find-fix.patch
@@ -0,0 +1,38 @@
+From 80819d447df5661ee6c9e9cd22f501cee612da8b Mon Sep 17 00:00:00 2001
+From: Lionel Le Folgoc <mrpouit at gmail.com>
+Date: Mon, 05 Jul 2010 17:57:53 +0000
+Subject: Fix find and replace (bug #5831).
+
+---
+diff --git a/src/search.c b/src/search.c
+index 07e29c7..4fb1c5b 100644
+--- a/src/search.c
++++ b/src/search.c
+@@ -210,8 +210,11 @@ gint run_dialog_find(StructData *sd)
+ 		G_CALLBACK(toggle_sensitivity), NULL);
+ 	 g_signal_connect(G_OBJECT(entry_find), "delete-text",
+ 		G_CALLBACK(toggle_sensitivity), NULL);
+-	 if (sd->search.string_find) 
++	 if (sd->search.string_find) {
+ 		 gtk_entry_set_text(GTK_ENTRY(entry_find), sd->search.string_find);
++		 gtk_dialog_set_response_sensitive(GTK_DIALOG(dialog),
++			GTK_RESPONSE_OK, TRUE);
++	 }
+ 
+ 	gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_OK);
+ 	gtk_entry_set_activates_default(GTK_ENTRY(entry_find), TRUE);
+@@ -275,8 +278,11 @@ gint run_dialog_replace(StructData *sd)
+ 		G_CALLBACK(toggle_sensitivity), NULL);
+ 	 g_signal_connect(G_OBJECT(entry_find), "delete-text",
+ 		G_CALLBACK(toggle_sensitivity), NULL);
+-	 if (sd->search.string_find) 
++	 if (sd->search.string_find) {
+ 		 gtk_entry_set_text(GTK_ENTRY(entry_find), sd->search.string_find);
++		 gtk_dialog_set_response_sensitive(GTK_DIALOG(dialog),
++			GTK_RESPONSE_OK, TRUE);
++	}
+ 	label_replace = gtk_label_new_with_mnemonic(_("Re_place with: "));
+ 	 gtk_misc_set_alignment(GTK_MISC(label_replace), 0, 0.5);
+ 	 gtk_table_attach_defaults(GTK_TABLE(table), label_replace, 0, 1, 1, 2);
+--
+cgit v0.8.3.4
diff --git a/mousepad.spec b/mousepad.spec
index 1f4399d..a755ab6 100644
--- a/mousepad.spec
+++ b/mousepad.spec
@@ -1,12 +1,13 @@
 Name:           mousepad
 Version:        0.2.16
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Mousepad - A simple text editor for Xfce
 
 Group:          Applications/Editors
 License:        GPLv2+
 URL:            http://xfce.org/
 Source0:        http://www.xfce.org/archive/xfce-4.6.0/src/mousepad-%{version}.tar.bz2
+Patch1:         mousepad-0.2.16-find-fix.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires: libxfcegui4-devel
@@ -39,6 +40,7 @@ features:
 
 %prep
 %setup -q
+%patch1 -p1
 
 
 %build
@@ -75,6 +77,9 @@ update-desktop-database &> /dev/null ||:
 %{_datadir}/pixmaps/* 
 
 %changelog
+* Mon Nov 01 2010 Kevin Fenzi <kevin at tummy.com> - 0.2.16-3
+- Add patch to fix find bug (#648560)
+
 * Sat Jul 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.2.16-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 


More information about the scm-commits mailing list