Commit 37822ac3 authored by Paolo Borelli's avatar Paolo Borelli Committed by Paolo Borelli

make sure Replace All is sensitive when search options become less strict

2006-01-02  Paolo Borelli  <pborelli@katamail.com>

	* gedit/dialogs/gedit-search-dialog.c: make sure Replace All
	is sensitive when search options become less strict (#325377)
parent 16a30571
2006-01-02 Paolo Borelli <pborelli@katamail.com>
* gedit/dialogs/gedit-search-dialog.c: make sure Replace All
is sensitive when search options become less strict (#325377)
2006-01-02 Steve Frécinaux <nud@apinc.org>
* gedit/gedit-panel.[ch]: reworked layout of panels, given their
......
......@@ -191,6 +191,20 @@ 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,
......@@ -337,6 +351,15 @@ 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),
......
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