diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2011-04-25 13:37:00 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2018-05-31 22:45:18 +0200 |
commit | 75a4a592e5ccda30715f93563d741b83e0dcf39e (patch) | |
tree | 502f745607e77a2c4386ad38d818ddcafe81489c /source/xap/xfce/patches/mousepad-fix_find_and_replace.diff | |
parent | b76270bf9e6dd375e495fec92140a79a79415d27 (diff) | |
download | current-75a4a592e5ccda30715f93563d741b83e0dcf39e.tar.gz |
Slackware 13.37slackware-13.37
Mon Apr 25 13:37:00 UTC 2011
Slackware 13.37 x86_64 stable is released!
Thanks to everyone who pitched in on this release: the Slackware team,
the folks producing upstream code, and linuxquestions.org for providing
a great forum for collaboration and testing.
The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a
dual-sided
32-bit/64-bit x86/x86_64 DVD. Please consider supporting the Slackware
project by picking up a copy from store.slackware.com. We're taking
pre-orders now, and offer a discount if you sign up for a subscription.
As always, thanks to the Slackware community for testing, suggestions,
and feedback. :-)
Have fun!
Diffstat (limited to 'source/xap/xfce/patches/mousepad-fix_find_and_replace.diff')
-rw-r--r-- | source/xap/xfce/patches/mousepad-fix_find_and_replace.diff | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/source/xap/xfce/patches/mousepad-fix_find_and_replace.diff b/source/xap/xfce/patches/mousepad-fix_find_and_replace.diff new file mode 100644 index 00000000..5db73b1e --- /dev/null +++ b/source/xap/xfce/patches/mousepad-fix_find_and_replace.diff @@ -0,0 +1,36 @@ +commit 80819d447df5661ee6c9e9cd22f501cee612da8b +Author: Lionel Le Folgoc <mrpouit@gmail.com> +Date: Mon Jul 5 19:57:53 2010 +0200 + + 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); |