From b40b906e2ebe13b0e6956cf353abe5e0e8a91ba9 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 19 Feb 2009 23:34:16 +0100 Subject: [PATCH] Allow setting the SearchAction text to be set to NULL --- midori/midori-searchaction.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/midori/midori-searchaction.c b/midori/midori-searchaction.c index e76d2f6f..67772f96 100644 --- a/midori/midori-searchaction.c +++ b/midori/midori-searchaction.c @@ -579,7 +579,6 @@ midori_search_action_set_text (MidoriSearchAction* search_action, GtkWidget* entry; g_return_if_fail (MIDORI_IS_SEARCH_ACTION (search_action)); - g_return_if_fail (text != NULL); katze_assign (search_action->text, g_strdup (text)); g_object_notify (G_OBJECT (search_action), "text"); @@ -594,7 +593,7 @@ midori_search_action_set_text (MidoriSearchAction* search_action, alignment = gtk_bin_get_child (GTK_BIN (proxies->data)); entry = gtk_bin_get_child (GTK_BIN (alignment)); - gtk_entry_set_text (GTK_ENTRY (entry), text); + gtk_entry_set_text (GTK_ENTRY (entry), text ? text : ""); search_action->last_proxy = proxies->data; } while ((proxies = g_slist_next (proxies))); -- 2.39.5