Find inline "live" regardless of how it was initiated

Fixes: https://bugs.launchpad.net/midori/+bug/772843
This commit is contained in:
Christian Dywan 2011-05-01 17:20:55 +02:00
parent 8e632a44b3
commit 7033129aff

View file

@ -178,14 +178,11 @@ midori_findbar_preedit_changed_cb (GtkWidget* entry,
const gchar* preedit, const gchar* preedit,
MidoriFindbar* findbar) MidoriFindbar* findbar)
{ {
if (findbar->find_typing) MidoriBrowser* browser = midori_browser_get_for_widget (entry);
{ GtkWidget* view = midori_browser_get_current_tab (browser);
MidoriBrowser* browser = midori_browser_get_for_widget (entry); midori_view_unmark_text_matches (MIDORI_VIEW (view));
GtkWidget* view = midori_browser_get_current_tab (browser); if (g_utf8_strlen (preedit, -1) > 1)
midori_view_unmark_text_matches (MIDORI_VIEW (view)); midori_findbar_find_text (findbar, preedit, TRUE);
if (g_utf8_strlen (preedit, -1) > 1)
midori_findbar_find_text (findbar, preedit, TRUE);
}
} }
static void static void