Don't search for place holder text in panels
This commit is contained in:
parent
bf026bd905
commit
3ecdcf0826
3 changed files with 15 additions and 3 deletions
|
@ -809,7 +809,10 @@ static void cm_filter_entry_changed_cb(GtkEditable *editable, CookieManagerPage
|
|||
if (priv->ignore_changed_filter)
|
||||
return;
|
||||
|
||||
if (gtk_entry_get_placeholder_text(GTK_ENTRY(editable)) != NULL)
|
||||
text = gtk_entry_get_text(GTK_ENTRY(editable));
|
||||
else
|
||||
text = NULL;
|
||||
cm_filter_tree(cmp, text);
|
||||
|
||||
cookie_manager_update_filter(priv->parent, text);
|
||||
|
|
|
@ -998,7 +998,12 @@ midori_bookmarks_filter_entry_changed_cb (GtkEntry* entry,
|
|||
{
|
||||
if (bookmarks->filter_timeout)
|
||||
g_source_remove (bookmarks->filter_timeout);
|
||||
|
||||
if (gtk_entry_get_placeholder_text (entry) != NULL)
|
||||
katze_assign (bookmarks->filter, g_strdup (gtk_entry_get_text (entry)));
|
||||
else
|
||||
katze_assign (bookmarks->filter, NULL);
|
||||
|
||||
bookmarks->filter_timeout = g_timeout_add (COMPLETION_DELAY,
|
||||
midori_bookmarks_filter_timeout_cb, bookmarks);
|
||||
}
|
||||
|
|
|
@ -964,7 +964,11 @@ midori_history_filter_entry_changed_cb (GtkEntry* entry,
|
|||
g_source_remove (history->filter_timeout);
|
||||
history->filter_timeout = g_timeout_add (COMPLETION_DELAY,
|
||||
midori_history_filter_timeout_cb, history);
|
||||
|
||||
if (gtk_entry_get_placeholder_text (entry) != NULL)
|
||||
katze_assign (history->filter, g_strdup (gtk_entry_get_text (entry)));
|
||||
else
|
||||
katze_assign (history->filter, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue