Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.4
mousepad
mousepad-0.2.16-fix-find-and-replace.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mousepad-0.2.16-fix-find-and-replace.patch of Package mousepad
From 80819d447df5661ee6c9e9cd22f501cee612da8b Mon Sep 17 00:00:00 2001 From: Lionel Le Folgoc <mrpouit@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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor