gtk_editable_insert_text (GTK_EDITABLE (browser->find_text), typing, -1, &position);
gtk_editable_set_position (GTK_EDITABLE (browser->find_text), -1);
}
- if (GTK_WIDGET_VISIBLE (browser->find))
+ if (GTK_WIDGET_VISIBLE (browser->find) && !typing)
{
gtk_icon_entry_set_icon_from_stock (GTK_ICON_ENTRY (browser->find_text),
GTK_ICON_ENTRY_PRIMARY, (found) ? GTK_STOCK_FIND : GTK_STOCK_STOP);
MidoriBrowser* browser)
{
if (browser->find_typing)
- _midori_browser_find (browser, TRUE);
+ {
+ const gchar* text = gtk_entry_get_text (GTK_ENTRY (entry));
+ if (g_utf8_strlen (text, -1) > 2)
+ _midori_browser_find (browser, TRUE);
+ }
}
static gboolean
{
gchar* text = g_strdup_printf ("%c", character);
- g_signal_emit (view, signals[SEARCH_TEXT], 0,
- webkit_web_view_search_text (web_view,
- text, FALSE, TRUE, TRUE), text);
+ g_signal_emit (view, signals[SEARCH_TEXT], 0, TRUE, text);
g_free (text);
}