Commit 01ba7a4a authored by Ignacio Casal Quinteiro's avatar Ignacio Casal Quinteiro Committed by Ignacio Casal Quinteiro

Connect the changed signal to the editable instead of the combobox making

2009-03-04  Ignacio Casal Quinteiro  <nacho.resa@gmail.com>

        * gedit/dialogs/gedit-search-dialog.c:
        Connect the changed signal to the editable instead
        of the combobox making the search button sensitive when needing
        to avoid problems with new versions of gtk+. (Fixes bug #574059).


svn path=/trunk/; revision=6948
parent adf10f52
2009-03-04 Ignacio Casal Quinteiro <nacho.resa@gmail.com>
* gedit/dialogs/gedit-search-dialog.c:
Connect the changed signal to the editable instead
of the combobox making the search button sensitive when needing
to avoid problems with new versions of gtk+. (Fixes bug #574059).
2009-03-03 Paolo Borelli <pborelli@katamail.com>
* gedit/gedit-app.c: correctly check viewport when
......
......@@ -218,14 +218,12 @@ insert_text_handler (GtkEditable *editable,
}
static void
search_entry_changed (GtkComboBox *combo,
GeditSearchDialog *dialog)
search_text_entry_changed (GtkEditable *editable,
GeditSearchDialog *dialog)
{
GtkWidget *entry;
const gchar *search_string;
entry = gtk_bin_get_child (GTK_BIN (combo));
search_string = gtk_entry_get_text (GTK_ENTRY (entry));
search_string = gtk_entry_get_text (GTK_ENTRY (editable));
g_return_if_fail (search_string != NULL);
if (*search_string != '\0')
......@@ -453,9 +451,9 @@ gedit_search_dialog_init (GeditSearchDialog *dlg)
"insert_text",
G_CALLBACK (insert_text_handler),
NULL);
g_signal_connect (dlg->priv->search_entry,
g_signal_connect (dlg->priv->search_text_entry,
"changed",
G_CALLBACK (search_entry_changed),
G_CALLBACK (search_text_entry_changed),
dlg);
g_signal_connect (dlg,
......
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