Commit 03587daa authored by Paolo Maggi's avatar Paolo Maggi Committed by Paolo Maggi

Fixes Replace All button sensitivity in the Find/Replace dialog.

2006-01-03  Paolo Maggi  <paolo@gnome.org>

	Fixes Replace All button sensitivity in the Find/Replace dialog.

	* gedit/dialogs/gedit-search-dialog.c (search_options_changed): function
	removed
	(gedit_search_dialog_init): do not connect search_options_changed
	(gedit_search_dialog_set_search_text): set "Replace All" button
	sensitivity

	* gedit/gedit-commands-search.c (do_find) (do_replace_all): not set
	"Replace All" button sensitivity
parent 2cb44979
2006-01-03 Paolo Maggi <paolo@gnome.org>
Fixes Replace All button sensitivity in the Find/Replace dialog.
* gedit/dialogs/gedit-search-dialog.c (search_options_changed): function
removed
(gedit_search_dialog_init): do not connect search_options_changed
(gedit_search_dialog_set_search_text): set "Replace All" button
sensitivity
* gedit/gedit-commands-search.c (do_find) (do_replace_all): not set
"Replace All" button sensitivity
=== gedit 2.13.1 ===
2006-01-02 Paolo Borelli <pborelli@katamail.com>
......
......@@ -191,20 +191,6 @@ search_entry_changed (GtkEditable *editable,
}
}
static void
search_options_changed (GtkToggleButton *button,
GeditSearchDialog *dialog)
{
/* make sure Replace All is reactivated when the options
* become less restrictive */
if (!gtk_toggle_button_get_active (button))
{
gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
GEDIT_SEARCH_DIALOG_REPLACE_ALL_RESPONSE,
TRUE);
}
}
static void
response_handler (GeditSearchDialog *dialog,
gint response_id,
......@@ -351,15 +337,6 @@ gedit_search_dialog_init (GeditSearchDialog *dlg)
G_CALLBACK (search_entry_changed),
dlg);
g_signal_connect (dlg->priv->match_case_checkbutton,
"toggled",
G_CALLBACK (search_options_changed),
dlg);
g_signal_connect (dlg->priv->entire_word_checkbutton,
"toggled",
G_CALLBACK (search_options_changed),
dlg);
g_signal_connect (dlg,
"response",
G_CALLBACK (response_handler),
......@@ -418,6 +395,10 @@ gedit_search_dialog_set_search_text (GeditSearchDialog *dialog,
gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
GEDIT_SEARCH_DIALOG_FIND_RESPONSE,
(text != '\0'));
gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
GEDIT_SEARCH_DIALOG_REPLACE_ALL_RESPONSE,
(text != '\0'));
}
/*
......
......@@ -311,9 +311,6 @@ do_find (GeditSearchDialog *dialog,
gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
GEDIT_SEARCH_DIALOG_REPLACE_RESPONSE,
found);
gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
GEDIT_SEARCH_DIALOG_REPLACE_ALL_RESPONSE,
found);
restore_last_searched_data (dialog, doc);
}
......@@ -469,9 +466,6 @@ do_replace_all (GeditSearchDialog *dialog,
gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
GEDIT_SEARCH_DIALOG_REPLACE_RESPONSE,
FALSE);
gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
GEDIT_SEARCH_DIALOG_REPLACE_ALL_RESPONSE,
FALSE);
restore_last_searched_data (dialog, doc);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment