Commit 48ee8016 authored by Timm Bäder's avatar Timm Bäder 👎 Committed by Daniel Boles

filechooserwidget: Remove always-false error case

_gtk_search_engine_new never returns NULL, it always returns a valid
GObject with at least the simple search engine initialized.
parent 6c9b11d3
......@@ -7211,19 +7211,6 @@ search_engine_finished_cb (GtkSearchEngine *engine,
}
}
/* Displays a generic error when we cannot create a GtkSearchEngine.
* It would be better if _gtk_search_engine_new() gave us a GError
* with a better message, but it doesn’t do that right now.
*/
static void
search_error_could_not_create_client (GtkFileChooserWidget *impl)
{
error_message (impl,
_("Could not start the search process"),
_("The program was not able to create a connection to the indexer "
"daemon. Please make sure it is running."));
}
static void
search_engine_error_cb (GtkSearchEngine *engine,
const gchar *message,
......@@ -7350,14 +7337,6 @@ search_start_query (GtkFileChooserWidget *impl,
if (priv->search_engine == NULL)
priv->search_engine = _gtk_search_engine_new ();
if (!priv->search_engine)
{
set_busy_cursor (impl, FALSE);
gtk_widget_hide (priv->search_spinner);
search_error_could_not_create_client (impl); /* lame; we don't get an error code or anything */
return;
}
if (!priv->search_query)
{
priv->search_query = gtk_query_new ();
......
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