summaryrefslogtreecommitdiff
path: root/gtk/gtksearchenginemodel.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-08-15 16:04:09 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-08-15 16:04:09 -0400
commit568def7a869d204e4e0781dca0700a099f486d03 (patch)
tree88922646a3f19cd3e3039f6e82b84b8707af9b87 /gtk/gtksearchenginemodel.c
parent73f1d62b6898e86aa24047e541c4def0243dcd64 (diff)
downloadgtk+-568def7a869d204e4e0781dca0700a099f486d03.tar.gz
searc engine model: Set name on idle
Use gdk_threads_add_idle, and set a name on the source to aid debugging, as we do everywhere else.
Diffstat (limited to 'gtk/gtksearchenginemodel.c')
-rw-r--r--gtk/gtksearchenginemodel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtksearchenginemodel.c b/gtk/gtksearchenginemodel.c
index f245e1aa21..dae99f2ba3 100644
--- a/gtk/gtksearchenginemodel.c
+++ b/gtk/gtksearchenginemodel.c
@@ -128,7 +128,8 @@ gtk_search_engine_model_start (GtkSearchEngine *engine)
if (model->query == NULL)
return;
- model->idle = g_idle_add (do_search, engine);
+ model->idle = gdk_threads_add_idle (do_search, engine);
+ g_source_set_name_by_id (model->idle, "[gtk+] gtk_search_engine_model_start");
}
static void